This repository was archived by the owner on Jun 12, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Update release process for Windows hosts #33
Draft
simonjayhawkins
wants to merge
34
commits into
pandas-dev:master
Choose a base branch
from
simonjayhawkins:release-1.1.1
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 7 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
5b5f63f
Update release process for Windows hosts
simonjayhawkins 68de0e7
wip - updates during 1.1.2 release
simonjayhawkins d5521ab
1.1.2 -> 1.1.3
simonjayhawkins 3cac915
Merge remote-tracking branch 'upstream/master' into release-1.1.1
simonjayhawkins ac09b98
updates to windows.md
simonjayhawkins ccede2b
wip - add WSL 2 instructions
simonjayhawkins dfab0cf
wip - add WSL 2 instructions
simonjayhawkins e3cc626
wip - add WSL 2 instructions
simonjayhawkins 6582d10
[wip] 1.1.5/1.2.0rc0 releases
simonjayhawkins 2486d19
[wip] prep 1.2.0rc0 release
simonjayhawkins 893dcd2
[wip] prep 1.2.0rc0 release
simonjayhawkins ab38edf
[wip] prep 1.2.0rc0 release
simonjayhawkins 33d26bd
remove windows host instructions (not WSL)
simonjayhawkins 8a8e5b1
[wip] prep 1.2.0 release
simonjayhawkins 851f300
changes for 1.2.0 release
simonjayhawkins 512ca6d
[wip] release 1.2.1
simonjayhawkins 5cbdd73
update for 1.2.2
simonjayhawkins 91a1926
update README.md
simonjayhawkins 8c21c1e
release 1.2.3
simonjayhawkins e9e5f21
update TAG to v1.2.4
simonjayhawkins c8b68de
update for v1.3.0rc1
simonjayhawkins 54d0118
updates for conda-forge PR
simonjayhawkins 83c86df
update for 1.3.1
simonjayhawkins 043d799
update for 1.3.3
simonjayhawkins 5e0b063
update for 1.3.4
simonjayhawkins 42f6d16
add conda package cache for doc container build
simonjayhawkins 14f386a
fix doc build deleting sdist
simonjayhawkins 8d3c6a2
v1.4.0rc0 prep
simonjayhawkins 477807d
1.4.0rc release
simonjayhawkins d28823e
v1.4.0 prep
simonjayhawkins d2e88cc
update Makefile
simonjayhawkins fe83a5d
1.4.1 release
simonjayhawkins 3c94d71
v1.4.2 release
simonjayhawkins 1ff3688
v1.4.3 release prep
simonjayhawkins File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# TO EDIT | ||
TAG ?= v1.1.0 | ||
TAG ?= v1.1.4 | ||
|
||
GH_USERNAME ?= TomAugspurger | ||
PANDAS_VERSION=$(TAG:v%=%) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM pandas-build:latest | ||
|
||
ARG TAG | ||
|
||
ENV TAG=$TAG | ||
|
||
WORKDIR /pandas-release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM continuumio/miniconda3:latest | ||
|
||
RUN apt-get update && apt-get install -y texlive-full xclip \ | ||
&& apt-get clean | ||
|
||
# TODO: don't need to clone complete repository, just need environment.yml | ||
RUN git clone https://github.com/pandas-dev/pandas.git | ||
|
||
# following maybe necessary to prevent segfaults | ||
RUN conda update -n base -c defaults conda | ||
|
||
# this is also done in scripts\build-docs.sh (should be done earlier but won't use cached build and texlive is big download) | ||
RUN apt-get update && apt-get install -y build-essential && apt-get clean | ||
|
||
# NOTE: This builds environment from master will update for correct branch in container | ||
RUN conda env create --file=/pandas/environment.yml --name=pandas | ||
|
||
RUN rm -r pandas | ||
|
||
RUN mkdir -p /pandas-release/pandas | ||
|
||
RUN ln -s /pandas-release/pandas /pandas | ||
|
||
WORKDIR /pandas-release |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# README for MS Windows Users using WSL 2. | ||
|
||
## Preparing for Your First Release. | ||
|
||
see https://docs.docker.com/docker-for-windows/wsl/#prerequisites for prerequisites | ||
|
||
Ensure the following repositories are forked to your GitHub account | ||
- https://github.com/pandas-dev/pandas-release | ||
- https://github.com/conda-forge/pandas-feedstock | ||
- https://github.com/MacPython/pandas-wheels | ||
- https://github.com/pandas-dev/pandas | ||
|
||
|
||
### Setting up WSL 2. | ||
|
||
Install Docker (This will activate WSL2) | ||
|
||
Install Ubuntu 20.04 LTS from the Windows Store | ||
|
||
Launch Ubuntu 20.04 LTS from the start menu to set-up for first use. | ||
|
||
Launch Docker desktop | ||
|
||
go to Settings > Resources > WSL Integration. | ||
|
||
You might see | ||
|
||
``` | ||
You don't have any WSL 2 distro. Please convert a WSL 1 distro to WSL 2, or install a new distro and it will appear here. | ||
|
||
More info | ||
``` | ||
|
||
click on More Info and follow steps. | ||
|
||
``` | ||
PS C:\Users\simon> wsl -l -v | ||
NAME STATE VERSION | ||
* docker-desktop Running 2 | ||
Ubuntu-20.04 Running 1 | ||
docker-desktop-data Running 2 | ||
PS C:\Users\simon> wsl --set-version Ubuntu-20.04 2 | ||
Conversion in progress, this may take a few minutes... | ||
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 | ||
Conversion complete. | ||
PS C:\Users\simon> wsl --set-default-version 2 | ||
For information on key differences with WSL 2 please visit https://aka.ms/wsl2 | ||
PS C:\Users\simon> wsl --set-default Ubuntu-20.04 | ||
PS C:\Users\simon> wsl -l -v | ||
NAME STATE VERSION | ||
* Ubuntu-20.04 Running 2 | ||
docker-desktop Running 2 | ||
docker-desktop-data Running 2 | ||
PS C:\Users\simon> | ||
``` | ||
|
||
### Preparing the release environment. | ||
|
||
Start Ubuntu 20.04 LTS | ||
|
||
configure git manually | ||
|
||
``` | ||
git config --global user.email "<your-email>" | ||
git config --global user.name "<your-name>" | ||
``` | ||
|
||
or copy the configuration from windows. | ||
``` | ||
cp /mnt/c/Users/<your-windows-username>/.gitconfig . | ||
``` | ||
|
||
also copy your ssh config from windows and set permissions | ||
``` | ||
cp -r /mnt/c/Users/<your-windows-username>/.ssh/ . | ||
chmod 400 .ssh/id_rsa | ||
``` | ||
|
||
clone your fork of the pandas-release repo and set upstream | ||
``` | ||
git clone git@github.com:<your-github-username>/pandas-release.git | ||
cd pandas-release | ||
git remote add upstream https://github.com/pandas-dev/pandas-release.git | ||
``` | ||
|
||
download conda from https://docs.conda.io/en/latest/miniconda.html#linux-installers and | ||
install. | ||
``` | ||
cd | ||
ln -s /mnt/c/Users/<your-windows-username>/Downloads/ ~/downloads | ||
sha256sum downloads/Miniconda3-latest-Linux-x86_64.sh | ||
bash downloads/Miniconda3-latest-Linux-x86_64.sh | ||
``` | ||
|
||
close terminal and reopen to activate conda and install pandas-release conda environment | ||
``` | ||
conda list | ||
conda update conda | ||
cd pandas-release | ||
conda env create -f environment.yml | ||
conda activate pandas-release | ||
``` | ||
|
||
The linux environment is now configured on WSL. Now follow the steps in [README.md](./README.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.