-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,13 +36,17 @@ jobs: | |
echo "=== End of pyproject.toml ===" | ||
- name: Build wheels | ||
uses: PyO3/[email protected] | ||
env: | ||
CARGO_VERSION: ${{ github.ref_name }} | ||
with: | ||
target: ${{ matrix.target }} | ||
args: >- | ||
--release | ||
--out dist | ||
-i python${{ matrix.python-version }} | ||
--manifest-path Cargo.toml | ||
--compatibility manylinux2014 | ||
--version "${CARGO_VERSION#v}" | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -108,7 +112,7 @@ jobs: | |
- name: Build wheels | ||
uses: PyO3/[email protected] | ||
env: | ||
PYTHON_VERSION: ${{ matrix.python-version }} | ||
CARGO_VERSION: ${{ github.ref_name }} | ||
with: | ||
target: ${{ matrix.target }} | ||
manylinux: auto | ||
|
@@ -117,6 +121,8 @@ jobs: | |
--out dist | ||
-i python${{ matrix.python-version }} | ||
--manifest-path Cargo.toml | ||
--compatibility manylinux2014 | ||
--version "${CARGO_VERSION#v}" | ||
sccache: 'true' | ||
- name: Install built wheel | ||
if: matrix.target == 'x86_64' | ||
|
@@ -276,9 +282,14 @@ jobs: | |
echo "=== End of pyproject.toml ===" | ||
- name: Build sdist | ||
uses: PyO3/[email protected] | ||
env: | ||
CARGO_VERSION: ${{ github.ref_name }} | ||
with: | ||
command: sdist | ||
args: --out dist --manifest-path Cargo.toml | ||
args: >- | ||
--out dist | ||
--manifest-path Cargo.toml | ||
--version "${CARGO_VERSION#v}" | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
@@ -340,14 +351,18 @@ jobs: | |
ls -la /tmp/wheel-check/*/self_encryption*.dist-info/ | ||
echo "METADATA contents:" | ||
cat /tmp/wheel-check/*/self_encryption*.dist-info/METADATA | ||
echo "WHEEL contents:" | ||
cat /tmp/wheel-check/*/self_encryption*.dist-info/WHEEL | ||
echo "=== Full dist-info directory listing ===" | ||
find /tmp/wheel-check/*/self_encryption*.dist-info/ -type f -exec echo "=== {} ===" \; -exec cat {} \; | ||
rm -rf /tmp/wheel-check/* | ||
done | ||
echo "=== Checking wheels with twine ===" | ||
python -m twine check dist/* | ||
python -m twine check --verbose dist/* | ||
echo "=== Checking wheel contents ===" | ||
check-wheel-contents dist/*.whl | ||
check-wheel-contents --verbose dist/*.whl | ||
- name: Check if version exists | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,31 @@ authors = [{ name = "MaidSafe Developers", email = "[email protected]" }] | |
requires-python = ">=3.8" | ||
license = { text = "GPL-3.0" } | ||
readme = "README.md" | ||
keywords = ["encryption", "self-encryption", "security"] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Rust", | ||
"Topic :: Security :: Cryptography", | ||
] | ||
dependencies = [ | ||
"click>=8.0.0", | ||
"pip>=24.3.1", | ||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/maidsafe/self_encryption" | ||
Documentation = "https://github.com/maidsafe/self_encryption#readme" | ||
Repository = "https://github.com/maidsafe/self_encryption.git" | ||
Changelog = "https://github.com/maidsafe/self_encryption/blob/main/CHANGELOG.md" | ||
|
||
[project.scripts] | ||
self-encryption = "self_encryption.cli:cli" | ||
|
||
|
@@ -23,4 +43,7 @@ features = ["python"] | |
module-name = "self_encryption._self_encryption" | ||
bindings = "pyo3" | ||
python-source = "python" | ||
|
||
include = ["LICENSE", "README.md"] | ||
sdist-include = ["LICENSE", "README.md"] | ||
strip = true | ||
metadata-version = "2.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[metadata] | ||
metadata_version = 2.1 | ||
|
||
[bdist_wheel] | ||
universal = 0 |