Repository navigation
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR description
Summary
This PR updates CodeEnigma's package metadata and CI to officially support Python 3.14 and 3.15.
The runtime, obfuscation pipeline, and direct dependencies already work on both versions. The only thing preventing installation was the declared Python range (
>=3.10,<3.14), which is also propagated to the generatedcodeenigma_runtimepackage.Changes
>=3.10,<3.16.>=3.3.0, the tested release that compiles the runtime on Python 3.15.codeenigma_runtimeand the test fixture.poetry.lock(package versions unchanged; only markers/content-hash updated).Why the test change is included
test_obfuscate_with_expirationused a 5-second expiry while the Cython/wheel build can take longer than that on CI. The code could expire before the first execution, producing a flaky failure unrelated to Python compatibility. The positive path now uses a 1-day expiry, and the expired path is verified directly againstExpiryExtension.Validation
Tested with fresh virtual environments and the regenerated lock file:
pytest tests/ -qcpython-314)cpython-315)ruff check .ruff format --check .poetry install --all-extraspoetry check --lockDependencies verified on both versions:
Notes
<3.16, so Python 3.16 stays explicitly opt-in until it is tested.mainatc1d95f2.Checklist
poetry check --lock)Opening this PR because the published package currently declares
Requires-Python: >=3.10,<3.14, which blocks installation on Python 3.14 and 3.15. I verified the runtime and all direct dependencies on Python 3.14.10 and 3.15.2: the full test suite, Cython runtime compilation (cpython-314andcpython-315), end-to-end obfuscation, expiration handling, lock-basedpoetry install, and lint/format checks all pass. The changes are limited to the Python constraints, Cython minimum, lock file, CI matrix, and a deterministic fix for the existing timing-sensitive expiration test. Happy to adjust the version bounds or CI policy if you prefer.