From 24a9d94bdfedc42fcf5b54d56419e64635f2ef8c Mon Sep 17 00:00:00 2001 From: LTLA Date: Wed, 24 Apr 2024 11:01:48 -0700 Subject: [PATCH] Added action to publish to PyPi, cleaned up project description. --- .github/workflows/publish-pypi.yaml | 37 +++++++++++++++++++++++++++++ setup.cfg | 6 ++--- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/publish-pypi.yaml diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml new file mode 100644 index 0000000..8636f7f --- /dev/null +++ b/.github/workflows/publish-pypi.yaml @@ -0,0 +1,37 @@ +# This workflow will install Python dependencies, run tests and lint with a single version of Python +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Publish to PyPI + +on: + push: + tags: "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pytest tox + + - name: Build project + run: | + python -m tox -e clean,build + + - name: Publish package + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_PASSWORD }} + diff --git a/setup.cfg b/setup.cfg index 090a845..708e93e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,17 +5,17 @@ [metadata] name = pygobbler -description = Add a short description here! +description = Python client for the Gobbler service author = LTLA author_email = infinite.monkeys.with.keyboards@gmail.com license = MIT license_files = LICENSE.txt long_description = file: README.md long_description_content_type = text/markdown; charset=UTF-8; variant=GFM -url = https://github.com/pyscaffold/pyscaffold/ +url = https://github.com/ArtifactDB/gobbler-py/ # Add here related links, for example: project_urls = - Documentation = https://pyscaffold.org/ + Documentation = https://artifactdb.github.io/gobbler-py # Source = https://github.com/pyscaffold/pyscaffold/ # Changelog = https://pyscaffold.org/en/latest/changelog.html # Tracker = https://github.com/pyscaffold/pyscaffold/issues