Skip to content

Commit

Permalink
Merge pull request #90 from SekouDiaoNlp/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
SekouDiaoNlp committed Oct 24, 2021
2 parents e5e34bb + 7f843b2 commit 02321b8
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/wheels.yml
@@ -0,0 +1,54 @@
name: Build source and wheels packages and upload them to PyPI

# Build on every branch push, tag push, and pull request change:
on: [workflow_dispatch]
# Alternatively, to publish when a (published) GitHub Release is created, use the following:
# on:
# push:
# pull_request:
# release:
# types:
# - published

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]

steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
name: Install Python
with:
python-version: '3.8'

- name: Build wheels
uses: pypa/cibuildwheel@v2.2.0

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl


upload_pypi:
needs: [build_wheels]
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'workflow_dispatch'
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
# To test: repository_url: https://test.pypi.org/legacy/
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -46,6 +46,7 @@
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Natural Language :: French',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down

0 comments on commit 02321b8

Please sign in to comment.