Skip to content

Commit e2df998

Browse files
authored
BLD: use nonvendor versioneer (#49924)
* BLD: remove vendored versioneer * run vis * move config to pyproject.toml * add versioneer to deps * run pyupgrade * fix isort and pylint * fix ci * fix env
1 parent cd58f3b commit e2df998

19 files changed

+263
-2017
lines changed

.github/workflows/32-bit-linux.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ jobs:
3838
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
3939
. ~/virtualenvs/pandas-dev/bin/activate && \
4040
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \
41-
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
41+
python -m pip install versioneer[toml] && \
42+
python -m pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
4243
python setup.py build_ext -q -j1 && \
4344
python -m pip install --no-build-isolation --no-use-pep517 -e . && \
4445
python -m pip list && \

.github/workflows/package-checks.yml

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
- name: Install required dependencies
4444
run: |
4545
python -m pip install --upgrade pip setuptools wheel python-dateutil pytz numpy cython
46+
python -m pip install versioneer[toml]
4647
shell: bash -el {0}
4748

4849
- name: Pip install with extra

.github/workflows/python-dev.yml

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ jobs:
7575
python -m pip install --upgrade pip setuptools wheel
7676
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
7777
python -m pip install git+https://github.com/nedbat/coveragepy.git
78+
python -m pip install versioneer[toml]
7879
python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 pytest-xdist pytest-cov pytest-asyncio>=0.17
7980
python -m pip list
8081

.github/workflows/sdist.yml

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip setuptools wheel
50+
python -m pip install versioneer[toml]
5051
5152
# GH 39416
5253
pip install numpy

ci/deps/actions-310-numpydev.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ channels:
44
dependencies:
55
- python=3.10
66

7-
# tools
7+
# build dependencies
8+
- versioneer[toml]
9+
10+
# test dependencies
811
- pytest>=6.0
912
- pytest-cov
1013
- pytest-xdist>=1.31

ci/deps/actions-310.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ channels:
44
dependencies:
55
- python=3.10
66

7-
# test dependencies
7+
# build dependencies
8+
- versioneer[toml]
89
- cython>=0.29.32
10+
11+
# test dependencies
912
- pytest>=6.0
1013
- pytest-cov
1114
- pytest-xdist>=1.31

ci/deps/actions-38-downstream_compat.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ channels:
55
dependencies:
66
- python=3.8
77

8-
# test dependencies
8+
# build dependencies
9+
- versioneer[toml]
910
- cython>=0.29.32
11+
12+
# test dependencies
1013
- pytest>=6.0
1114
- pytest-cov
1215
- pytest-xdist>=1.31

ci/deps/actions-38-minimum_versions.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ channels:
66
dependencies:
77
- python=3.8.0
88

9-
# test dependencies
9+
# build dependencies
10+
- versioneer[toml]
1011
- cython>=0.29.32
12+
13+
# test dependencies
1114
- pytest>=6.0
1215
- pytest-cov
1316
- pytest-xdist>=1.31

ci/deps/actions-38.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ channels:
44
dependencies:
55
- python=3.8
66

7-
# test dependencies
7+
# build dependencies
8+
- versioneer[toml]
89
- cython>=0.29.32
10+
11+
# test dependencies
912
- pytest>=6.0
1013
- pytest-cov
1114
- pytest-xdist>=1.31

ci/deps/actions-39.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ channels:
44
dependencies:
55
- python=3.9
66

7-
# test dependencies
7+
# build dependencies
8+
- versioneer[toml]
89
- cython>=0.29.32
10+
11+
# test dependencies
912
- pytest>=6.0
1013
- pytest-cov
1114
- pytest-xdist>=1.31

ci/deps/actions-pypy-38.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ dependencies:
77
# with base pandas has been dealt with
88
- python=3.8[build=*_pypy] # TODO: use this once pypy3.8 is available
99

10-
# tools
10+
# build dependencies
11+
- versioneer[toml]
1112
- cython>=0.29.32
13+
14+
# test dependencies
1215
- pytest>=6.0
1316
- pytest-cov
1417
- pytest-asyncio

ci/deps/circle-38-arm64.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ channels:
44
dependencies:
55
- python=3.8
66

7-
# test dependencies
7+
# build dependencies
8+
- versioneer[toml]
89
- cython>=0.29.32
10+
11+
# test dependencies
912
- pytest>=6.0
1013
- pytest-cov
1114
- pytest-xdist>=1.31

environment.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ dependencies:
66
- python=3.8
77
- pip
88

9-
# test dependencies
9+
# build dependencies
10+
- versioneer[toml]
1011
- cython=0.29.32
12+
13+
# test dependencies
1114
- pytest>=6.0
1215
- pytest-cov
1316
- pytest-xdist>=1.31

0 commit comments

Comments
 (0)