sampleproject-rs 0.0.2__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sampleproject_rs-0.0.4/.github/workflows/publish.yml +53 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/PKG-INFO +1 -1
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/pyproject.toml +1 -1
- sampleproject_rs-0.0.2/.github/workflows/publish.yml +0 -25
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/.gitignore +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/Cargo.lock +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/Cargo.toml +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/LICENSE +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/README.md +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/src/main.rs +0 -0
- {sampleproject_rs-0.0.2 → sampleproject_rs-0.0.4}/tests/cli.rs +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
name: Publish Python Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types:
|
|
6
|
+
- published
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-sdist:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v5
|
|
16
|
+
- name: Build package
|
|
17
|
+
run: |
|
|
18
|
+
pipx run maturin sdist --out dist
|
|
19
|
+
pipx run twine check dist/*
|
|
20
|
+
- uses: actions/upload-artifact@v4
|
|
21
|
+
with:
|
|
22
|
+
name: pypi-files-sdist
|
|
23
|
+
path: dist
|
|
24
|
+
build-linux:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v5
|
|
28
|
+
- name: Build package
|
|
29
|
+
run: |
|
|
30
|
+
pipx run maturin build --release --out dist
|
|
31
|
+
pipx run twine check dist/*
|
|
32
|
+
- uses: actions/upload-artifact@v4
|
|
33
|
+
with:
|
|
34
|
+
name: pypi-files-linux
|
|
35
|
+
path: dist
|
|
36
|
+
|
|
37
|
+
publish:
|
|
38
|
+
needs: [build-sdist, build-linux]
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
environment: pypi
|
|
41
|
+
permissions:
|
|
42
|
+
id-token: write
|
|
43
|
+
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/download-artifact@v5
|
|
46
|
+
with:
|
|
47
|
+
pattern: pypi-files-*
|
|
48
|
+
path: dist
|
|
49
|
+
merge-multiple: true
|
|
50
|
+
- name: Debug information
|
|
51
|
+
run: ls -lah dist/
|
|
52
|
+
- name: Publish package
|
|
53
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -23,7 +23,7 @@ name = "sampleproject-rs" # REQUIRED, is the only field that cannot be marked as
|
|
|
23
23
|
#
|
|
24
24
|
# For a discussion on single-sourcing the version, see
|
|
25
25
|
# https://packaging.python.org/guides/single-sourcing-package-version/
|
|
26
|
-
version = "0.0.
|
|
26
|
+
version = "0.0.4" # REQUIRED, although can be dynamic
|
|
27
27
|
|
|
28
28
|
# This is a one-line description or tagline of what your project does. This
|
|
29
29
|
# corresponds to the "Summary" metadata field:
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: Publish Python Package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types:
|
|
6
|
-
- published
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: read
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
publish:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
environment: pypi
|
|
15
|
-
permissions:
|
|
16
|
-
id-token: write
|
|
17
|
-
|
|
18
|
-
steps:
|
|
19
|
-
- uses: actions/checkout@v5
|
|
20
|
-
- name: Build package
|
|
21
|
-
run: |
|
|
22
|
-
pipx run maturin build --release --out dist --sdist
|
|
23
|
-
pipx run twine check dist/*
|
|
24
|
-
- name: Publish package
|
|
25
|
-
uses: pypa/gh-action-pypi-publish@release/v1
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|