-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update python build line for Windows * Fix numpy int size for Windows * Configure CI to build wheels * Use PEP517's build mechanism * Add upload to test PyPI * Build manylinux wheels * Correct to manylinux before push * Fix CI * Add publish for tagged versions * Use versionneer * Fix various build issues * Fix build for python 3.5 * Change versioneer style
- Loading branch information
Showing
12 changed files
with
2,444 additions
and
12 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
hvwfg/_version.py export-subst |
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 |
---|---|---|
|
@@ -4,19 +4,21 @@ on: [push] | |
|
||
jobs: | ||
build: | ||
name: Test on Python ${{ matrix.python_version }} and ${{ matrix.os }} | ||
name: Test and build on Python ${{ matrix.python_version }} and ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7] | ||
python-version: [3.5, 3.6, 3.7, 3.8] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Enable Developer Command Prompt | ||
if: matrix.os == 'windows-latest' | ||
uses: ilammy/[email protected] | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
|
@@ -32,3 +34,45 @@ jobs: | |
run: | | ||
pip install deap pytest | ||
pytest | ||
- name: Build wheel | ||
run: | | ||
pip install pep517 wheel | ||
python -m pep517.build --source --binary --out-dir dist/ . | ||
- name: Upload wheel | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist | ||
path: dist | ||
build-n-publish: | ||
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI | ||
needs: build | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
- name: Download wheels | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: dist | ||
- name: Correct to manylinux | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y patchelf | ||
pip install auditwheel | ||
for whl in dist/hvwfg-*-linux_x86_64.whl; do | ||
auditwheel repair "$whl" -w dist/ | ||
done | ||
rm dist/hvwfg-*-linux_x86_64.whl | ||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.test_pypi_password }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
- name: Publish distribution 📦 to PyPI | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} |
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,3 @@ | ||
include versioneer.py | ||
include hvwfg/_version.py | ||
global-include *.pyx *.pxd *.h |
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
Oops, something went wrong.