Skip to content

Commit

Permalink
Only use Makefile to release
Browse files Browse the repository at this point in the history
The release procedure looks like:

1. Create release commit (by Timo/Gabriel) - Message: "release: vX.X.X"
    1.1 Update CHANGELOG.md
    1.2 Update version in sure/core.py
2. Tag release commit (by Timo/Gabriel) - Tag: vX.X.X
3. Checkout release commit by tag vX.X.X
4. Run "make release"
    4.1 Will clean repository
    4.2 Will test
    4.3 Will generate README.rst
    4.4 Will publish to PyPI

The .release script is not used anymore
  • Loading branch information
timofurrer committed Jun 7, 2016
1 parent bc4a99a commit daa4763
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 99 deletions.
15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# python bytecode
*.pyc
.coverage
__pycache__

# pip and setuptools
docs/_build
build/
dist/
sure.egg-info/
*.egg-info/
sure-*.tar.gz
README.rst

# temporary test files and dirs
.coverage
.tox

# temporary editor files
*.sublime-project
*.sublime-workspace
sure-*.tar.gz
*.swp
25 changes: 0 additions & 25 deletions .release

This file was deleted.

17 changes: 10 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export SURE_NO_COLORS := true
install_deps:
@pip install -r development.txt

test:
test: readme
@python setup.py build
@nosetests -s --verbosity=2 tests --rednose
@tox
@steadymark OLD_API.md
@steadymark README.md

Expand All @@ -28,15 +28,18 @@ clean:
@for pattern in `cat .gitignore`; do rm -rf $$pattern; find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!"


readme:
@pandoc README.md --from markdown --to rst -o README.rst

publish: readme
@python setup.py sdist register upload

release: clean test publish
@printf "Exporting to $(filename)... "
@tar czf $(filename) sure setup.py README.md COPYING
@tar czf $(filename) sure setup.py README.md README.rst COPYING
@echo "DONE!"

publish:
@./.release
@python setup.py sdist register upload

acceptance: clean
@steadymark README.md
@steadymark spec/reference.md
Expand Down
64 changes: 0 additions & 64 deletions README.rst

This file was deleted.

0 comments on commit daa4763

Please sign in to comment.