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

Move dependencies from requirements files into pyproject.toml, add extra groups for dev, docs #565

Open
wants to merge 7 commits into
base: development
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Move dependency specifications into pyproject.toml
mfisher87 committed Aug 14, 2024
commit 3964ced0f0414ee942a9cd46ead53bb603bd2728
54 changes: 46 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ license = {file = "LICENSE"}
readme = "README.rst"

requires-python = "~=3.7"
mfisher87 marked this conversation as resolved.
Show resolved Hide resolved
dynamic = ["version", "dependencies"]
dynamic = ["version"]

authors = [
{name = "The icepyx Developers", email = "jbscheick@gmail.com"},
@@ -31,6 +31,49 @@ classifiers=[
"Topic :: Software Development :: Libraries",
]

dependencies = [
"backoff",
"dask[dataframe]",
"datashader",
"earthaccess>=0.5.1",
"fiona",
"geopandas",
"h5netcdf",
"h5py",
"holoviews",
"hvplot",
"matplotlib",
"numpy",
"requests",
"s3fs",
"shapely",
"xarray",
]

[project.optional-dependencies]
dev = [
"pre-commit",
"pypistats",
"pytest>=4.6",
"pytest-cov",
"responses",
]
docs = [
"gitpython",
"linkify-it-py",
"myst-nb",
"nbsphinx",
"numpydoc",
"pybtex",
"pygithub",
"sphinx>=4.3",
"sphinx-panels",
"sphinx_rtd_theme>=1.0",
"sphinxcontrib-bibtex",
]
viz = ["geoviews >= 1.9.0", "cartopy >= 0.18.0", "scipy"]
complete = ["icepyx[viz]"]

[project.urls]
Homepage = "https://icepyx.readthedocs.io"
Documentation = "https://icepyx.readthedocs.io"
@@ -46,13 +89,6 @@ requires = ["setuptools>=66", "wheel", "setuptools_scm"]
[tool.setuptools]
py-modules = ["_icepyx_version"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project.optional-dependencies]
viz = ["geoviews >= 1.9.0", "cartopy >= 0.18.0", "scipy"]
complete = ["icepyx[viz]"]

[tool.setuptools.packages.find]
exclude = ["*tests"]

@@ -61,6 +97,8 @@ version_file = "_icepyx_version.py"
version_file_template = 'version = "{version}"'
local_scheme = "node-and-date"
fallback_version = "unknown"


# [tool.ruff.format]
# docstring-code-format = true
# docstring-code-line-length = "dynamic"
5 changes: 0 additions & 5 deletions requirements-dev.txt

This file was deleted.

11 changes: 0 additions & 11 deletions requirements-docs.txt

This file was deleted.

16 changes: 0 additions & 16 deletions requirements.txt

This file was deleted.