-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build wheels * should work for linux and maybe macos * remove windows for now * only linux for now * test upload to pypi (test) * add build dependencies * add back macos * trying something else for macos * don't build for python 3.10 for now * forgot to add to commit * switching to oldest_supported_numpy * skip pypy builds because of numpy issues * getting started with windows build * trying escaped double quotes * try to install with conda * forgot pyproject * fix lib dir for windows * clean up macos with symlinks * another try * back to what works * Addressing Uwe's comments * trying new windows formatting * trying CXX flags * jemalloc-local for linux and new syntax for windows * using include for windows instead of CFLAGS * focus on windows for now * double backslash? * backslash... * now taking care of macos * jemalloc cannot build docs when prefixed * fix read-only error on macos and re-enable linux wheel build * missed a comma * new path for included headers * use older linux image to improve compatibility * added changelog and testpypi step before sending to pypi
- Loading branch information
1 parent
0620786
commit 3c0de79
Showing
4 changed files
with
139 additions
and
2 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,78 @@ | ||
name: Build and upload to PyPI | ||
|
||
on: | ||
pull_request: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-10.15, windows-2019] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install setuptools setuptools-scm wheel mako numpy Cython | ||
|
||
- name: Build sdist | ||
run: python setup.py sdist | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
path: dist/*.tar.gz | ||
|
||
upload_testpypi: | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.GH_TESTPYPI_UPLOAD }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist, upload_testpypi] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.GH_PYPI_UPLOAD }} | ||
repository_url: https://pypi.org/legacy/ |
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