Skip to content

Commit

Permalink
fix: remove incorrect python-source config from pyproject.toml
Browse files Browse the repository at this point in the history
Removed the python-source = "python" configuration from pyproject.toml
since Python bindings are implemented directly in src/python.rs rather
than in a separate Python source directory. This should resolve the
PyInit_self_encryption symbol warning during build.
  • Loading branch information
dirvine committed Nov 29, 2024
1 parent 0607801 commit de6100c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 643 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- 'v*'

env:
PYTHON_VERSION: "3.10"
PACKAGE_NAME: "self_encryption"

# Add top-level permissions block
permissions:
id-token: write
Expand Down Expand Up @@ -79,12 +83,11 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
architecture: x64
- name: Build wheels
uses: messense/maturin-action@v1
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist
maturin-version: "v0.13.0"
- name: Install built wheel
if: matrix.target == 'x86_64'
run: |
Expand Down
42 changes: 13 additions & 29 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,25 @@
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"

[tool.maturin]
features = ["python"]
module-name = "_self_encryption"
bindings = "pyo3"
develop = true
manifest-path = "Cargo.toml"
python-packages = ["self_encryption"]
compatibility = "manylinux2014"

[project]
name = "self_encryption"
version = "0.32.4"
description = "Self encrypting files (convergent encryption plus obfuscation)"
requires-python = ">=3.7"
license = {text = "GPL-3.0"}
authors = [{name = "MaidSafe Developers", email = "[email protected]"}]
dependencies = [
"click>=8.0.0",
"pip>=24.0",
authors = [
{name = "MaidSafe Developers", email = "[email protected]"}
]
requires-python = ">=3.8"
license = {text = "GPL-3.0"}
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Rust",
"Operating System :: OS Independent",
"Programming Language :: Python :: Implementation :: CPython",
"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",
]

[project.optional-dependencies]
test = [
"pip>=24.0",
"pytest>=7.4.4",
]

[project.scripts]
self-encryption = "self_encryption.cli:cli"

[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.maturin]
features = ["python"]
module-name = "self_encryption"
Loading

0 comments on commit de6100c

Please sign in to comment.