From 8022b0ceb62c181554f40868251eb4aba2684db8 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Thu, 23 May 2024 18:02:22 -0400 Subject: [PATCH 1/2] fix(ci): use Python 3.11 to build and publish packages --- .github/workflows/build-calitp-data-analysis.yml | 2 +- .github/workflows/build-calitp-map-utils.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-calitp-data-analysis.yml b/.github/workflows/build-calitp-data-analysis.yml index 8acdda5ab0..28f338fd53 100644 --- a/.github/workflows/build-calitp-data-analysis.yml +++ b/.github/workflows/build-calitp-data-analysis.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.11' - uses: 'google-github-actions/auth@v2' with: credentials_json: '${{ secrets.GCP_SA_KEY }}' diff --git a/.github/workflows/build-calitp-map-utils.yml b/.github/workflows/build-calitp-map-utils.yml index 7a7716e06a..fe30a779ec 100644 --- a/.github/workflows/build-calitp-map-utils.yml +++ b/.github/workflows/build-calitp-map-utils.yml @@ -27,7 +27,7 @@ jobs: - run: sudo apt-get install -y libgraphviz-dev graphviz-dev - uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.11' - run: | curl -sSL https://install.python-poetry.org | python - poetry install From 463261b9549f8c426f321e34c0316e55252894fe Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Thu, 23 May 2024 18:02:39 -0400 Subject: [PATCH 2/2] fix(docs): remove out-of-date note about publishing to PyPi not being automated --- apps/maps/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/maps/README.md b/apps/maps/README.md index 700719e9bb..b492539b80 100644 --- a/apps/maps/README.md +++ b/apps/maps/README.md @@ -15,8 +15,7 @@ data validation as well as Typescript types for type-hinting in the Svelte app. a few CLI commands to facilitate validating pre-existing data with those types and/or generate a quick URL with state for testing. -TODO: a GitHub Action workflow exists to build the package, but it does not currently publish to pypi; right now -that is done manually with `poetry publish`. +A GitHub Action workflow exists to build the package and publish it to PyPi. Be sure to bump the version date in `pyproject.toml` in any pull request that updates the library. ## Developing the maps app