Skip to content

Commit

Permalink
release script
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Dec 12, 2016
1 parent ca6723a commit ae160b6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .bbtravis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ install:
[ $TESTS != lint ] || pip install sphinx 'pylint==1.1.0' 'flake8~=2.6.0' 'astroid==1.3.8'
# until towncrier toml is released, we need to fetch from git :-/
[ $TESTS != docs ] || pip install -e './master[docs]' 'git+https://github.com/hawkowl/towncrier'
[ $TESTS != docs ] || pip install -e './master[docs]' 'git+https://github.com/tardyp/towncrier'
[ $TESTS != setuppy_test ] || ! (pip list | grep Twisted)
[ $TESTS != setuppy_test ] || pip install autobahn Twisted
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ install:
- "[ $TESTS != lint ] || pip install sphinx"
# Install docs dependencies for running the tests
# until towncrier toml is released, we need to fetch from git :-/
- "[ $TESTS != docs ] || pip install -e './master[docs]' 'git+https://github.com/hawkowl/towncrier'"
- "[ $TESTS != docs ] || pip install -e './master[docs]' 'git+https://github.com/tardyp/towncrier'"

# Check that Twisted is not installed during previous steps on setuppy_test configuration.
# In setuppy_test all dependencies should be installed by setuptools during tests.
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ docker-buildbot-master:
$(DOCKERBUILD) -t buildbot/buildbot-master:master master
docker-buildbot-master-ubuntu:
$(DOCKERBUILD) -t buildbot/buildbot-master-ubuntu:master -f master/Dockerfile.ubuntu master


release:
test ! -z "$(VERSION)" # usage: make release VERSION=0.9.2
yes | towncrier --version $(VERSION) --date `date -u +%F`
git commit -m "relnotes for $(VERSION)"
GPG_TTY=`tty` git tag -a -sf v$(VERSION) -m "TAG $(VERSION)"
./common/maketarballs.sh
./common/smokedist.sh
make docs
echo twine upload --sign dist/*
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ machine:
dependencies:
override:
- pyenv global 2.7.11
- pip install -e pkg -e 'master[docs]' -e worker 'git+https://github.com/hawkowl/towncrier'
- pip install -e pkg -e 'master[docs]' -e worker 'git+https://github.com/tardyp/towncrier'

test:
override:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package_dir = "master"
filename = "master/docs/relnotes/index.rst"
template = "master/docs/relnotes.rst.jinja"
title_format = "{name} ``{version}``\n===================================\n"
title_format = "{name} ``{version}``(``{project_date}``)\n===================================================\n"
[[tool.towncrier.section]]
path = ""

Expand Down

0 comments on commit ae160b6

Please sign in to comment.