-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pyproject.toml to full poetry
- Loading branch information
1 parent
fe468f5
commit 047997d
Showing
1 changed file
with
74 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,82 @@ | ||
[build-system] | ||
requires = ["setuptools>=64"] | ||
build-backend = "setuptools.build_meta" | ||
[tool.poetry] | ||
|
||
[project] | ||
name = "pedon" | ||
dynamic = ["version"] | ||
authors = [{ name = "Martin Vonk", email = "[email protected]" }] | ||
version = "0.0.7" | ||
description = "Python package for (unsaturated) soil properties including pedotransfer functions" | ||
authors = ["martinvonk <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.10" | ||
dependencies = ["numpy", "matplotlib", "pandas", "scipy"] | ||
homepage = "https://pypi.org/project/pedon/" | ||
repository = "https://github.com/martinvonk/pedon" | ||
classifiers = [ | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Scientific/Engineering :: Hydrology', | ||
'Intended Audience :: Science/Research', | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
'Programming Language :: Python :: 3 :: Only', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Topic :: Scientific/Engineering :: Hydrology', | ||
'Intended Audience :: Science/Research', | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
include = [ | ||
{ path = "pedon/datasets/soilsamples.csv", format = [ | ||
"sdist", | ||
"wheel", | ||
] }, | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/martinvonk/pedon" | ||
repository = "https://github.com/martinvonk/pedon" | ||
[tool.poetry.dependencies] | ||
python = ">=3.10" | ||
numpy = "*" | ||
pandas = "*" | ||
matplotlib = "*" | ||
scipy = "*" | ||
|
||
[project.optional-dependencies] | ||
linting = ["flake8", "ruff"] | ||
formatting = ["black[jupyter]", "isort"] | ||
typing = ["mypy", "pandas-stubs"] | ||
pytesting = ["pytest>=7", "pytest-cov", "pytest-sugar"] | ||
coveraging = ["coverage"] | ||
dev = ["pedon[linting,formatting,typing,pytesting]", "tox"] | ||
[tool.poetry.group.dev.dependencies] | ||
tox = "^4.15.0" | ||
ipykernel = "^6.29.4" | ||
|
||
[tool.poetry] | ||
name = "pedonenv" | ||
version = "0.0.0" | ||
description = "Development Virtual Environment" | ||
authors = ["poetry"] | ||
[tool.poetry.group.linting] | ||
optional = true | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
numpy = "^1.3" | ||
scipy = "^1.6" | ||
pandas = "^2.0" | ||
matplotlib = "^3.6" | ||
openpyxl = "^3.0" | ||
flake8 = "^6.1.0" | ||
ruff = "^0.1.9" | ||
black = { extras = ["jupyter"], version = "^23.12.1" } | ||
isort = "^5.13.2" | ||
mypy = "^1.8.0" | ||
pandas-stubs = "^2.1.4.231218" | ||
pytest = "^7.4.3" | ||
pytest-cov = "^4.1.0" | ||
pytest-sugar = "^0.9.7" | ||
coverage = "^7.3.4" | ||
tox = "^4.11.4" | ||
setuptools = "^69.0.3" | ||
ipykernel = "^6.28.0" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
version = { attr = "pedon._version.__version__" } | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
"pedon.datasets" = ["*.csv"] | ||
[tool.poetry.group.linting.dependencies] | ||
flake8 = "*" | ||
ruff = "*" | ||
|
||
[tool.poetry.group.formatting] | ||
optional = true | ||
|
||
[tool.poetry.group.formatting.dependencies] | ||
black = { extras = ["jupyter"], version = "*" } | ||
isort = "*" | ||
|
||
[tool.poetry.group.typing] | ||
optional = true | ||
|
||
[tool.poetry.group.typing.dependencies] | ||
mypy = "*" | ||
pandas-stubs = "*" | ||
|
||
[tool.poetry.group.pytesting] | ||
optional = true | ||
|
||
[tool.poetry.group.pytesting.dependencies] | ||
pytest = ">=7" | ||
pytest-cov = "*" | ||
pytest-sugar = "*" | ||
|
||
[tool.poetry.group.coveraging] | ||
optional = true | ||
|
||
[tool.poetry.group.coveraging.dependencies] | ||
coverage = "*" | ||
|
||
[tool.poetry-dynamic-versioning] | ||
enable = true | ||
|
||
[tool.poetry-dynamic-versioning.from-file] | ||
source = "src/pedon/_version.py" | ||
pattern = '__version__ = "(\d(\.\d)+)"' | ||
|
||
[tool.black] | ||
line-length = 88 | ||
|
@@ -129,3 +134,8 @@ legacy_tox_ini = """ | |
ruff check src | ||
""" | ||
|
||
|
||
[build-system] | ||
requires = ["poetry-core", "poetry-dynamic-versioning>=1.3.0"] | ||
build-backend = "poetry.core.masonry.api" |