Skip to content

Commit a61d68e

Browse files
authored
Attempt to fix publishing workflows. (#466)
1 parent 9a765ef commit a61d68e

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.github/workflows/pypi.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
- name: Set up Python and uv
1313
uses: astral-sh/setup-uv@v4
1414
with:
15-
python-version: "3.x"
15+
python-version: "3.13"
1616
- name: Build and publish
1717
env:
1818
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
1919
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2020
run: |
21+
uv venv
2122
uv build
2223
uv publish

.github/workflows/testpypi-release.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up Python and uv
2525
uses: astral-sh/setup-uv@v4
2626
with:
27-
python-version: "3.x"
27+
python-version: "3.13"
2828

2929
# - name: Disable local versions
3030
# run: |
@@ -39,6 +39,7 @@ jobs:
3939
4040
- name: Check built artifacts
4141
run: |
42+
uv venv
4243
uv pip install twine
4344
uv run twine check --strict dist/*
4445
if [ -f dist/flox-999.tar.gz ]; then
@@ -57,10 +58,9 @@ jobs:
5758
needs: build-artifacts
5859
runs-on: ubuntu-latest
5960
steps:
60-
- name: Set up Python and uv
61-
uses: astral-sh/setup-uv@v4
62-
with:
63-
python-version: "3.x"
61+
- uses: actions/setup-python@v5
62+
name: Install Python
63+
6464
- uses: actions/download-artifact@v4
6565
with:
6666
name: releases
@@ -72,8 +72,7 @@ jobs:
7272
7373
- name: Verify the built dist/wheel is valid
7474
run: |
75-
uv pip install dist/flox*.whl
76-
# python -m cf_xarray.scripts.print_versions
75+
pip install dist/flox*.whl
7776
7877
# - name: Publish package to TestPyPI
7978
# uses: pypa/[email protected]

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
[project]
22
name = "flox"
33
description = "GroupBy operations for dask.array"
4-
license = {file = "LICENSE"}
4+
license = "Apache-2.0"
55
readme = "README.md"
66
requires-python = ">=3.11"
77
keywords = ["xarray", "dask", "groupby"]
88
classifiers = [
99
"Development Status :: 4 - Beta",
10-
"License :: OSI Approved :: Apache Software License",
1110
"Natural Language :: English",
1211
"Operating System :: OS Independent",
1312
"Programming Language :: Python",

0 commit comments

Comments
 (0)