From c4d30fccce3db038db7522d24537555ec37cf8db Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Mon, 15 Apr 2024 13:22:54 -0400 Subject: [PATCH 1/3] Remove runtime dependency on python version --- conda.recipe/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 03b7dfa..7b03cb5 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -9,7 +9,6 @@ source: build: noarch: python - string: py{{py}} script: python setup.py install --single-version-externally-managed --record=record.txt entry_points: - pystog_cli = pystog.cli:pystog_cli From 992d7c1bc2a773104a6615fe82d8b4bf1ad991b5 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Mon, 15 Apr 2024 13:48:53 -0400 Subject: [PATCH 2/3] Change python versions for building and pushing out the conda package --- .github/workflows/actions.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 30e302b..3c292bb 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -17,8 +17,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.7", "3.8"] - + python-version: ["3.10", "3.11"] + steps: - uses: actions/checkout@v2 - uses: conda-incubator/setup-miniconda@v2 @@ -52,11 +52,11 @@ jobs: tox -e coverage pip install coverage bash <(curl -s https://codecov.io/bash) - + - name: Build Python package and Upload to PyPi shell: bash -l {0} if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION - env: + env: PYPI_TOKEN_PASSWORD: ${{ secrets.PYPI_TOKEN }} run: | pip install wheel twine @@ -65,7 +65,7 @@ jobs: - name: Build conda package and upload to Anaconda shell: bash -l {0} - if: startsWith( github.ref, 'refs/tags/v') + if: startsWith( github.ref, 'refs/tags/v') && matrix.python-version == env.PYTHON_MAIN_VERSION env: ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }} IS_RC: ${{ contains(github.ref, 'rc') }} From 2257a242729c7070805e8342d86ccf98cac91181 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Mon, 15 Apr 2024 13:53:38 -0400 Subject: [PATCH 3/3] Changing python versions used again --- .github/workflows/actions.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 3c292bb..d6ddcd3 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: ["3.10", "3.11"] + python-version: ["3.9", "3.10"] steps: - uses: actions/checkout@v2