-
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.
New setup.py/pyproject.toml packaging standards (#165)
- Loading branch information
Showing
15 changed files
with
64 additions
and
101 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 |
---|---|---|
|
@@ -6,7 +6,7 @@ name: Build-wheels | |
# the GitHub website. Wheels should be uploaded manually to PyPI -- see CONTRIBUTING.md. | ||
|
||
# The Linux wheels cannot be generated using `ubuntu-latest` because they require a | ||
# special Docker image to ensure cross-Linux compatibility. There are at least a couple | ||
# special Docker image to provide cross-Linux compatibility. There are at least a couple | ||
# of third-party actions set up using the official image; we could switch to another if | ||
# this ever breaks. | ||
|
||
|
@@ -25,10 +25,9 @@ jobs: | |
# with: | ||
# ref: 'v0.6' # enable to check out prior version of codebase | ||
- name: Build wheels | ||
uses: RalfG/[email protected].3 | ||
uses: RalfG/[email protected].4 | ||
with: | ||
python-versions: 'cp35-cp35m cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' | ||
build-requirements: 'cython numpy' | ||
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39' | ||
- name: Save artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -55,10 +54,10 @@ jobs: | |
- name: Set up environment | ||
run: | | ||
conda config --append channels conda-forge | ||
conda install cython numpy clang llvm-openmp | ||
conda install build clang llvm-openmp | ||
- name: Build wheel | ||
run: | | ||
python setup.py bdist_wheel | ||
python -m build --sdist --wheel | ||
- name: Save artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
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
Empty file.
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 @@ | ||
[build-system] | ||
# Requirements for building the compiled package | ||
requires = [ | ||
"wheel", | ||
"setuptools >=40.8", | ||
"cython >=0.25.2", | ||
"oldest-supported-numpy" | ||
] | ||
build-backend = "setuptools.build_meta" |
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.