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

Commit d4c66cc

Browse files
committed
Update tagging
1 parent 4f07ede commit d4c66cc

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ GH_USERNAME ?= TomAugspurger
44

55

66
update-repos:
7-
pushd pandas && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas && git remote update && popd && \
8-
pushd pandas-website && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-website && git remote update && popd && \
9-
pushd pandas-website && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-website && git remote update && popd && \
10-
pushd pandas-wheels && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-wheels && git remote update && popd && \
11-
pushd pandas-feedstock && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-feedstock && git remote update && popd
7+
pushd pandas && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas && git remote update && git checkout master && git reset --hard upstream/master && popd && \
8+
pushd pandas-website && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-website && git remote update && git checkout master && git reset --hard upstream/master && popd && \
9+
pushd pandas-wheels && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-wheels && git remote update && git checkout master && git reset --hard upstream/master && popd && \
10+
pushd pandas-feedstock && git remote set-url origin https://github.com/$(GH_USERNAME)/pandas-feedstock && git remote update && git checkout master && git reset --hard upstream/master && popd
1211

1312

1413
conda-test:
@@ -27,7 +26,7 @@ pip-test:
2726

2827

2928
tag:
30-
pushd pandas && ../scripts/tag.py $(TAG) && podp
29+
pushd pandas && ../scripts/tag.py $(TAG) && popd
3130

3231

3332
doc:

pandas

Submodule pandas updated 58 files

pandas-feedstock

scripts/tag.py

100644100755
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ def check_tag(tag):
1717
return tag
1818

1919

20+
def checkout(tag):
21+
if tag[-1] == '0':
22+
# off master
23+
base = 'master'
24+
else:
25+
base = '.'.join([tag[1:].rsplit('.', 1)[0], 'x'])
26+
27+
subprocess.check_call(['git', 'checkout', base])
28+
subprocess.check_call(['git', 'pull', '--ff-only', 'upstream', base])
29+
30+
2031
def commit(tag):
2132
subprocess.check_call(['git', 'clean', '-xdf'])
2233
print("Creating tag {}".format(tag))
@@ -35,6 +46,7 @@ def parse_args(args=None):
3546

3647
def main(args=None):
3748
args = parse_args(args)
49+
checkout(args.tag)
3850
commit(args.tag)
3951

4052

0 commit comments

Comments
 (0)