-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #486 from claranet/build/poetry_v2
build!: update pyproject syntax for poetry v2 (PEP-621), drop py38, add py313
- Loading branch information
Showing
20 changed files
with
200 additions
and
935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,90 @@ | ||
[tool.poetry] | ||
[project] | ||
name = "claranet-tfwrapper" | ||
version = "13.2.5a0" | ||
description = "Claranet's `tfwrapper` is a wrapper for [Terraform](https://www.terraform.io/) implemented in python which aims to simplify Terraform usage and enforce best practices" | ||
authors = [] | ||
license = "Mozilla Public License Version 2.0" | ||
license = { text = "Mozilla Public License Version 2.0" } | ||
readme = "README.md" | ||
homepage = "https://github.com/claranet/tfwrapper" | ||
requires-python = ">=3.9,<4.0" | ||
keywords = ["terraform", "wrapper"] | ||
|
||
# For reference, see https://pypi.org/pypi?%3Aaction=list_classifiers | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Information Technology", | ||
"Intended Audience :: System Administrators", | ||
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3.13", | ||
"Topic :: System :: Systems Administration", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"argcomplete<4.0", | ||
"boto3>=1.17.94,<2.0.0", | ||
"cachecontrol[filecache]>=0.14.0,<0.15.0", | ||
"colorlog>=5.0.1,<7.0.0", | ||
"jinja2>=3.0.1,<4.0.0", | ||
"lockfile>=0.12.2,<0.13.0", | ||
"natsort>=7.1.1,<9.0.0", | ||
"packaging>=24,<25", | ||
"pyyaml>=6.0.1,<7.0.0", | ||
"requests>=2.25.1,<3.0.0", | ||
"schema>=0.7.4,<0.8.0", | ||
"semver>=3.0.1,<4.0.0", | ||
"termcolor>=1.1,<3.0", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/claranet/tfwrapper" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<4.0" | ||
argcomplete = "<4.0" | ||
boto3 = "^1.17.94" | ||
cachecontrol = {extras = ["filecache"], version = "^0.14.0"} | ||
colorlog = ">=5.0.1,<7.0.0" | ||
jinja2 = "^3.0.1" | ||
lockfile = "^0.12.2" | ||
natsort = ">=7.1.1,<9.0.0" | ||
packaging = ">=24,<25" | ||
pyyaml = "^6.0.1" | ||
requests = "^2.25.1" | ||
schema = "^0.7.4" | ||
semver = "^3.0.1" | ||
termcolor = ">=1.1,<3.0" | ||
[project.scripts] | ||
tfwrapper = "claranet_tfwrapper:main" | ||
|
||
[tool.poetry] | ||
# Poetry-specific configurations that don't fit in the PEP-621 schema | ||
|
||
[tool.poetry.group.test.dependencies] | ||
black = "*" | ||
coverage = "*" | ||
flake8 = ">=6.0.0" | ||
flake8-docstrings = "*" | ||
flake8-pyproject = "*" | ||
md-toc = "*" | ||
mock = "*" | ||
pook = ">=1.0.2" | ||
pre-commit = "*" | ||
pytest = "*" | ||
pytest-mock = "*" | ||
requests-mock = "*" | ||
ruff = "*" | ||
toml = "*" | ||
tox = ">=4" | ||
|
||
[tool.poetry.scripts] | ||
tfwrapper = 'claranet_tfwrapper:main' | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.1.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.black] | ||
# Make sure to match flake8's max-line-length. | ||
line-length = 130 # black's default | ||
target-version = ['py38', 'py39', 'py310', 'py311', 'py312'] | ||
exclude = ''' | ||
/( | ||
\.git | ||
| \.pytest_cache | ||
| \.tox | ||
| \.venv | ||
)/ | ||
''' | ||
|
||
[tool.flake8] | ||
verbose = 3 | ||
max-line-length = 130 | ||
per-file-ignores = ['tests/*.py:D103'] | ||
exclude = ['.git', '.tox', '.venv', '.virtualenv', '__pycache__'] | ||
# See https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated | ||
ignore = ['E203', 'W503'] | ||
enable-extensions = ['W504'] | ||
[tool.ruff] | ||
exclude = [ | ||
".git", | ||
".tox", | ||
".venv", | ||
".virtualenv", | ||
"__pycache__", | ||
"venv", | ||
"build", | ||
".eggs", | ||
"setup.py", | ||
] | ||
line-length = 130 | ||
lint.ignore = [] | ||
lint.per-file-ignores."tests/*.py" = [ | ||
"D100", | ||
"D101", | ||
"D102", | ||
"D103", | ||
"D104", | ||
"E501", | ||
] | ||
lint.select = ["D", "E", "F", "W"] | ||
target-version = "py39" |
Oops, something went wrong.