csharpfritz / TAML

Defining the coolest and simplest markup language delimited ONLY by tabs
MIT License
23 stars 11 forks source link

Deploy Python parser to Pip #36

Open csharpfritz opened 4 years ago

csharpfritz commented 4 years ago

We should share the Python parser to Pip so that other developers can use it.

Should this just be a GitHub action?

AlexHedley commented 3 years ago

Untested, just getting some info together:


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 }}