Skip to content

Commit

Permalink
Improve deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Oct 12, 2016
1 parent 9c83c85 commit 3c7c411
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 17 deletions.
14 changes: 0 additions & 14 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,7 @@ nosetests
deactivate
rm -rf env/python3

# Create the documentation.
pandoc --from=markdown_github --to=rst --output=docs/README.rst README.md

cd docs/
jupyter nbconvert --to rst ../examples/*.ipynb

make clean
make html
make latexpdf

cd ..

# git tag -a v1.4 -m "my version 1.4"

# Make the package installable.
python setup.py bdist_wheel

# twine upload dist/*
40 changes: 40 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
set -e

if ! git diff-index --quiet HEAD --; then

echo "There are uncommited changes, do you want to continue (y/n)? "
read cont
if echo "$cont" | grep -iq "^n" ;then
exit
fi
fi

echo "The current versions are: "
git tag

echo ""
echo "Give a new version number (without v prefix)"
read version_tag

echo ""
git tag -a "v$version_tag" -m "Version $version_tag"

# Make the package installable.
python setup.py bdist_wheel

# recordlinkage-0.6.0+0.g9c83c85.dirty-py2.py3-none-any.whl
base_path="dist/recordlinkage-"
ext_path="-py2.py3-none-any.whl"
full_path=$base_path$version_tag$ext_path
echo $full_path

echo ""
echo "Upload release to PiPy (y/n)? "
read upload_pip

if echo "$upload_pip" | grep -iq "^y" ;then

twine upload $full_path

fi
6 changes: 4 additions & 2 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Release notes
*************

Version 0.6 Coming soon
=======================
Version 0.6
===========

- Reformatting the code such that it follows PEP8.
- Add Travis-CI and codecov support.
Expand All @@ -16,6 +16,8 @@ Version 0.6 Coming soon
- Strip accents with the ``clean`` function.
- Add documentation
- Bug for random indexing with incorrect arguments fixed and tests added.
- Improved deployment workflow
- And much more

Version 0.5
===========
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@

[bdist_wheel]
universal = 1

[versioneer]
VCS = git
style = pep440
versionfile_source = recordlinkage/_version.py
versionfile_build = recordlinkage/_version.py
tag_prefix = v
parentdir_prefix = recordlinkage-
parentdir_prefix = recordlinkage-

0 comments on commit 3c7c411

Please sign in to comment.