Skip to content

Commit 0c40f9d

Browse files
committed
update workflow
1 parent 7c2c56e commit 0c40f9d

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
workflow_dispatch:
77

88
permissions:
9+
contents: read
910
id-token: write
1011

1112
jobs:
@@ -22,7 +23,7 @@ jobs:
2223
- name: Set up Python
2324
uses: actions/setup-python@v5
2425
with:
25-
python-version: '3.10'
26+
python-version: '3.x'
2627

2728
- name: Install Rust
2829
uses: dtolnay/rust-toolchain@stable
@@ -48,7 +49,7 @@ jobs:
4849
- name: Set up Python
4950
uses: actions/setup-python@v5
5051
with:
51-
python-version: '3.10'
52+
python-version: '3.x'
5253

5354
- name: Install Rust
5455
uses: dtolnay/rust-toolchain@stable
@@ -73,6 +74,7 @@ jobs:
7374
name: pypi
7475
url: https://pypi.org/p/externkit
7576
permissions:
77+
contents: read
7678
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
7779

7880
steps:
@@ -83,10 +85,14 @@ jobs:
8385
path: dist
8486
merge-multiple: true
8587

88+
- name: List files to be published
89+
run: ls -la dist/
90+
8691
- name: Publish to PyPI
8792
uses: pypa/gh-action-pypi-publish@release/v1
8893
with:
8994
# Using trusted publishing - no API token needed!
9095
# Make sure you've configured trusted publishing on PyPI:
9196
# https://docs.pypi.org/trusted-publishers/
9297
verbose: true
98+
print-hash: true

pyproject.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[build-system]
2+
requires = ["maturin>=1.0,<2.0"]
3+
build-backend = "maturin"
4+
5+
[project]
6+
name = "externkit"
7+
version = "0.1.0"
8+
description = "A Python extension for externkit"
9+
readme = "README.md"
10+
license = {file = "LICENSE"}
11+
authors = [
12+
{name = "externref"},
13+
]
14+
classifiers = [
15+
"Development Status :: 3 - Alpha",
16+
"Intended Audience :: Developers",
17+
"License :: OSI Approved :: MIT License",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python :: 3.8",
20+
"Programming Language :: Python :: 3.9",
21+
"Programming Language :: Python :: 3.10",
22+
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Rust",
25+
]
26+
requires-python = ">=3.8"
27+
28+
[project.urls]
29+
Repository = "https://github.com/externref/externkit"
30+
31+
[tool.maturin]
32+
# Python source is in the root directory
33+
module-name = "externkit.externkit"

0 commit comments

Comments
 (0)