PyAr / pyafipws

Interfases, tools and apps for Argentina's gov't. webservices (soap, com/dll simil-ocx, pdf, dbf, xml, json, etc.) #python
https://github.com/PyAr/pyafipws/wiki/PyAr-PSF-GSoC-2019-Final-Summary
GNU Lesser General Public License v3.0
2 stars 14 forks source link

Publish package in PyPI #106

Open reingart opened 1 year ago

reingart commented 1 year ago

We need a new GitHub Action workflow to automatically publish this package to PyPI (Python Package Index)

This will be useful for other project, to ease their installation. For example see a thread for the Odoo Argentine localization: https://github.com/reingart/pyafipws/issues/102

How-To: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

The GitHub Action pypa/gh-action-pypi-publish could be easily added to .github//workflows/python-package.yml:

    - name: Publish distribution 📦 to Test PyPI
      uses: pypa/gh-action-pypi-publish@release/v1
      with:
        password: ${{ secrets.TEST_PYPI_API_TOKEN }}
        repository_url: https://test.pypi.org/legacy/

This action should only run if secrets.TEST_PYPI_API_TOKEN is configured

baivab85 commented 6 months ago

Yes workflow is extremely necessary. So I want to work over this issue.

baivab85 commented 6 months ago

name: Publish Python 🐍 distributions 📦 to PyPI and Test PyPI

on: push: branches:

jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and Test PyPI runs-on: ubuntu-18.04 steps: