Skip to content

Commit 600b8a7

Browse files
authored
add trusted PyPI publisher, etc. (#508)
1 parent 099b505 commit 600b8a7

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.github/workflows/release_and_publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ on:
1212
required: false
1313
jobs:
1414
build:
15+
name: Create release & publish to PyPI
1516
runs-on: ubuntu-latest
17+
permissions:
18+
id-token: write # MANDATORY for trusted publishing to PyPI
19+
contents: write # MANDATORY for the Github release action
1620
steps:
1721
- name: Checkout repo
1822
uses: actions/checkout@v6
@@ -39,6 +43,3 @@ jobs:
3943
});
4044
- name: Publish distribution 📦 to PyPI
4145
uses: pypa/gh-action-pypi-publish@release/v1
42-
with:
43-
user: __token__
44-
password: ${{ secrets.pypi_password }}

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: spopt
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.13
5+
- python=3.14
66
- fast_hdbscan
77
- geopandas
88
- jupyterlab

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@ tests = [
5454
"pytest-cov",
5555
"pytest-xdist",
5656
]
57-
dev = ["pre-commit", "ruff"]
57+
dev = [
58+
"pre-commit",
59+
"ruff",
60+
]
5861
docs = [
5962
"nbsphinx",
6063
"numpydoc",
@@ -79,7 +82,6 @@ sa3 = [
7982
"numba",
8083
]
8184

82-
8385
[tool.setuptools.packages.find]
8486
include = ["spopt", "spopt.*"]
8587

0 commit comments

Comments
 (0)