puantum 9.9.9__tar.gz → 10.0.0.0__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.
- puantum-10.0.0.0/.github/workflows/publish.yml +114 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/Makefile +13 -13
- {puantum-9.9.9 → puantum-10.0.0.0}/PKG-INFO +2 -3
- {puantum-9.9.9/puantum/quantum → puantum-10.0.0.0/puantum}/__init__.pyi +1 -1
- {puantum-9.9.9/puantum → puantum-10.0.0.0/puantum/classic}/__init__.pyi +1 -1
- {puantum-9.9.9/puantum/classic → puantum-10.0.0.0/puantum/quantum}/__init__.pyi +1 -1
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/dsa/__init__.pyi +5 -5
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/dsa/__internal__.pyi +388 -388
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/kem/__init__.pyi +5 -5
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/kem/__internal__.pyi +363 -363
- {puantum-9.9.9 → puantum-10.0.0.0}/pyproject.toml +2 -4
- puantum-9.9.9/.github/workflows/publish.yml +0 -40
- {puantum-9.9.9 → puantum-10.0.0.0}/.gitignore +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/Cargo.lock +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/Cargo.toml +0 -0
- /puantum-9.9.9/license.md → /puantum-10.0.0.0/LICENSE +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/README.md +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/__init__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/classic/__init__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/__init__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/dsa/__init__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/dsa/__internal__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/kem/__init__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/puantum/quantum/kem/__internal__.py +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/readme.md +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/rust/cryptography/classic/mod.rs +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/rust/cryptography/mod.rs +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/rust/cryptography/quantum/binding.rs +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/rust/cryptography/quantum/mod.rs +0 -0
- {puantum-9.9.9 → puantum-10.0.0.0}/rust/python.rs +0 -0
@@ -0,0 +1,114 @@
|
|
1
|
+
name: Build and Publish to PyPI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
build-sdist:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
steps:
|
12
|
+
- name: Checkout repository
|
13
|
+
uses: actions/checkout@v4
|
14
|
+
|
15
|
+
- name: Set up Python
|
16
|
+
uses: actions/setup-python@v5
|
17
|
+
with:
|
18
|
+
python-version: "3.13"
|
19
|
+
|
20
|
+
- name: Install Rust
|
21
|
+
uses: dtolnay/rust-toolchain@stable
|
22
|
+
|
23
|
+
- name: Install maturin
|
24
|
+
run: pip install maturin
|
25
|
+
|
26
|
+
- name: Build source distribution
|
27
|
+
run: maturin build --release --sdist
|
28
|
+
|
29
|
+
- name: Upload source distribution
|
30
|
+
uses: actions/upload-artifact@v4
|
31
|
+
with:
|
32
|
+
name: sdist
|
33
|
+
path: target/wheels/*.tar.gz
|
34
|
+
|
35
|
+
build-wheels:
|
36
|
+
needs: build-sdist
|
37
|
+
runs-on: ${{ matrix.os }}
|
38
|
+
strategy:
|
39
|
+
matrix:
|
40
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
41
|
+
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
42
|
+
|
43
|
+
steps:
|
44
|
+
- name: Checkout repository
|
45
|
+
uses: actions/checkout@v4
|
46
|
+
|
47
|
+
- name: Set up Python
|
48
|
+
uses: actions/setup-python@v5
|
49
|
+
with:
|
50
|
+
python-version: ${{ matrix.python-version }}
|
51
|
+
|
52
|
+
- name: Install Rust
|
53
|
+
uses: dtolnay/rust-toolchain@stable
|
54
|
+
|
55
|
+
- name: Install maturin
|
56
|
+
run: pip install maturin
|
57
|
+
|
58
|
+
- name: Build wheel
|
59
|
+
run: maturin build --release
|
60
|
+
|
61
|
+
- name: Upload wheel
|
62
|
+
uses: actions/upload-artifact@v4
|
63
|
+
with:
|
64
|
+
# Artifact name is now unique per OS and Python version
|
65
|
+
name: wheel-${{ matrix.os }}-py${{ matrix.python-version }}
|
66
|
+
path: target/wheels/*.whl
|
67
|
+
|
68
|
+
publish:
|
69
|
+
needs: [build-sdist, build-wheels]
|
70
|
+
runs-on: ubuntu-latest
|
71
|
+
environment:
|
72
|
+
name: pypi
|
73
|
+
|
74
|
+
steps:
|
75
|
+
- name: Download source distribution
|
76
|
+
uses: actions/download-artifact@v4
|
77
|
+
with:
|
78
|
+
name: sdist
|
79
|
+
path: dist/
|
80
|
+
|
81
|
+
- name: Download all wheels
|
82
|
+
uses: actions/download-artifact@v4
|
83
|
+
with:
|
84
|
+
path: dist/
|
85
|
+
|
86
|
+
- name: List dist contents
|
87
|
+
run: |
|
88
|
+
echo "Contents of dist folder:"
|
89
|
+
ls -R dist/
|
90
|
+
|
91
|
+
- name: Extract sdist for inspection
|
92
|
+
run: |
|
93
|
+
mkdir inspect
|
94
|
+
tar -xzf dist/*.tar.gz -C inspect --strip-components=1
|
95
|
+
echo "Extracted files:"
|
96
|
+
ls -R inspect/
|
97
|
+
|
98
|
+
- name: Show PKG-INFO
|
99
|
+
run: |
|
100
|
+
echo "PKG-INFO content:"
|
101
|
+
cat inspect/PKG-INFO || echo "PKG-INFO not found!"
|
102
|
+
|
103
|
+
- name: Show pyproject.toml
|
104
|
+
run: |
|
105
|
+
echo "pyproject.toml content:"
|
106
|
+
cat inspect/pyproject.toml || echo "pyproject.toml not found!"
|
107
|
+
|
108
|
+
- name: Publish to PyPI
|
109
|
+
env:
|
110
|
+
TWINE_USERNAME: __token__
|
111
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
112
|
+
run: |
|
113
|
+
pip install twine
|
114
|
+
twine upload --verbose dist/**/*.{whl,tar.gz}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
all: release
|
2
|
-
|
3
|
-
clean:
|
4
|
-
cargo clean
|
5
|
-
|
6
|
-
release: clean
|
7
|
-
cargo build --release
|
8
|
-
|
9
|
-
python: clean
|
10
|
-
maturin build --release
|
11
|
-
|
12
|
-
pypi: clean
|
13
|
-
maturin build --release --sdist
|
1
|
+
all: release
|
2
|
+
|
3
|
+
clean:
|
4
|
+
cargo clean
|
5
|
+
|
6
|
+
release: clean
|
7
|
+
cargo build --release
|
8
|
+
|
9
|
+
python: clean
|
10
|
+
maturin build --release
|
11
|
+
|
12
|
+
pypi: clean
|
13
|
+
maturin build --release --sdist
|
@@ -1,12 +1,11 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: puantum
|
3
|
-
Version:
|
3
|
+
Version: 10.0.0.0
|
4
4
|
Classifier: Programming Language :: Python :: 3
|
5
5
|
Classifier: Programming Language :: Rust
|
6
6
|
Classifier: Operating System :: OS Independent
|
7
|
-
Classifier: License :: Public Domain
|
8
7
|
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
|
9
|
-
License-File:
|
8
|
+
License-File: LICENSE
|
10
9
|
Summary: Python Cryptography
|
11
10
|
Keywords: python,cryptography,quantum,security
|
12
11
|
Author-email: Anonymous <217687495+1xfakebit@users.noreply.github.com>
|
@@ -1 +1 @@
|
|
1
|
-
# EMPTY
|
1
|
+
# EMPTY
|
@@ -1 +1 @@
|
|
1
|
-
# EMPTY
|
1
|
+
# EMPTY
|
@@ -1 +1 @@
|
|
1
|
-
# EMPTY
|
1
|
+
# EMPTY
|
@@ -1,5 +1,5 @@
|
|
1
|
-
# IMPORT
|
2
|
-
from puantum.quantum.dsa.__internal__ import Algorithm, KeyPair
|
3
|
-
|
4
|
-
# MAIN
|
5
|
-
__all__: list[str] = ["Algorithm", "KeyPair"]
|
1
|
+
# IMPORT
|
2
|
+
from puantum.quantum.dsa.__internal__ import Algorithm, KeyPair
|
3
|
+
|
4
|
+
# MAIN
|
5
|
+
__all__: list[str] = ["Algorithm", "KeyPair"]
|