-
Notifications
You must be signed in to change notification settings - Fork 131
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
Trying pyproject.toml and scikit-build-core #378
Merged
Changes from 24 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
963c950
trying a scikit-build-core setup
ajfriend fd6c2f8
trying things
ajfriend 48bd3be
vendor FindCython
isaacbrodsky a9e9729
fix build
isaacbrodsky c5394a1
remove unused
isaacbrodsky a14ee96
cython tests working
ajfriend 957cbed
fix lint action
ajfriend 71d636b
coverage fix
ajfriend f8fd3d0
drop annotation stuff for now, because i can't get it working
ajfriend 9cd175f
book building
ajfriend 073db04
all target
ajfriend 8645c63
try again
ajfriend dc65bbc
don't install all
ajfriend 4d5c66b
numpy!
ajfriend a0d58b7
pip install h3.tar.gz[test]
ajfriend 325aa09
drop wheel builds for 3.6 and 3.7
ajfriend ef436ce
move coverage config to pyproject.toml
ajfriend 5ffa556
remove requirements-dev.txt
ajfriend a810bbe
remove cmake from the build system requirements
ajfriend f738c6d
single sourcing the version number in _version.py
ajfriend 0ce30f7
i think scikitbuild-core doesn't work with dynamic = ['version']. try…
ajfriend 47ece53
uber's
ajfriend 42e614f
alphabetical files in cmakelists.txt
ajfriend b1efd87
tidy up files in the sdist
ajfriend 4392e2e
move pytest config to pyproject.toml
ajfriend c08b8c5
CIBW_TEST_COMMAND: pytest
ajfriend db649a1
CIBW_TEST_COMMAND: pytest {project}/tests
ajfriend 9d5c620
CIBW_TEST_REQUIRES: pytest pytest-cov numpy
ajfriend 36f14dc
get better coverage on the testing code
ajfriend f9d4f24
fix api reference link (#385)
pieterprovoost 9a7442b
Added Bindings for Vertex-Related Functions (#388)
Shiran-Yuan 459235a
Bump actions/download-artifact from 4.1.4 to 4.1.7 in /.github/workfl…
dependabot[bot] 58731ba
prep for v4.0.0b6 release (#394)
ajfriend 40cdd86
alphabetical files in cmakelists.txt
ajfriend e548205
Merge branch 'master' into aj/toml
ajfriend 72820a4
single
ajfriend 7d18958
test with numpy>=2
ajfriend 121314a
drop lower bound on numpy version
ajfriend 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 was deleted.
Oops, something went wrong.
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
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
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 was deleted.
Oops, something went wrong.
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,6 +1,90 @@ | ||
[build-system] | ||
requires = [ | ||
'scikit-build', | ||
'cython', | ||
'cmake', | ||
requires = ['scikit-build-core', 'cython'] | ||
build-backend = 'scikit_build_core.build' | ||
|
||
[project] | ||
name = 'h3' | ||
version = '4.0.0b6' | ||
description = "Uber's hierarchical hexagonal geospatial indexing system" | ||
readme = 'readme.md' | ||
license = {file = 'LICENSE'} | ||
authors = [ | ||
{ name = 'Uber Technologies', email = 'ajfriend@gmail.com' }, | ||
] | ||
maintainers = [ | ||
{ name = 'AJ Friend', email = 'ajfriend@gmail.com' }, | ||
] | ||
requires-python = '>=3.8' | ||
|
||
dependencies = [] | ||
|
||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: C', | ||
'Programming Language :: Cython', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Programming Language :: Python :: 3.12', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: Microsoft :: Windows', | ||
'Topic :: Scientific/Engineering :: GIS', | ||
] | ||
|
||
[project.urls] | ||
Homepage = 'https://github.com/organization/package' | ||
Documentation = 'https://package.readthedocs.io/' | ||
'Bug Tracker' = 'https://github.com/organization/package/issues' | ||
Discussions = 'https://github.com/organization/package/discussions' | ||
Changelog = 'https://package.readthedocs.io/en/latest/changelog.html' | ||
|
||
|
||
[project.optional-dependencies] | ||
numpy = ['numpy<2'] | ||
test = ['pytest', 'pytest-cov', 'flake8', 'pylint', 'numpy<2'] | ||
all = [ | ||
'jupyter-book', | ||
'flake8', | ||
'sphinx>=7.3.3', # https://github.com/sphinx-doc/sphinx/issues/12290 | ||
'jupyterlab', | ||
'jupyterlab-geojson', | ||
'geopandas', | ||
'geodatasets', | ||
'matplotlib', | ||
'contextily', | ||
'cartopy', | ||
'geoviews', | ||
'numpy<2', | ||
'pytest', | ||
'pytest-cov', | ||
'pylint', | ||
] | ||
|
||
[tool.coverage.run] | ||
omit = [ | ||
'*/h3/api/basic_int/__init__.py', | ||
'*/h3/api/memview_int/__init__.py', | ||
'*/h3/api/numpy_int/__init__.py' | ||
] | ||
|
||
|
||
[tool.scikit-build] | ||
sdist.exclude = [ | ||
'src/h3lib', | ||
'docs', | ||
'dev_notes.md', | ||
'makefile', | ||
] | ||
sdist.include = [ | ||
'src/h3lib/LICENSE', | ||
'src/h3lib/README.md', | ||
'src/h3lib/VERSION', | ||
'src/h3lib/CMakeLists.txt', | ||
'src/h3lib/cmake/*', | ||
'src/h3lib/src/h3lib/*' | ||
ajfriend marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need to be limited to
numpy<2
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope! Dropped it.