Skip to content

Commit

Permalink
Packaging (#503)
Browse files Browse the repository at this point in the history
* Publish to PyPI using Github Action
* Reformat CHANGES.md to always add at the top and use consistent language.

Co-authored-by: Hans-Martin von Gaudecker <[email protected]>
  • Loading branch information
timmens and hmgaudecker authored Jan 27, 2023
1 parent db52ddf commit 0a644ce
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 186 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: PyPI

on: push

jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ waf3-*
*latexmk
*synctex.gz
.*
!.environment.osx.yml
!.environment.windows.yml
!.environment.linux.yml
!.github
!.pre-commit-config.yaml
!.envrc
.*pdfsvn
Expand Down
Loading

0 comments on commit 0a644ce

Please sign in to comment.