Open csharpfritz opened 4 years ago
Untested, just getting some info together:
pypi_password
to the project settingspublish-py.yml
in .github/workflows/
GitHub Action: PyPI publish GitHub Action
Get code
steps:
- uses: actions/checkout@v2
Configure python version
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
Any dependencies?
- name: Install dependencies
run: python -m pip install --upgrade pip setuptools wheel
Run tests?
- name: Test with pytest
run: |
pytest
Build for distribution?
- name: Build
run: >-
python setup.py sdist bdist_wheel
Update path to src\python\setup.py
?
Publish
- name: Publish package
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
We should share the Python parser to Pip so that other developers can use it.
Should this just be a GitHub action?