Skip to content

Commit 355e02f

Browse files
authored
Merge pull request #91 from fabianazioti/b-1.0.2-alpha
📝 update workflow for PyPI publishing
2 parents df34ac9 + 5c475d6 commit 355e02f

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ jobs:
177177
- name: Install build and twine
178178
run: |
179179
python3 -m pip install --upgrade pip
180-
python3 -m pip install build twine
180+
python3 -m pip install --upgrade "setuptools>=67" wheel build twine
181+
182+
- name: Clean previous artifacts
183+
run: |
184+
rm -rf dist *.egg-info
181185
182186
- name: Generate stubs
183187
run: |
@@ -188,6 +192,10 @@ jobs:
188192
run: |
189193
python3 -m build
190194
195+
- name: Check distributions (fail fast)
196+
run: |
197+
python3 -m twine check dist/*
198+
191199
- name: Upload artifacts
192200
uses: actions/upload-artifact@v4
193201
with:
@@ -212,8 +220,12 @@ jobs:
212220
TWINE_USERNAME: "__token__"
213221
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
214222
run: |
223+
python3 -m pip install --upgrade pip
215224
python3 -m pip install twine
216-
python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
225+
python3 -m twine upload \
226+
--repository-url https://test.pypi.org/legacy/ \
227+
--verbose \
228+
dist/*
217229
218230
# Publish to PYPI
219231
pypi_publish:

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Changes
2121
=======
2222

23-
Version 1.0.2 (2025-12-18)
23+
Version 1.0.2 (2025-12-19)
2424
--------------------------
2525

2626
- Add actions for release (`#89 <https://github.com/brazil-data-cube/lccs.py/issues/89>`_)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version="1.0.2"
44
description = "."
55
readme = "README.rst"
66
requires-python = ">=3.8"
7-
license = {file = "LICENSE"}
7+
license = { text = "GNU General Public License v3.0" }
88
authors = [
99
{name = "Brazil Data Cube Team", email = "[email protected]"},
1010
]

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ source-dir = docs/sphinx/
2424
build-dir = docs/sphinx/_build
2525
all_files = 1
2626

27+
28+
[metadata]
29+
license_files =

0 commit comments

Comments
 (0)