-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added cibuildwheel to spiceypy github actions to build manylinux, macos, and windows wheels * replacing old method for windows wheel builds, builds on each release but only attempts to push to pypi on tagged releases * added pyproject.toml, need to deduplicate metadata from setup.py and maybe move to setup.cfg instead
- Loading branch information
1 parent
945e307
commit 73bba45
Showing
5 changed files
with
162 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 |
---|---|---|
|
@@ -144,3 +144,4 @@ jobs: | |
- name: Upload 🆙 coverage 📈 report to codecov | ||
run: | | ||
codecov | ||
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
[project] | ||
name = "spiceypy" | ||
version="4.0.2" | ||
author="Andrew Annex" | ||
author_email="ama6fy@virginia.edu" | ||
description="A Python Wrapper for the NAIF CSPICE Toolkit" | ||
license = "MIT" | ||
homepage = "https://github.com/AndrewAnnex/SpiceyPy" | ||
repository = "https://github.com/AndrewAnnex/SpiceyPy" | ||
documentation = "https://spiceypy.readthedocs.io" | ||
keywords=["spiceypy", "spice", "naif", "jpl", "space", "geometry", "ephemeris"] | ||
readme = "README.rst" | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Natural Language :: English", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Astronomy", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: POSIX :: BSD :: FreeBSD", | ||
"Operating System :: Microsoft :: Windows", | ||
] | ||
requires-python = ">=3.6, <4" | ||
dependencies = ["numpy>=1.17.0"] | ||
|
||
[build-system] | ||
requires = ["setuptools >= 42", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.cibuildwheel] | ||
# Only build on CPython 3.9 | ||
build = "cp39-*" | ||
# Skip 32-bit builds and pypy | ||
skip = ["*-win32", "*-manylinux_i686", "pypy*"] | ||
# other options | ||
build-verbosity = 2 | ||
before-build = "python get_spice.py" | ||
before-test = "pip install -r ci-requirements.txt" | ||
test-command = [ | ||
"coverage run --source {package} -m pytest --pyargs {project}", | ||
] | ||
|
||
[tool.cibuildwheel.macos] | ||
# to start just try to get amd64 working, later we can worry about arm | ||
archs = ["x86_64"] | ||
|
||
[tool.cibuildwheel.linux] | ||
archs = ["x86_64"] |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
|
||
[coverage:run] | ||
relative_files = True | ||
|
||
[coverage:paths] | ||
source = | ||
spiceypy/ | ||
work/SpiceyPy/SpiceyPy/ |
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