From e33d054889ad9eb9681bdbad9aff8cde2b58659b Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Thu, 7 Dec 2023 10:37:12 -0500 Subject: [PATCH 1/2] add readthedocs.yaml to kick of setup --- .readthedocs.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..f140e0e --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,34 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + jobs: + post_create_environment: + - pip install poetry + - poetry config virtualenvs.create false + post_install: + - poetry install + +# Build documentation in the "docs/" directory with Sphinx +sphinx: + configuration: docs/conf.py + +# Optionally build your docs in additional formats such as PDF and ePub +# formats: +# - pdf +# - epub + +# Optional but recommended, declare the Python requirements required +# to build your documentation +# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +# python: +# install: +# - requirements: docs/requirements.txt \ No newline at end of file From e59df1c0c58461aabf8e7aab568d700aa885d1ad Mon Sep 17 00:00:00 2001 From: Anthony Galassi <28850131+bendhouseart@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:59:26 -0400 Subject: [PATCH 2/2] added publish to pypi workflow --- .github/workflows/publish_to_pypi.yaml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/publish_to_pypi.yaml diff --git a/.github/workflows/publish_to_pypi.yaml b/.github/workflows/publish_to_pypi.yaml new file mode 100644 index 0000000..03e6d28 --- /dev/null +++ b/.github/workflows/publish_to_pypi.yaml @@ -0,0 +1,36 @@ +name: Publish to PyPI + +on: + push: + tags: + - '**' +env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN_PETDEFACE }} + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.11 + cache: 'poetry' + + - name: Install dependencies + run: | + pipx install poetry + poetry install + + - name: Build + run: | + poetry build + + - name: Publish + if: '!contains(github.ref_name, "test")' + run: | + echo "Publishing to PyPI..." + poetry config pypi-token.pypi $PYPI_TOKEN + poetry publish