From d308ba47aa21f0bd6c628406995857f24ada8512 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 18 Oct 2023 14:36:28 +0100 Subject: [PATCH 1/4] enable filterwarnings --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index 2e10349..72c4b4e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,7 @@ versionfile_source = partd/_version.py versionfile_build = partd/_version.py tag_prefix = parentdir_prefix = partd- + +[tool:pytest] +addopts = --strict-markers --strict-config +filterwarnings = error From 04f0ea07ea34d5fae5a9085c9c8ff3993086efd8 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 18 Oct 2023 14:46:59 +0100 Subject: [PATCH 2/4] add warnings filters for pandas nightly --- setup.cfg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 72c4b4e..cfbea91 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,4 +8,9 @@ parentdir_prefix = partd- [tool:pytest] addopts = --strict-markers --strict-config -filterwarnings = error +filterwarnings = + error + ignore:numpy\.core.* is deprecated and has been renamed to numpy\._core\.*:DeprecationWarning:pandas + ignore:numpy\.core.* is deprecated and has been renamed to numpy\._core\.*:DeprecationWarning:pyarrow + ignore:create_block_manager_from_blocks is deprecated and will be removed in a future version. Use public APIs instead.:DeprecationWarning + ignore:Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.:DeprecationWarning From 5de1d012c7846d38e1c3c3c03f07eb4848a778b4 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 18 Oct 2023 14:50:53 +0100 Subject: [PATCH 3/4] add upstream build --- .github/workflows/upstream.yml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/upstream.yml diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml new file mode 100644 index 0000000..d61d6b9 --- /dev/null +++ b/.github/workflows/upstream.yml @@ -0,0 +1,40 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + name: Upstream + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - name: Checkout source + uses: actions/checkout@v2 + + - name: Setup Conda Environment + uses: conda-incubator/setup-miniconda@v2.2.0 + with: + miniforge-variant: Mambaforge + miniforge-version: latest + use-mamba: true + channel-priority: strict + python-version: "3.11" + auto-activate-base: false + + - name: Install dependencies + shell: bash -l {0} + run: mamba install pytest locket numpy toolz pandas blosc pyzmq pyarrow -c conda-forge + + - name: Install nightly deps + shell: bash -l {0} + run: pip install --pre -U --no-deps --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas + + - name: Install + shell: bash -l {0} + run: python setup.py install + + - name: Run Tests + shell: bash -l {0} + run: pytest partd --verbose From 6c9b96102e2a2f64481753578d46e3525c219b2c Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 18 Oct 2023 14:54:28 +0100 Subject: [PATCH 4/4] install nightly pyarrow --- .github/workflows/upstream.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index d61d6b9..becb651 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -29,7 +29,9 @@ jobs: - name: Install nightly deps shell: bash -l {0} - run: pip install --pre -U --no-deps --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas + run: | + pip install --pre -U --no-deps --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy pandas + pip install --pre -U --no-deps --index-url https://pypi.fury.io/arrow-nightlies/ pyarrow - name: Install shell: bash -l {0}