Skip to content

Commit e33ce2b

Browse files
prep for release
1 parent d23b439 commit e33ce2b

File tree

2 files changed

+108
-4
lines changed

2 files changed

+108
-4
lines changed

.github/workflows/ci-pandas-pre.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: CI-pandas-pre
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
python-version: ["3.10", "3.11", "3.12"]
10+
numpy: ["numpy>=1.20.3,<2.0.0", "numpy==2.0.0.rc2"]
11+
pandas: ["pandas==2.2.2"]
12+
pint: ["pint==0.24"]
13+
14+
runs-on: ubuntu-latest
15+
16+
env:
17+
TEST_OPTS: "-rfsxEX -s --cov=pint_pandas --cov-config=.coveragerc"
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 100
23+
24+
- name: Get tags
25+
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
26+
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
32+
- name: Get pip cache dir
33+
id: pip-cache
34+
run: echo "::set-output name=dir::$(pip cache dir)"
35+
36+
- name: Setup caching
37+
uses: actions/cache@v2
38+
with:
39+
path: ${{ steps.pip-cache.outputs.dir }}
40+
key: pip-${{ matrix.python-version }}
41+
restore-keys: |
42+
pip-${{ matrix.python-version }}
43+
44+
# - name: Install numpy
45+
# if: ${{ matrix.numpy != null }}
46+
# run: pip install "${{matrix.numpy}}"
47+
48+
- name: Install pint
49+
if: ${{ matrix.pint != null }}
50+
run: pip install "${{matrix.pint}}"
51+
52+
- name: Install dependencies
53+
run: |
54+
pip install .[test]
55+
56+
- name: Install pandas
57+
if: ${{ matrix.pandas != null }}
58+
run: pip install --pre --extra-index https://pypi.anaconda.org/scipy-wheels-nightly/simple pandas
59+
60+
- name: Run Tests
61+
run: |
62+
pytest $TEST_OPTS
63+
64+
- name: Coverage report
65+
run: coverage report -m
66+
67+
- name: Coveralls Parallel
68+
env:
69+
COVERALLS_FLAG_NAME: ${{ matrix.test-number }}
70+
COVERALLS_PARALLEL: true
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
COVERALLS_SERVICE_NAME: github
73+
run: |
74+
pip install coveralls
75+
coveralls
76+
77+
coveralls:
78+
needs: test
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/setup-python@v2
82+
with:
83+
python-version: 3.x
84+
- name: Coveralls Finished
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87+
COVERALLS_SERVICE_NAME: github
88+
run: |
89+
pip install coveralls
90+
coveralls --finish
91+
92+
# Dummy task to summarize all. See https://github.com/bors-ng/bors-ng/issues/1300
93+
ci-success:
94+
name: ci
95+
if: ${{ success() }}
96+
needs: test
97+
runs-on: ubuntu-latest
98+
steps:
99+
- name: CI succeeded
100+
run: exit 0

CHANGES

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
pint-pandas Changelog
22
=====================
33

4-
0.6 (unreleased)
4+
0.6 (2024-06-16)
55
----------------
66

77
- Fix dequantify duplicate column failure #202
88
- Fix astype issue #196
99
- Support for `__array_ufunc__` and unary ops. #160
10+
- Support for NumPy verson 2
11+
- Minimum Pint version is 0.24
12+
- Minimum Pandas version is 2.2
13+
1014

1115
0.5 (2023-09-07)
1216
----------------
@@ -17,10 +21,10 @@ pint-pandas Changelog
1721
- Support for <NA> values in columns with integer magnitudes
1822
- Support for magnitudes of any type, such as complex128 or tuples #146
1923
- Support for pandas 2.0, allowing `.cumsum, .cummax, .cummin` methods for `Series` and `DataFrame`. #186
20-
- Minimum Pint version is 0.21
21-
- Minimum Pandas vesrion is 2.0
2224
- Support for unit registries with `force_ndarray_like = True`. #165
2325
- A DataFrame/Series.pint.convert_object_dtype() function has been added to create PintArrays from Series of quantities.
26+
- Minimum Pint version is 0.21
27+
- Minimum Pandas version is 2.0
2428

2529
0.4 (2023-05-23)
2630
----------------
@@ -30,7 +34,7 @@ pint-pandas Changelog
3034
- Support for Pint 0.21 #168, #179
3135
- Cast to `numpy.ndarray` in `PintArray._reduce` if needed to use `nanops` functions
3236
- Minimum Pint version is 0.21
33-
- Minimum Pandas vesrion is 1.6
37+
- Minimum Pandas version is 1.6
3438

3539
0.3 (2022-11-14)
3640
----------------

0 commit comments

Comments
 (0)