-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved to pyproject.toml-based configuration with upgraded packages pi…
…nned to semver ranges
- Loading branch information
Showing
3 changed files
with
102 additions
and
103 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
select = C,E,F,W,B,B950 | ||
ignore = E501,N802,N806,W503,E203 | ||
exclude = setup.py,build,dist,doc,examples,cloudknot/data |
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,33 +1,106 @@ | ||
[project] | ||
name = "cloudknot" | ||
dynamic = ["version"] | ||
requires-python = ">=3.10" | ||
license = { file = "LICENSE" } | ||
authors = [{ name = "Adam Richie-Halford", email = "[email protected]" }] | ||
maintainers = [ | ||
{ name = "Adam Richie-Halford", email = "[email protected]" } | ||
] | ||
description = "Cloudknot: a python library designed to run your existing python code on AWS Batch" | ||
readme = "README.md" | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Console", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Scientific/Engineering" | ||
] | ||
dependencies = [ | ||
"awscli>=1.32.60,<2", | ||
"boto3>=1.32.60,<2", | ||
"botocore>=1.32.60,<2", | ||
"cloudpickle>=3.0.0,<4", | ||
"docker>=7.0.0,<8", | ||
"pipreqs>=0.4.13,<0.5", | ||
"tenacity>=8.2.3,<9", | ||
] | ||
|
||
[project.urls] | ||
"Homepage" = "https://nrdg.github.io/cloudknot" | ||
"Source" = "https://github.com/nrdg/cloudknot" | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black>=24.2.0,<25", | ||
"coverage>=7.4,<8", | ||
"flake8>=7.0.0,<8", | ||
"moto[cloudformation]==4.1.5", | ||
"numpydoc>=1.6.0,<2", | ||
"pre-commit>=3.6.2,<4", | ||
"pydocstyle>=6.3.0,<7", | ||
"pytest-cov>=4.1.0,<5", | ||
"pytest-xdist[psutil]==2.1.0", | ||
"pytest>=8.0.0,<9", | ||
"sphinx>=5.3.0,<6" | ||
] | ||
maint = ["rapidfuzz>=3.6.2,<4"] | ||
examples = ["ipykernel>=6.29.3,<7", "numpy>=1.26.4,<2"] | ||
|
||
[project.scripts] | ||
cloudknot = "cloudknot.cli:main" | ||
|
||
[build-system] | ||
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"] | ||
requires = ["setuptools", "wheel", "setuptools_scm[toml]"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tools.setuptools_scm] | ||
[tool.setuptools_scm] | ||
|
||
[tool.setuptools] | ||
package-data = { "cloudknot" = [ | ||
"data/*", | ||
"data/*/*", | ||
"data/*/*/*", | ||
"data/*/*/*/*", | ||
"templates/*" | ||
] } | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--doctest-modules" | ||
norecursedirs = "cloudknot/data" | ||
|
||
[tool.black] | ||
line-length = 88 | ||
target-version = ['py37'] | ||
exclude = ''' | ||
target-version = ["py310", "py311", "py312"] | ||
extend-exclude = ''' | ||
( | ||
/( | ||
\.eggs # exclude a few common directories in the | ||
| \.git # root of the project | ||
| \.github | ||
| \.idea | ||
| \.ipynb_checkpoints | ||
| \.hg | ||
| \.pytest_cache | ||
| \.tox | ||
| \.venv | ||
| cloudknot/data | ||
| cloudknot.egg-info | ||
| examples | ||
| doc | ||
| build | ||
| dist | ||
)/ | ||
| _version.py | ||
| cli.py | ||
/( | ||
\.eggs # exclude a few common directories in the | ||
| \.git # root of the project | ||
| \.github | ||
| \.idea | ||
| \.ipynb_checkpoints | ||
| \.hg | ||
| \.pytest_cache | ||
| \.tox | ||
| \.venv | ||
| cloudknot/data | ||
| cloudknot.egg-info | ||
| examples | ||
| doc | ||
| build | ||
| dist | ||
)/ | ||
| _version.py | ||
| cli.py | ||
) | ||
''' | ||
|
||
[tool.pydocstyle] | ||
convention = "numpy" | ||
match = "(?!_version).*\\.py" | ||
match-dir = "cloudknot" | ||
|
||
|