-
Notifications
You must be signed in to change notification settings - Fork 75
Build: update setuptools config and CI #241
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
Merged
Merged
Changes from 18 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
71c4500
setuptools: move project data to pyproject.toml
MuellerSeb cd80fe3
docs: zenodo link fix
MuellerSeb 17314b2
pyproject: license fix
MuellerSeb 7a9fd3a
build: require py>3.7
MuellerSeb eb268b1
CI: update cibuildwheel to 2.6
MuellerSeb cba7878
meshio: remove fix for py3.6
MuellerSeb d51ab57
move to src/ based package structure
MuellerSeb f2a8d7f
setup: cython fixes
MuellerSeb 6fbba81
src path fixes
MuellerSeb 5a9cb48
setup: use extension_helpers for openmp support
MuellerSeb c4927db
setup: add missing include_dirs
MuellerSeb 3881441
CI: verbose editable installs
MuellerSeb 9819a54
CI: correct gstools version for check stage by fetching all tags
MuellerSeb 474cbd0
setup: cleanup
MuellerSeb 87ea433
setup: simplify cython
MuellerSeb aeb7757
setup: better check if openmp was used
MuellerSeb 6f3bf7b
update MANIFEST.in
MuellerSeb afd6987
Metadata: reorder; add email
MuellerSeb 801ebcd
PyProject: remove py3.6 from classifiers
MuellerSeb b9baee3
Doc: update meshio min version
MuellerSeb c79cd08
Pylint: update to v2.14
MuellerSeb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,7 +1,4 @@ | ||
prune * | ||
graft tests | ||
recursive-include gstools *.py *.pyx | ||
recursive-exclude gstools *.c *.cpp | ||
include LICENSE README.md pyproject.toml setup.py setup.cfg | ||
exclude CHANGELOG.md CONTRIBUTING.md AUTHORS.md | ||
global-exclude __pycache__ *.py[cod] .* | ||
prune ** | ||
recursive-include tests *.py | ||
recursive-include src/gstools *.py *.pyx | ||
include AUTHORS.md LICENSE README.md pyproject.toml setup.py |
This file contains hidden or 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 hidden or 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,15 +1,94 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"setuptools>=62", | ||
"wheel", | ||
"setuptools_scm[toml]>=3.5", | ||
"setuptools_scm[toml]>=6.4", | ||
"oldest-supported-numpy", | ||
"Cython>=0.28.3,<3.0", | ||
"extension-helpers", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
requires-python = ">=3.7" | ||
name = "gstools" | ||
description = "GSTools: A geostatistical toolbox." | ||
authors = [ | ||
{name = "Sebastian Müller", email = "[email protected]"}, | ||
{name = "Lennart Schüler", email = "[email protected]"}, | ||
] | ||
maintainers = [ | ||
{name = "Sebastian Müller", email = "[email protected]"}, | ||
{name = "Lennart Schüler", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
license = {file = "LICENSE"} | ||
dynamic = ["version"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: Education", | ||
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", | ||
"Natural Language :: English", | ||
"Operating System :: Unix", | ||
"Operating System :: Microsoft", | ||
"Operating System :: MacOS", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: GIS", | ||
"Topic :: Scientific/Engineering :: Hydrology", | ||
"Topic :: Scientific/Engineering :: Mathematics", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Topic :: Utilities", | ||
] | ||
dependencies = [ | ||
"emcee>=3.0.0", | ||
"hankel>=1.0.0", | ||
"meshio>=5.1.0", | ||
"numpy>=1.14.5", | ||
"pyevtk>=1.1.1", | ||
"scipy>=1.1.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
doc = [ | ||
"m2r2>=0.2.8", | ||
"matplotlib>=3", | ||
"meshzoo>=0.7", | ||
"numpydoc>=1.1", | ||
"pykrige>=1.5,<2", | ||
"pyvista>=0.29", | ||
"sphinx>=4", | ||
"sphinx-gallery>=0.8", | ||
"sphinx-rtd-theme>=1", | ||
"sphinxcontrib-youtube>=1.1", | ||
] | ||
plotting = [ | ||
"matplotlib>=3", | ||
"pyvista>=0.29", | ||
] | ||
rust = ["gstools_core>=0.2.0,<1"] | ||
test = ["pytest-cov>=3"] | ||
|
||
[project.urls] | ||
Changelog = "https://github.com/GeoStat-Framework/GSTools/blob/main/CHANGELOG.md" | ||
Conda-Forge = "https://anaconda.org/conda-forge/gstools" | ||
Documentation = "https://gstools.readthedocs.io" | ||
Homepage = "https://geostat-framework.org/#gstools" | ||
Source = "https://github.com/GeoStat-Framework/GSTools" | ||
Tracker = "https://github.com/GeoStat-Framework/GSTools/issues" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "gstools/_version.py" | ||
write_to = "src/gstools/_version.py" | ||
write_to_template = "__version__ = '{version}'" | ||
local_scheme = "no-local-version" | ||
fallback_version = "0.0.0.dev0" | ||
|
@@ -34,8 +113,8 @@ target-version = [ | |
"*docs*", | ||
"*examples*", | ||
"*tests*", | ||
"*/gstools/covmodel/plot.py", | ||
"*/gstools/field/plot.py", | ||
"*/src/gstools/covmodel/plot.py", | ||
"*/src/gstools/field/plot.py", | ||
] | ||
|
||
[tool.coverage.report] | ||
|
@@ -72,8 +151,8 @@ target-version = [ | |
[tool.cibuildwheel] | ||
# Switch to using build | ||
build-frontend = "build" | ||
# Disable building PyPy wheels on all platforms, 32bit for py3.10 and musllinux builds | ||
skip = "pp* cp310-win32 cp310-manylinux_i686 *-musllinux_*" | ||
# Disable building PyPy wheels on all platforms, 32bit for py3.10 and musllinux builds, py3.6 | ||
skip = ["cp36-*", "pp*", "cp310-win32", "cp310-manylinux_i686", "*-musllinux_*"] | ||
# Run the package tests using `pytest` | ||
test-extras = "test" | ||
test-command = "pytest -v {package}/tests" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.