Skip to content

Commit

Permalink
Moved to pyproject.toml-based configuration with upgraded packages pi…
Browse files Browse the repository at this point in the history
…nned to semver ranges
  • Loading branch information
maouw committed Mar 12, 2024
1 parent 7644eb7 commit 7ad30c5
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 103 deletions.
5 changes: 5 additions & 0 deletions .flake8
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
121 changes: 97 additions & 24 deletions pyproject.toml
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"


79 changes: 0 additions & 79 deletions setup.cfg

This file was deleted.

0 comments on commit 7ad30c5

Please sign in to comment.