Skip to content

Commit

Permalink
BLD: use nonvendor versioneer (#49924)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fangchenli authored Nov 28, 2022
1 parent cd58f3b commit e2df998
Show file tree
Hide file tree
Showing 19 changed files with 263 additions and 2,017 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/32-bit-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
. ~/virtualenvs/pandas-dev/bin/activate && \
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
python -m pip install versioneer[toml] && \
python -m pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \
python setup.py build_ext -q -j1 && \
python -m pip install --no-build-isolation --no-use-pep517 -e . && \
python -m pip list && \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/package-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Install required dependencies
run: |
python -m pip install --upgrade pip setuptools wheel python-dateutil pytz numpy cython
python -m pip install versioneer[toml]
shell: bash -el {0}

- name: Pip install with extra
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
python -m pip install git+https://github.com/nedbat/coveragepy.git
python -m pip install versioneer[toml]
python -m pip install python-dateutil pytz cython hypothesis==6.52.1 pytest>=6.2.5 pytest-xdist pytest-cov pytest-asyncio>=0.17
python -m pip list
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install versioneer[toml]
# GH 39416
pip install numpy
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-310-numpydev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ channels:
dependencies:
- python=3.10

# tools
# build dependencies
- versioneer[toml]

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ channels:
dependencies:
- python=3.10

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-38-downstream_compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ channels:
dependencies:
- python=3.8

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-38-minimum_versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ channels:
dependencies:
- python=3.8.0

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ channels:
dependencies:
- python=3.8

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ channels:
dependencies:
- python=3.9

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/actions-pypy-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ dependencies:
# with base pandas has been dealt with
- python=3.8[build=*_pypy] # TODO: use this once pypy3.8 is available

# tools
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-asyncio
Expand Down
5 changes: 4 additions & 1 deletion ci/deps/circle-38-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ channels:
dependencies:
- python=3.8

# test dependencies
# build dependencies
- versioneer[toml]
- cython>=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
5 changes: 4 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ dependencies:
- python=3.8
- pip

# test dependencies
# build dependencies
- versioneer[toml]
- cython=0.29.32

# test dependencies
- pytest>=6.0
- pytest-cov
- pytest-xdist>=1.31
Expand Down
Loading

0 comments on commit e2df998

Please sign in to comment.