Skip to content

Commit 4c3023c

Browse files
Ariana-BAriana Barzinpour
andauthored
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 <ariana.barzinpour@ga.gov.au>
1 parent fb19898 commit 4c3023c

4 files changed

Lines changed: 32 additions & 7 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.9"
20+
python-version: "3.10"
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,28 @@ jobs:
3131
uses: codecov/codecov-action@v4
3232
with:
3333
fail_ci_if_error: false
34+
35+
test-build:
36+
name: Test build
37+
runs-on: ubuntu-latest
38+
needs:
39+
- integration-tests
40+
if: |
41+
github.event_name == 'push'
42+
&& needs.integration-tests.result == 'success'
43+
44+
steps:
45+
- uses: actions/checkout@v4
46+
- name: Set up Python
47+
uses: actions/setup-python@v4
48+
with:
49+
python-version: "3.10"
50+
51+
- name: Install dependencies
52+
run: |
53+
python -m pip install --upgrade pip
54+
pip install setuptools wheel
55+
56+
- name: Build package
57+
run: |
58+
python setup.py sdist bdist_wheel # Could also be python -m build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ datasets and metadata.
1212

1313
pip install eodatasets3
1414

15-
Python 3.8+ is supported.
15+
Python 3.10+ is supported.
1616

1717
## Dataset assembly
1818

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
"eodatasets3": ["eodatasets3/py.typed"],
5656
},
5757
license="Apache Software License 2.0",
58-
python_requires=">=3.8",
58+
python_requires=">=3.10",
5959
classifiers=[
6060
"License :: OSI Approved :: Apache Software License",
6161
"Programming Language :: Python :: 3",
62-
"Programming Language :: Python :: 3.6",
63-
"Programming Language :: Python :: 3.7",
64-
"Programming Language :: Python :: 3.8",
65-
"Programming Language :: Python :: 3.9",
62+
"Programming Language :: Python :: 3.10",
63+
"Programming Language :: Python :: 3.11",
64+
"Programming Language :: Python :: 3.12",
65+
"Programming Language :: Python :: 3.13",
6666
"Operating System :: OS Independent",
6767
],
6868
url="https://github.com/opendatacube/eo-datasets",

0 commit comments

Comments
 (0)