-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DECREFing PyObject*s from Python C API calls in v1. (#2311)
* fix: DECREFing PyObject*s from Python C API calls in v1. * Ignore the new flake8 warnings. * Different values in the last decimal place. * JAX tests were failing, but v1 JAX is not supported at all. * ak._v2.* preview of the Awkward-RDataFrame functions were failing. * Weaken the numerical test further; it failed in the wheel-building test. * Weaken the same test in v2. * Ignore this test; in principle, we could remove all of the v2 tests from the v1 legacy branch. * Use `reinterpret_steal` instead of explicit `Py_DECREF`. Co-authored-by: Angus Hollands <[email protected]> * Namespace for reinterpret_steal. * Satisfy flake8. * Use py::reinterpret_steal everywhere instead of explicit Py_DECREF. --------- Co-authored-by: Angus Hollands <[email protected]>
- Loading branch information
Showing
12 changed files
with
58 additions
and
161 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 |
---|---|---|
|
@@ -212,67 +212,3 @@ jobs: | |
- name: Codecov | ||
run: 'bash <(curl -s https://codecov.io/bash)' | ||
if: matrix.python-version == '3.9' | ||
|
||
Linux-ROOT: | ||
strategy: | ||
matrix: | ||
python-version: | ||
- '3.8' | ||
|
||
runs-on: ubuntu-20.04 | ||
|
||
env: | ||
PIP_ONLY_BINARY: cmake | ||
|
||
timeout-minutes: 30 | ||
|
||
# Required for miniconda to activate conda | ||
defaults: | ||
run: | ||
shell: "bash -l {0}" | ||
|
||
steps: | ||
- uses: "actions/checkout@v3" | ||
with: | ||
submodules: true | ||
|
||
- name: "Get conda" | ||
uses: "conda-incubator/setup-miniconda@v2" | ||
with: | ||
auto-update-conda: true | ||
python-version: "${{ matrix.python-version }}" | ||
miniforge-variant: Mambaforge | ||
use-mamba: true | ||
|
||
- name: "Install ROOT" | ||
run: | | ||
mamba env list | ||
mamba install root | ||
mamba list | ||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: >- | ||
${{ github.job}}-${{matrix.python-version}} | ||
- name: Use ccache | ||
run: | | ||
echo "/usr/lib/ccache" >> $GITHUB_PATH | ||
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH | ||
- name: Install NumPy | ||
run: | | ||
conda env list | ||
mamba install numpy | ||
conda list | ||
- name: Build | ||
run: 'python -m pip install -v .[test,dev]' | ||
|
||
- name: Print versions | ||
run: python -m pip list | ||
|
||
- name: Test | ||
run: >- | ||
python -m pytest -vv -rs tests |
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.10.2 | ||
1.10.3 |
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
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
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
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
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
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
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
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
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
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