From df3a9e512062d8a63430f6dcd3a21db0e3f85da7 Mon Sep 17 00:00:00 2001 From: Alex Baker Date: Sat, 15 Jul 2023 09:02:14 -0700 Subject: [PATCH] Adding automatic publishing and version bump in preperation for 0.2.0 release --- .github/workflows/ci-release.yml | 28 +++++++++++++++++++++++++++ .github/workflows/ci-snapshot.yml | 32 +++++++++++++++++++++++++++++++ .readthedocs.yaml | 2 +- CHANGELOG.md | 6 ++++++ setup.py | 2 +- 5 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-release.yml create mode 100644 .github/workflows/ci-snapshot.yml create mode 100644 CHANGELOG.md diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml new file mode 100644 index 00000000..9ac6488d --- /dev/null +++ b/.github/workflows/ci-release.yml @@ -0,0 +1,28 @@ +name: Release Builder +on: + release: + types: [published] +jobs: + build: + name: Python Release Builder + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install build + run: >- + python3 -m + pip install + build + --user + - name: Build the sdist and wheel + run: >- + python3 -m + build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/ci-snapshot.yml b/.github/workflows/ci-snapshot.yml new file mode 100644 index 00000000..ef298287 --- /dev/null +++ b/.github/workflows/ci-snapshot.yml @@ -0,0 +1,32 @@ +name: Snapshot Builder +on: + push: + branches: [ main ] + tags-ignore: + - "[0-9]+.[0-9]+.[0-9]+" + - "[0-9]+.[0-9]+.[0-9]+.[0-9]+" +jobs: + build: + name: Python Snapshot Builder + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + - name: Install build + run: >- + python3 -m + pip install + build + --user + - name: Build the sdist and wheel + run: >- + python3 -m + build + - name: Publish 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/ \ No newline at end of file diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 27eeaab6..24127616 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,7 +6,7 @@ build: python: "3.11" jobs: pre_build: - - sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.1.0" -e -a -o _staging . tests setup.py + - sphinx-apidoc -F -H "App Store Server Library" -A "Apple Inc." -V "0.2.0" -e -a -o _staging . tests setup.py sphinx: configuration: _staging/conf.py diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..428216e2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +# Changelog + +## 0.2.0 + +- Correct type in LastTransactionsItem's status field [#11] (https://github.com/apple/app-store-server-library-python/pull/11) +- Fix default value None for fields should require an Optional type [#6] (https://github.com/apple/app-store-server-library-python/pull/6) \ No newline at end of file diff --git a/setup.py b/setup.py index ecc3f21b..5c95fe9b 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="app-store-server-library", - version="0.1.0", + version="0.2.0", description="The App Store Server Library", long_description=long_description, long_description_content_type="text/markdown",