Skip to content

Commit a5843fc

Browse files
committed
update workflow
1 parent bfe1fd0 commit a5843fc

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.ipynb linguist-documentation
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Publish Python 🐍 distributions 📦 to PyPI
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
jobs:
16+
build-n-publish:
17+
name: Build and publish Python 🐍 distributions 📦 to PyPI
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: 3.8
26+
27+
- name: Install pip
28+
run: python -m pip install --upgrade pip
29+
30+
- name: Install dependencies
31+
run: pip install -r requirements.txt
32+
33+
- name: Install build
34+
run: python -m pip install build
35+
36+
- name: Build a binary wheel and a source tarball
37+
run: python -m build --sdist --wheel --outdir dist/
38+
39+
- name: Publish distribution 📦 to PyPI
40+
uses: pypa/gh-action-pypi-publish@release
41+
with:
42+
user: __token__
43+
password: ${{ secrets.PYPI_API_TOKEN }}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'Development Status :: 4 - Beta',
2121
'Intended Audience :: Science/Research',
2222
'Topic :: Scientific/Engineering :: Mathematics',
23-
'License :: OSI Approved :: Apache 2.0 License',
23+
'License :: OSI Approved :: Apache Software License',
2424
'Programming Language :: Python :: 3.8',
2525
],
2626
)

0 commit comments

Comments
 (0)