Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.13 tests #190

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Python 3.13 tests #190

merged 5 commits into from
Oct 22, 2024

Conversation

prabhu
Copy link
Contributor

@prabhu prabhu commented Oct 8, 2024

Related issue:

ijl/orjson#520

@prabhu prabhu requested a review from cerrussell October 8, 2024 17:51
@prabhu prabhu marked this pull request as draft October 8, 2024 17:53
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu
Copy link
Contributor Author

prabhu commented Oct 21, 2024

PyO3/pyo3#4265

Created wheel for appthreat-vulnerability-db: filename=appthreat_vulnerability_db-6.1.1-py3-none-any.whl size=84098 sha256=862c569178a965f50a119665d08db94622d53342acae0d38e46dd014e0b360f8
  Stored in directory: /home/runner/.cache/pip/wheels/66/ae/4c/e67b1f69b85103eda57c4858d3a2982f8bbd9eae873377223a
  Building wheel for apsw (pyproject.toml): started
  Building wheel for apsw (pyproject.toml): still running...
  Building wheel for apsw (pyproject.toml): finished with status 'done'
  Created wheel for apsw: filename=apsw-3.46.1.0-cp313-cp313t-linux_x86_64.whl size=4416897 sha256=4b398a9f9eb1ea640561c337b4e861e739610f61fdd51c054a3ace8fa929e840
  Stored in directory: /home/runner/.cache/pip/wheels/81/4f/57/bf520ce5438755b09c8b58a3244118d938ba148d09b8c226fb
  Building wheel for orjson (pyproject.toml): started
  Building wheel for orjson (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error
  
  × Building wheel for orjson (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [67 lines of output]
      Running `maturin pep517 build-wheel -i /home/runner/venv-3.13/bin/python3.13-nogil --compatibility off`
      📦 Including license file "/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/LICENSE-APACHE"
      📦 Including license file "/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/LICENSE-MIT"
      🍹 Building a mixed python/rust project
      🔗 Found pyo3-ffi bindings
      🐍 Found CPython 3.13t at /home/runner/venv-3.13/bin/python3.13-nogil
         Compiling target-lexicon v0.12.16
         Compiling proc-macro2 v1.0.88
         Compiling unicode-ident v1.0.13
         Compiling once_cell v1.20.2
         Compiling serde v1.0.[210](https://github.com/AppThreat/vulnerability-db/actions/runs/11447872943/job/31850170810?pr=190#step:7:211)
         Compiling rustversion v1.0.18
         Compiling libc v0.2.161
         Compiling cfg-if v1.0.0
         Compiling shlex v1.3.0
         Compiling cc v1.1.31
         Compiling pyo3-build-config v0.23.0-dev (/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/include/pyo3/pyo3-build-config)
         Compiling quote v1.0.37
         Compiling syn v2.0.79
         Compiling version_check v0.9.5
         Compiling itoa v1.0.11
         Compiling ryu v1.0.18
         Compiling serde_json v1.0.131
         Compiling castaway v0.2.3
         Compiling static_assertions v1.1.0
         Compiling memchr v2.7.4
         Compiling pyo3-ffi v0.23.0-dev (/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/include/pyo3/pyo3-ffi)
         Compiling orjson v3.10.9 (/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637)
      error: failed to run custom build command for `pyo3-ffi v0.23.0-dev (/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/include/pyo3/pyo3-ffi)`
      
      Caused by:
        process didn't exit successfully: `/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/target/release/build/pyo3-ffi-a3236a88bf93[235](https://github.com/AppThreat/vulnerability-db/actions/runs/11447872943/job/31850170810?pr=190#step:7:236)1/build-script-build` (exit status: 1)
        --- stdout
        cargo:rustc-check-cfg=cfg(Py_LIMITED_API)
        cargo:rustc-check-cfg=cfg(Py_GIL_DISABLED)
        cargo:rustc-check-cfg=cfg(PyPy)
        cargo:rustc-check-cfg=cfg(GraalPy)
        cargo:rustc-check-cfg=cfg(py_sys_config, values("Py_DEBUG", "Py_REF_DEBUG", "Py_TRACE_REFS", "COUNT_ALLOCS"))
        cargo:rustc-check-cfg=cfg(invalid_from_utf8_lint)
        cargo:rustc-check-cfg=cfg(pyo3_disable_reference_pool)
        cargo:rustc-check-cfg=cfg(pyo3_leak_on_drop_without_reference_pool)
        cargo:rustc-check-cfg=cfg(diagnostic_namespace)
        cargo:rustc-check-cfg=cfg(c_str_lit)
        cargo:rustc-check-cfg=cfg(Py_3_7)
        cargo:rustc-check-cfg=cfg(Py_3_8)
        cargo:rustc-check-cfg=cfg(Py_3_9)
        cargo:rustc-check-cfg=cfg(Py_3_10)
        cargo:rustc-check-cfg=cfg(Py_3_11)
        cargo:rustc-check-cfg=cfg(Py_3_12)
        cargo:rustc-check-cfg=cfg(Py_3_13)
        cargo::rustc-check-cfg=cfg(Py_3_14)
        cargo:rerun-if-env-changed=PYO3_CROSS
        cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
        cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
      
        --- stderr
        error: the Python interpreter was built with the GIL disabled, which is not yet supported by PyO3
        = help: see https://github.com/PyO3/pyo3/issues/4265 for more information
        = help: please check if an updated version of PyO3 is available. Current version: 0.23.0-dev
        = help: set UNSAFE_PYO3_BUILD_FREE_THREADED=1 to suppress this check and build anyway for free-threaded Python
      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="/home/runner/venv-3.13/bin/python3.13-nogil" PYTHON_SYS_EXECUTABLE="/home/runner/venv-3.13/bin/python3.13-nogil" "cargo" "rustc" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-2d0ubaab/orjson_cc7498b799c940ddbc1dc36e0b88d637/Cargo.toml" "--release" "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/home/runner/venv-3.13/bin/python3.13-nogil', '--compatibility', 'off'] returned non-zero exit status 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for orjson

Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu marked this pull request as ready for review October 21, 2024 20:26
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
@prabhu prabhu merged commit 6af3f56 into master Oct 22, 2024
16 checks passed
@prabhu prabhu deleted the feature/py313 branch October 22, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant