GitHub - pandas-dev/pandas-release: Infrastructure for making a pandas release (original) (raw)

Release automation for pandas.

Windows users should follow the steps in windows.md

Steps to a release

If running for the first time be sure to initialize repos

The environment.yml contains the local dependencies. You'll also need docker.

And fork pandas-feedstock and pandas-wheels to your GitHub account.

# Update repos
make update-repos

# Tag the release
make tag

# Build the doc and test images
make docker-image docker-doc

# Build the sdist
make pandas/dist/<>.tar.gz

# Final Pip and Conda tests. Do these in parallel.
# You can optionally do make doc here as well
make pip-test
make conda-test

# Push the tag. No going back now.
make push-tag

Now manually create a release https://github.com/pandas-dev/pandas/releases

Make sure to upload the sdist that's in pandas/dist/ as the "binary". Conda-forge uses it.

On pandas you should also now create and tag a new branch, so

git checkout -b .x git push upstream .x git checkout master git commit --allow-empty -m "Start " git tag -a v.dev0 -m 'DEV: Start cycle' git push upstream master --follow-tags

Start the binary builds. For Mac users you may need to download the GNU version of sed before running this scripts via brew install gnu-sed

# Binaries
make conda-forge
make wheels

Open PRs for each of those.

Note that make wheels actually pushes a job to MacPython to produce wheels which we will download later.

Docs. You can cheat and re-tag / rebuild these if needed.

Once the binaries finish, you'll need to manually upload the wheels to PyPI.

Assuming the job which make wheels triggered on MacPython completed successfully (you may want to double check this https://anaconda.org/multibuild-wheels-staging/pandas/files) you can download a copy of the wheels locally.

Upload the wheels and sdist

Finalize the docs

To make sure /stable and the latest minor revision point to the new release run the following.

make link-stable
make link-version

goto announce.

Finalize


Initial Setup

# 1. Initialize Git Repositories
make init-repos


TODO: