-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pyproject.toml and src root dir (#9)
* Use pyproject.toml and src root dir
- Loading branch information
1 parent
2b92aca
commit bd15815
Showing
9 changed files
with
52 additions
and
54 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
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,5 +1,6 @@ | ||
# setuptools-scm | ||
version.py | ||
_version.py | ||
|
||
# Sphinx automatic generation of API | ||
docs/_api/ | ||
|
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
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,19 +1,58 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"] | ||
requires = ["setuptools>=61", "setuptools-scm>=8.0"] | ||
|
||
[project] | ||
authors = [ | ||
{name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Development Status :: 2 - Pre-Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: Implementation :: PyPy", | ||
"Operating System :: OS Independent" | ||
] | ||
dependencies = [ | ||
"scipy" | ||
] | ||
description = "Geospatial computations" | ||
dynamic = ["version"] | ||
license = {text = "Apache License Version 2.0"} | ||
name = "earthkit-geo" | ||
readme = "README.md" | ||
requires-python = ">= 3.8" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"pytest-cov" | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://earthkit-geo.readthedocs.io/" | ||
Homepage = "https://github.com/ecmwf/earthkit-geo/" | ||
Issues = "https://github.com/ecmwf/earthkit-geo.issues" | ||
Repository = "https://github.com/ecmwf/earthkit-geo/" | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
branch = "true" | ||
|
||
[tool.isort] | ||
profile = "black" | ||
|
||
[tool.pydocstyle] | ||
add_ignore = ["D1", "D200", "D205", "D400", "D401", "D403"] | ||
add_ignore = ["D1", "D200", "D205", "D400", "D401"] | ||
convention = "numpy" | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["earthkit.geo"] | ||
where = ["src/"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "earthkit/geo/version.py" | ||
write_to_template = ''' | ||
# Do not change! Do not track in version control! | ||
__version__ = "{version}" | ||
''' | ||
version_file = "src/earthkit/geo/_version.py" |
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,45 +1,3 @@ | ||
[metadata] | ||
name = earthkit-geo | ||
license = Apache License 2.0 | ||
description = A format-agnostic Python interface for geospatial data | ||
classifiers = | ||
Development Status :: 2 - Pre-Alpha | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: Apache Software License | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Topic :: Scientific/Engineering | ||
long_description_content_type=text/markdown | ||
long_description = file: README.md | ||
test_suite = tests | ||
|
||
[options] | ||
packages = find_namespace: | ||
install_requires = | ||
scipy | ||
include_package_data = True | ||
|
||
[options.packages.find] | ||
include = earthkit.* | ||
|
||
[options.extras_require] | ||
test = | ||
pytest | ||
pytest-cov | ||
pytest-forked | ||
pytest-timeout | ||
nbformat | ||
nbconvert | ||
|
||
[flake8] | ||
max-line-length = 110 | ||
extend-ignore = E203, W503 | ||
|
||
[mypy] | ||
strict = False | ||
ignore_missing_imports = True |
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
File renamed without changes.
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
File renamed without changes.