Skip to content

Commit

Permalink
zzzz
Browse files Browse the repository at this point in the history
  • Loading branch information
dirvine committed Nov 30, 2024
1 parent f673d21 commit 8e864cd
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 5 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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: |
Expand Down
25 changes: 24 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[metadata]
metadata_version = 2.1

[bdist_wheel]
universal = 0

0 comments on commit 8e864cd

Please sign in to comment.