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

Commit e59768e

Browse files
committed
fixups
1 parent 49e3cf8 commit e59768e

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

Makefile

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,17 @@ pip-test: pandas/dist/$(TARGZ)
8484
# Docs
8585
# -----------------------------------------------------------------------------
8686

87+
# this had a non-zero exit, but seemed to succeed
88+
# Output written on pandas.pdf (2817 pages, 10099368 bytes).
89+
# Transcript written on pandas.log.
90+
# Traceback (most recent call last):
91+
# File "./make.py", line 372, in <module>
92+
# sys.exit(main())
93+
# ...
94+
# File "/opt/conda/envs/pandas/lib/python3.7/subprocess.py", line 347, in check_call
95+
# raise CalledProcessError(retcode, cmd)
96+
# subprocess.CalledProcessError: Command '('pdflatex', '-interaction=nonstopmode', 'pandas.tex')' returned non-zero exit status 1.
97+
8798
doc:
8899
docker run -it --rm \
89100
--name=pandas-docs \
@@ -96,10 +107,18 @@ doc:
96107
upload-doc:
97108
rsync -rv -e ssh pandas/doc/build/html/ pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/version/$(PANDAS_VERSION)/
98109
rsync -rv -e ssh pandas/doc/build/latex/pandas.pdf pandas.pydata.org:/usr/share/nginx/pandas/pandas-docs/version/$(PANDAS_VERSION)/pandas.pdf
99-
ssh pandas.pydata.org "cd /usr/share/nginx/pandas/pandas-docs && ln -sfn version/$(PANDAS_VERSION) stable && cd version && ln -sfn $(PANDAS_VERSION) $(PANDAS_BASE_VERSION)"
110+
sudo chgrp -R docs /usr/share/nginx/pandas/pandas-docs
111+
112+
link-stable:
113+
ssh pandas.pydata.org "cd /usr/share/nginx/pandas/pandas-docs && ln -sfn version/$(PANDAS_VERSION) stable"
114+
115+
link-version:
116+
ssh pandas.pydata.org "cd /usr/share/nginx/pandas/pandas-docs/version && ln -sfn $(PANDAS_VERSION) $(PANDAS_BASE_VERSION)"
100117

118+
push-doc: | upload-doc link-stable link-version
101119

102120
website:
121+
# TODO: handle previous.rst, latest.rst
103122
pushd pandas-website && \
104123
../scripts/update-website.py $(TAG) && \
105124
git add . && \

scripts/build-docs.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ conda uninstall -y --force pandas ||:
1111
# python3 -m pip install --no-deps --no-index --find-links=/pandas/dist --only-binary=pandas pandas
1212
apt-get update && apt-get install -y build-essential
1313
cd /pandas
14+
python setup.py build_ext -i -j 4
1415

1516
cd /pandas/doc
1617

scripts/conda-forge.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ then
99
exit 1
1010
fi
1111

12-
conda update -y conda-build
13-
conda update -y -c conda-forge conda-smithy conda-forge-pinning
12+
conda install -y conda-build
13+
conda install -y -c conda-forge conda-smithy conda-forge-pinning
1414

1515
PANDAS_VERSION="${1:1}"
1616
PANDAS_SHA=$(openssl dgst -sha256 pandas/dist/pandas-${PANDAS_VERSION}.tar.gz | cut -d ' ' -f 2)
@@ -20,7 +20,11 @@ pushd pandas-feedstock
2020
git remote set-url upstream https://github.com/conda-forge/pandas-feedstock
2121
git remote set-url origin https://github.com/${GH_USERNAME}/pandas-feedstock
2222

23-
git checkout master
23+
if [[ ${PANDAS_VERSION} == *"rc"* ]]; then
24+
git checkout dev
25+
else
26+
git checkout master
27+
fi
2428
git pull upstream
2529

2630
echo `git status`

scripts/update-website.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def update_releases(tag):
2626

2727
if 'rc' in tag:
2828
data = {
29-
'version': tag[1:],
29+
'version': tag[1:].split("rc")[0],
3030
'date': date
3131
}
3232
with open("pre_release.json", "w") as f:

0 commit comments

Comments
 (0)