|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=80.3.1"] |
| 3 | +build-backend = "setuptools.build_meta" |
| 4 | + |
| 5 | +[project] |
| 6 | +name = "taskflow" |
| 7 | +dynamic = ["version", "optional-dependencies"] |
| 8 | +urls = {"homepage" = "https://git@github.com/Vectorworks/taskflow.git"} |
| 9 | +description = "A simple workflow library." |
| 10 | +readme = "README.md" |
| 11 | +requires-python = ">=3.9" |
| 12 | + |
| 13 | +[tool.setuptools.dynamic] |
| 14 | +version = {attr = "taskflow.__version__"} |
| 15 | +optional-dependencies = { dev = { file = ["requirements-dev.txt"] } } |
| 16 | + |
| 17 | +[tool.setuptools.packages.find] |
| 18 | +where = ["."] |
| 19 | + |
| 20 | +[tool.setuptools.package-data] |
| 21 | +taskflow = ["**/*"] |
| 22 | + |
| 23 | +[tool.pytest.ini_options] |
| 24 | +testpaths = ["taskflow/tests"] |
| 25 | + |
| 26 | +[tool.flake8] |
| 27 | +exclude = [".cache", ".git", ".tox", ".vscode"] |
| 28 | +max-line-length = 120 |
| 29 | + |
| 30 | +[tool.isort] |
| 31 | +skip = [".cache", ".git", ".tox", ".vscode"] |
| 32 | +indent = 4 |
| 33 | +line_length = 120 |
| 34 | +multi_line_output = 2 |
| 35 | +combine_as_imports = true |
| 36 | +include_trailing_comma = true |
| 37 | +default_section = "THIRDPARTY" |
| 38 | +known_libraries = [] |
| 39 | +known_first_party = ["taskflow"] |
| 40 | +sections = ["FUTURE", "STDLIB", "THIRDPARTY", "LIBRARIES", "FIRSTPARTY", "LOCALFOLDER"] |
| 41 | + |
| 42 | +[tool.tox] |
| 43 | +envlist = ["py310-django32", "py310-django42", "py311-django42", "lint", "isort"] |
| 44 | +skip_missing_interpreters = true |
| 45 | + |
| 46 | +[tool.tox.env.default] |
| 47 | +recreate = false |
| 48 | +alwayscopy = true |
| 49 | +usedevelop = false |
| 50 | +setenv = {PYTHONPATH = "{toxinidir}"} |
| 51 | +changedir = "{toxinidir}" |
| 52 | + |
| 53 | +[tool.tox.env.py310-django32] |
| 54 | +extras = ["dev"] |
| 55 | +deps = ["django>=3.2,<4.0"] |
| 56 | +basepython = ["python3.10"] |
| 57 | +commands = [["python", "-m", "pytest"]] |
| 58 | + |
| 59 | +[tool.tox.env.py310-django42] |
| 60 | +extras = ["dev"] |
| 61 | +deps = ["django>=4.2,<4.3"] |
| 62 | +basepython = ["python3.10"] |
| 63 | +commands = [["python", "-m", "pytest"]] |
| 64 | + |
| 65 | +[tool.tox.env.py311-django42] |
| 66 | +extras = ["dev"] |
| 67 | +deps = ["django>=4.2,<4.3"] |
| 68 | +basepython = ["python3.11"] |
| 69 | +commands = [["python", "-m", "pytest"]] |
| 70 | + |
| 71 | +[tool.tox.env.lint] |
| 72 | +extras = ["dev"] |
| 73 | +commands = [["python", "-m", "flake8", "taskflow"]] |
| 74 | + |
| 75 | +[tool.tox.env.isort] |
| 76 | +extras = ["dev"] |
| 77 | +commands = [["python", "-m", "isort", "--check-only", "--diff", "taskflow"]] |
0 commit comments