Skip to content

Commit

Permalink
chore: migrate setup.cfg -> pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Nov 19, 2024
1 parent 04d6442 commit d18f26a
Show file tree
Hide file tree
Showing 16 changed files with 332 additions and 419 deletions.
48 changes: 43 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"pip"
]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"

[project]
name = "hydrotools"
authors = [
{ name = "Jason A. Regina", email = "[email protected]" },
{ name = "Austin Raney", email = "[email protected]" },
]
description = "Suite of tools for retrieving USGS NWIS observations and evaluating National Water Model (NWM) data."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology",
"Operating System :: OS Independent",
]
dependencies = [
"hydrotools.nwis_client>=3.2.1",
"hydrotools.nwm_client[gcp]>=5.0.3",
"hydrotools.events>=1.1.5",
"hydrotools.metrics>=1.2.3",
]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "hydrotools._version.__version__" }

[project.optional-dependencies]
develop = ["pytest"]

[project.urls]
Homepage = "https://github.com/NOAA-OWP/hydrotools"
Documentation = "https://noaa-owp.github.io/hydrotools"
Repository = "https://github.com/NOAA-OWP/hydrotools"
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues"
43 changes: 40 additions & 3 deletions python/_restclient/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,43 @@
[build-system]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"wheel",

[project]
name = "hydrotools._restclient"
authors = [{ name = "Austin Raney", email = "[email protected]" }]
description = "General REST api client with built in request caching and retries."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology",
"Operating System :: OS Independent",
]
dependencies = [
"aiohttp",
"aiohttp_client_cache[sqlite]>=0.9.0",
"python-forge",
"aiosqlite",
"pandas",
]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "hydrotools._restclient._version.__version__" }

[project.optional-dependencies]
develop = ["pytest", "pytest-aiohttp"]

[project.urls]
Homepage = "https://github.com/NOAA-OWP/hydrotools"
Documentation = "https://noaa-owp.github.io/hydrotools/hydrotools._restclient.html"
Repository = "https://github.com/NOAA-OWP/hydrotools/tree/main/python/_restclient"
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues"
47 changes: 0 additions & 47 deletions python/_restclient/setup.cfg

This file was deleted.

40 changes: 35 additions & 5 deletions python/caches/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"pip"
]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"

[project]
name = "hydrotools.caches"
authors = [{ name = "Jason A. Regina", email = "[email protected]" }]
description = "Variety of object caching utilities for OWPHydroTools."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology",
"Operating System :: OS Independent",
]
dependencies = ["pandas", "tables"]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "hydrotools.caches._version.__version__" }

[project.optional-dependencies]
develop = ["pytest"]

[project.urls]
Homepage = "https://github.com/NOAA-OWP/hydrotools"
Documentation = "https://noaa-owp.github.io/hydrotools/hydrotools.caches.html"
Repository = "https://github.com/NOAA-OWP/hydrotools/tree/main/python/caches"
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues"
44 changes: 0 additions & 44 deletions python/caches/setup.cfg

This file was deleted.

37 changes: 34 additions & 3 deletions python/events/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
[build-system]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"wheel",

[project]
name = "hydrotools.events"
authors = [{ name = "Jason A. Regina", email = "[email protected]" }]
description = "Various methods to support event-based evaluations."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology",
"Operating System :: OS Independent",
]
dependencies = ["pandas"]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "hydrotools.events.event_detection._version.__version__" }

[project.optional-dependencies]
develop = ["pytest"]

[project.urls]
Homepage = "https://github.com/NOAA-OWP/hydrotools"
Documentation = "https://noaa-owp.github.io/hydrotools/hydrotools.events.html"
Repository = "https://github.com/NOAA-OWP/hydrotools/tree/main/python/events"
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues"
43 changes: 0 additions & 43 deletions python/events/setup.cfg

This file was deleted.

46 changes: 43 additions & 3 deletions python/nwis_client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
[build-system]
requires = ["setuptools>=70"]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=42",
"wheel",

[project]
name = "hydrotools.nwis_client"
authors = [{ name = "Austin Raney", email = "[email protected]" }]
description = "A convenient interface to the USGS NWIS Instantaneous Values (IV) REST Service API."
readme = "README.md"
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: Free To Use But Restricted",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Hydrology",
"Operating System :: OS Independent",
]
dependencies = [
"pandas",
"numpy",
"hydrotools._restclient>=3.0.4",
"aiohttp",
"click",
]
dynamic = ["version"]

[tool.setuptools.dynamic]
version = { attr = "hydrotools.nwis_client._version.__version__" }

[project.optional-dependencies]
develop = ["pytest", "pytest-aiohttp"]

[project.urls]
Homepage = "https://github.com/NOAA-OWP/hydrotools"
Documentation = "https://noaa-owp.github.io/hydrotools/hydrotools.nwis_client.html"
Repository = "https://github.com/NOAA-OWP/hydrotools/tree/main/python/nwis_client"
"Bug Tracker" = "https://github.com/NOAA-OWP/hydrotools/issues"

[project.scripts]
nwis-client = "hydrotools.nwis_client.cli:run"
Loading

0 comments on commit d18f26a

Please sign in to comment.