question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

For 0.21.0, October 2017

Pre-Release

  • Open a pre-release issue and mention related parties. (A few weeks before release) with this template.
  • Clear the bug queue
  • Run an ASV: `cd asv_bench; asv continuous -f 1.1 $(git describe --abbrev=0)…HEAD``
  • Review deprecations from previous releases here
  • Review experimental features from previous releases here
  • Clean up release.rst (contributors and stats will be done later)
  • Clean up whatsnew.rst
  • Run a full doc build and make sure everything is clean
    ./make.py clean; ./make.py; ./make.py zip_html;  ./make.py latex_forced
    
    • Check the output, check whatsnew and release.rst for formatting errors.
  • run build_dist.sh, uninstall cython and make a test install of the tarball to ensure cython is not required for installation from tarball/pypi (now also part of travis scripts, but check).
  • Ensure you have SSH access to pandas.pydata.org (@TomAugspurger or Andy Terrel should be able to get you an account).
  • Ensure you have upload rights to PyPI (Wes or Jeff)
  • Ensure you have commit rights on github.com/macPython/pandas-wheels/ and github.com/conda-forge/pandas-feedstock

Release Candidate

These are items that must be done for an RC. See the respective sections for details.

The Release

Final Pre-Release

To be done just before tagging the commit. This is optional for release-candidates.

  • Call a hold on master in the pre-release issue before you start.
  • Finalize the documentation by running the
    • Run scripts/announce.py and add to release.rst
    • Update the release date in release.rst and whatsnew/<version>.rst
  • Commit the doc changes

Tag the Release

  • Create an empty commit: git commit --allow-empty -m 'RLS: v0.21.0'
    • For Release-Candidates, it’s -m 'RLS: v0.21.0.rc1'
  • Create the tag: git tag -a v0.21.0 -m “Version 0.21.0”

Test the Release

Some local sanity tests before pushing, making the release official

  • Build the release
    • Conda:
# build a conda package
conda build ./conda.recipe --numpy 1.11 --python 2.7 -q --output

# fresh conda env
conda create -n pandas_0.18.2_test python=2.7 pandas nose

# build and install into that env
conda install -n pandas_0.18.2_test pandas --use-local

# switch to that env & test
source activate pandas_0.18.2_test
import pandas as pd
pd.test()
  • Pip
# build the wheel
python setup.py bdist wheel

# activate another environment
workon pandas-test
pip uninstall -y pandas
pip install <path/to/wheel>
python -c "import pandas; pandas.test()"
  • Build the docs. Check the version number and release notes

Push the Release

This is where things become final. No going back once the tagged commit is pushed

  • Push the release
    • Major release: git push upstream master --follow-tags
    • Maintenance: git push upstream 0.20.x --follow-tags

Build Source Distribution

  • python setup.py sdist --formats=gztar (TODO: update build_dist.sh to handle maintenance branches)

Release on Github

  • Draft a new release here
  • If this is an RC, check the box saying it’s a pre-release
  • Upload the pandas-<version>.tar.gz from the previous step as a “binary”
  • Generate the SHA256 for the release with openssl dgst -sha256 dist/pandas-<version>.tar.gz We use the SHA from our .tar.gz since the one auto-generated by Github isn’t stable if the release page is later modified.

Build Binary Distributions

Windows wheels are built automatically by Christoph Gohlke.

  • Open a PR for Mac and Linux wheels to update the BUILD_COMMIT here
  • Final Release Only Open a PR for the pandas-feedstock
    • Update the version
    • Update the SHA256
    • Set the build number 5to 0

Download Binary Distributions

Conda-Forge is handled automatically. We handle wheels.

  • Windows wheels from here
  • Mac / Linux wheels with python scripts/fetch_wheels.py, from here

Upload to PyPI

Upload the source and wheels simultaneously. Uploading just the source may break some users’ workflows, if they trigger an update but don’t have a C-complier

  • Assuming you’ve downloaded everything to dist: twine upload dist/*
  • You may want to hide the release until the docs are up and announcement is sent out

Build and Upload the Docs

  • Build and upload
cd docs;
./make.py clean; ./make.py; ./make.py zip_html;  ./make.py latex_forced
python make.py upload 0.20.2

Update the Website

  • clone the repo: https://github.com/pandas-dev/pandas-website.git
  • Update index.rst to have the most recent release, and the prior major release.
  • Update _tehems/pydata/layout.html to have the most recent minor release of each major version
  • commit and push
  • build: python make.py html
  • upload: python upload.py # TODO: verify this works
  • Verify it updated (maybe in an incognito browser to avoid caching)

Announce

  • Make sure everything is in place
    • pypi binaries for windows, mac wheels, source
    • docs built and published
    • website updated
  • Send an ANN to the mailing list. include links to both release notes and whatsnew.
  • send announcements to pydata@googlegroups.com, numpy-discussion@scipy.org, python-announce-list@python.org, scipy-user@scipy.org, pandas-dev@python.org

** Final Version**

** Release Candidates **

Start the next release cycle

Only after a major release

When finishing a major release we have a few extra steps to ensure that the development version is always ahead of the backports version.

  • Create a backports branch off the release commmit, e.g. git checkout -b 0.22.x master
  • Push that to upstream: git push -u upstream 0.22.x
  • Switch back to master and make a new commit to start the next cycle
    • git checkout master
    • git commit --allow-empty -m 'DEV: Start 0.22 cycle'
    • git tag -a v0.22.0.dev0 -m 'Version 0.22.0 start'
    • git push upstream master --follow-tags
  • Ensure that a whatsnew file is available for the next major and minor releases

Finish

  • Close the Milestone on github
  • Close the RLS issue

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:37 (37 by maintainers)

github_iconTop GitHub Comments

1reaction
TomAugspurgercommented, Oct 28, 2017

Conda forge finished, so those will be trickling in over the next day or so.

Pushed to PyPi and updated the website.

Thanks everyone!

1reaction
gfyoungcommented, Oct 10, 2017

@jorisvandenbossche : I think we should also try to adjust the read_csv deprecations if we can before the release as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ddlx 0.21.0: DDL eXtractor Functions / PostgreSQL Extension ...
This is an SQL-only extension for PostgreSQL that provides uniform functions for generating SQL Data Definition Language (DDL) scripts for objects created in...
Read more >
Restless Leg Syndrome: Overview and Facts – Sleep Disorder
Restless legs syndrome or RLS usually affects adults. An increasing number of men than women find themselves awake in the middle of the ......
Read more >
Learn which R packages are supported - Power BI
Package Version Link base 3.4.4 NA compiler 3.4.4 NA datasets 3.4.4 NA
Read more >
rust-bat package : Ubuntu - Bugs
Lunar-proposed (0.22.1-1): universe/misc. Lunar (0.21.0-2): universe/misc. Jammy-updates (0.19.0-1ubuntu0.1): universe/misc
Read more >
rls-x-tracking Bug Tasks - Testing tracker | Ubuntu QA
Bug Summary Package Import... 1864707 arbitrary command execution vulnerability opensmtpd Critical 1509782 Does not save drafts geary Critical 1588192 GL interfaces seem wedged for Krita on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found