Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyproject.toml for setuptools >= 69.0.0 #153

Closed
wants to merge 14 commits into from
40 changes: 12 additions & 28 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]

[project]
name = "pangeo-forge-runner"
dynamic = ["version"]
dynamic = ["version", "dependencies", "optional-dependencies"]
requires-python = ">=3.9"
description = "Commandline tool to manage pangeo-forge feedstocks"
readme = "README.md"
Expand All @@ -23,30 +23,6 @@ classifiers = [
]
license = { text = "Apache-2.0" }
keywords = ["pangeo", "data"]
dependencies = [
"escapism",
"importlib-metadata",
"jsonschema",
"jupyter-repo2docker",
"ruamel.yaml",
"traitlets",
]

[project.optional-dependencies]
dataflow = [
"apache-beam[gcp]",
]
flink = [
"apache-beam>=2.47.0",
]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
# These are used by the gpcp feedstock integration tests
"gcsfs",
"s3fs",
]

[project.scripts]
pangeo-forge-runner = "pangeo_forge_runner.cli:main"
Expand All @@ -56,13 +32,21 @@ Homepage = "https://github.com/pangeo-forge/pangeo-forge-runner"
Tracker = "https://github.com/pangeo-forge/pangeo-forge-runner/issues"
Documentation = "https://pangeo-forge-runner.readthedocs.io/en/latest/"

[tool.setuptools_scm]
write_to = "pangeo_forge_runner/_version.py"
write_to_template = "__version__ = '{version}'"
[tool.setuptools.dynamic.dependencies]
file = ["requirements.txt"]

[tool.setuptools.dynamic.optional-dependencies]
test = { file = ["requirements-test.txt"] }
dataflow = { file = ["requirements-dataflow.txt"] }
flink = { file = ["requirements-flink.txt"] }

[tool.setuptools.package-data]
pangeo_forge_runner = ["py.typed"]

[tool.setuptools_scm]
write_to = "pangeo_forge_runner/_version.py"
write_to_template = "__version__ = '{version}'"

[tool.isort]
# Prevent isort & black from fighting each otherd
profile = "black"
1 change: 1 addition & 0 deletions requirements-dataflow.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apache-beam[gcp]
1 change: 1 addition & 0 deletions requirements-flink.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
apache-beam>=2.47.0
6 changes: 6 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# These are used by the gpcp feedstock integration tests
gcsfs
pytest
pytest-cov
pytest-mock
s3fs
6 changes: 6 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
escapism
importlib-metadata
jsonschema
jupyter-repo2docker
ruamel.yaml
traitlets
Loading