From 4c3023c75884fc0ca4170c9d1c4ffb3abb85277d Mon Sep 17 00:00:00 2001 From: Ariana-B <40238244+Ariana-B@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:43:45 +1100 Subject: [PATCH] Add action to test build (#363) * add action to push to testpypi * avoid publishing to testpypi until we know everything works * bump min python version, don't test pypi twice * just test build to avoid testpypi token issues --------- Co-authored-by: Ariana Barzinpour --- .github/workflows/pypi.yml | 2 +- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ README.md | 2 +- setup.py | 10 +++++----- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index ef88de06..45342c34 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.9" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4c759b4..59f1143a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,3 +31,28 @@ jobs: uses: codecov/codecov-action@v4 with: fail_ci_if_error: false + + test-build: + name: Test build + runs-on: ubuntu-latest + needs: + - integration-tests + if: | + github.event_name == 'push' + && needs.integration-tests.result == 'success' + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + + - name: Build package + run: | + python setup.py sdist bdist_wheel # Could also be python -m build diff --git a/README.md b/README.md index 098430d8..a04b3330 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ datasets and metadata. pip install eodatasets3 -Python 3.8+ is supported. +Python 3.10+ is supported. ## Dataset assembly diff --git a/setup.py b/setup.py index 39ede6c3..0bee8406 100755 --- a/setup.py +++ b/setup.py @@ -55,14 +55,14 @@ "eodatasets3": ["eodatasets3/py.typed"], }, license="Apache Software License 2.0", - python_requires=">=3.8", + python_requires=">=3.10", classifiers=[ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: OS Independent", ], url="https://github.com/opendatacube/eo-datasets",