Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout repo
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: "3.11"
- name: Install pep517
run: >-
python -m
Expand All @@ -26,7 +26,7 @@ jobs:
--out-dir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_PASSWORD }}
Expand All @@ -36,4 +36,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
password: ${{ secrets.PYPI_PASSWORD }}
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
max-parallel: 8
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout repo
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Coveralls Parallel
run: |
coveralls
if: matrix.python-version == 3.8
if: matrix.python-version == 3.11
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions cloudknot/dockerimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ def build(self, tags, image_name=None, nocache=False):
rm=True,
forcerm=True,
nocache=nocache,
platform="linux/amd64",
)

# Update the config file images list
Expand Down
113 changes: 89 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,98 @@
[project]
name = "cloudknot"
dynamic = ["version"]
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Adam Richie-Halford", email = "richiehalford@gmail.com" }]
maintainers = [
{ name = "Adam Richie-Halford", email = "richiehalford@gmail.com" },
]
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.34.66,<2",
"botocore>=1.34.65,<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>=23.7.0,<24",
"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>=69.1.0", "wheel>=0.43.0", "setuptools_scm>=8.0.3"]
build-backend = "setuptools.build_meta"

[tools.setuptools_scm]
[tool.setuptools_scm]

[tool.setuptools.package-data]
cloudknot = ["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.