Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Willayd release try #11

Merged
merged 2 commits into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# TO EDIT
TAG ?= v0.25.0rc0
GH_USERNAME ?= TomAugspurger

PANDAS_VERSION=$(TAG:v%=%) # like 0.24.2
PANDAS_BASE_VERSION=$(shell echo $(PANDAS_VERSION) | awk -F '.' '{OFS="."} { print $$1, $$2}') # like 0.24
TAG ?= v0.25.0
GH_USERNAME ?= WillAyd
PANDAS_VERSION=$(TAG:v%=%)
PANDAS_BASE_VERSION=$(shell echo $(PANDAS_VERSION) | awk -F '.' '{OFS="."} { print $$1, $$2}')
TARGZ=pandas-$(PANDAS_VERSION).tar.gz

# to ensure pushd and popd works
Expand Down Expand Up @@ -107,7 +106,6 @@ doc:
upload-doc:
rsync -rv -e ssh pandas/doc/build/html/ pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/version/$(PANDAS_VERSION)/
rsync -rv -e ssh pandas/doc/build/latex/pandas.pdf pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/version/$(PANDAS_VERSION)/pandas.pdf
sudo chgrp -R docs /usr/share/nginx/pandas/pandas-docs

link-stable:
ssh pandas.pydata.org "cd /usr/share/nginx/pandas/pandas-docs && ln -sfn version/$(PANDAS_VERSION) stable"
Expand Down
55 changes: 48 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ Release automation for pandas.
## Steps to a release

- [ ] Manually update
- [ ] `PANDAS_VERSION` in `Makefile`
- [ ] `TAG` in `Makefile`
- [ ] `GH_USERNAME` in `Makefile`
- [ ] `version` in `recipe/meta.yaml`

If running for the first time be sure to initialize repos

```sh
make init-repos
```

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

```
# Update repos
Expand All @@ -22,6 +28,7 @@ make docker-image docker-doc
make pandas/dist/<>.sdist

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

Expand All @@ -34,7 +41,18 @@ 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.

Start the binary builds
On pandas you should also now create and tag a new branch, so

```sh
git checkout -b <TAG>.x
git push upstream <TAG>.x
git checkout master
git commit --allow-empty -m "Start <NEXT_TAG>"
git tag -a v<NEXT_TAG>.dev0 -m 'DEV: Start <NEXT_TAG> 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
Expand All @@ -44,14 +62,17 @@ 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.

```
make doc
```

Once the binaries finish, you'll need to manually upload the
wheels to PyPI
wheels to PyPI. Assuming the job which `make wheels` triggered on MacPython completed successfully (you may want to double check this)
you can download a copy of the wheels for Mac / Linux locally.


```
Expand All @@ -71,12 +92,32 @@ Finalize the docs
```
make upload-doc
make website
make push-website
```

The website script is currenlty broken. You may need to manually
add the next (dev) release, and remove any pre-releases.
You also need to make edits to the pandas-website to appropriately display items.
Ideally this could be done via `make push-website` as the rule exists but the
intermediary steps aren't fully automated yet.

```sh
pushd pandas-website
mv latest.rst previous.rst
# Recreate latest.rst to match release notes from GH in earlier steps
# Update pre_release.json and releases.json
git commit -am "Your updates"
git push
make html
make upload
```

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

```sh
popd # should bring us back to root from pandas-website
make link-stable
make link-version
```

Now check pandas.pydata.org and ensure the sidebar and links are correct!

goto announce.

Expand Down
2 changes: 1 addition & 1 deletion docker-files/conda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM condaforge/linux-anvil2:latest
RUN conda install -y conda-verify && conda clean -tipsy
WORKDIR /pandas

RUN conda build conda.recipe --numpy=1.11 --python=3.6
RUN conda build conda.recipe --numpy=1.13.3 --python=3.6
1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ extra:
- msarahan
- ocefpaf
- TomAugspurger
- WillAyd