Skip to content

Commit

Permalink
upload to pypi (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
semiversus committed Jun 30, 2023
1 parent 3de0e16 commit 13436df
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Package
on: push

jobs:
build-wheels:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -18,10 +18,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
pip install Cython==0.29.30 --install-option="--no-cython-compile"
pip install Cython==0.29.30
pip install numpy==1.21.6 cibuildwheel
- name: Build sdist
run: python setup.py sdist --formats=gztar,zip
run: python setup.py sdist --formats=zip
- name: Build wheels
run: |
python -m cibuildwheel --output-dir dist/
Expand All @@ -37,3 +37,14 @@ jobs:
dist/*.tar.gz
dist/*.zip
retention-days: 7

publish:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/download-artifact@v2
- name: Publish distribution
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
8 changes: 8 additions & 0 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ pyOpTools can be downloaded from the project GitHub repository at:

https://github.com/cihologramas/pyoptools

Installing via pip
------------------

On Windows, Mac OS and Linux you can use `pip`` to install pyOpTools.

pip install pyoptools

This will install the latest available version of pyoptools.

Installing it in Debian 11 (should work on any Debian derivative)
-----------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[metadata]
description-file = README.md
long_description = file: README.md
long_description_content_type = text/markdown

0 comments on commit 13436df

Please sign in to comment.