File: releases.sh

package info (click to toggle)
python-jsonpath-rw-ext 0.1.9-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 236 kB
  • sloc: python: 717; makefile: 48; sh: 19
file content (24 lines) | stat: -rwxr-xr-x 537 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash

version=$1

git checkout master
git tag -s $version -m "Release version ${version}"
git checkout $version
git clean -fd
rm -rf jsonpath_rw_ext.egg-info build dist
tox -epep8,py27,py34
tox -r -evenv python setup.py sdist bdist_wheel

echo "release: jsonpath-rw-ext ${version}"
echo
echo "SHA1sum: "
sha1sum dist/*
echo "MD5sum: "
md5sum dist/*

echo 
echo "To publish:"
echo
echo "* git push --tags"
echo "* twine upload -r pypi -s dist/jsonpath-rw-ext-${version}.tar.gz dist/jsonpath_rw_ext-${version}-py2.py3-none-any.whl"