Improve publish.sh

This commit is contained in:
Vincent Jacques
2013-02-20 19:07:31 +01:00
parent f38f85324c
commit 5efe9cee26
4 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ PyGithub is stable. I will maintain it up to date with the API, and fix bugs if
What's new?
===========
`Version 1.12.0 <https://github.com/jacquev6/PyGithub/issues?milestone=22&state=closed>`_ (February 17th, 2013)
`Version 1.12.0 <https://github.com/jacquev6/PyGithub/issues?milestone=22&state=closed>`_ (February 20th, 2013)
---------------------------------------------------------------------------------------------------------------
* Much better documentation: http://jacquev6.github.com/PyGithub
+6
View File
@@ -4,6 +4,12 @@ Change log
Stable versions
~~~~~~~~~~~~~~~
`Version 1.12.0 <https://github.com/jacquev6/PyGithub/issues?milestone=22&state=closed>`_ (February 20th, 2013)
---------------------------------------------------------------------------------------------------------------
* Much better documentation: http://jacquev6.github.com/PyGithub
* `Implement <https://github.com/jacquev6/PyGithub/issues/140>`_ :meth:`github.Repository.Repository.get_gir_contents`. Thank you `ksookocheff-va <https://github.com/ksookocheff-va>`_ for asking
`Version 1.11.1 <https://github.com/jacquev6/PyGithub/issues?milestone=21&state=closed>`_ (February 9th, 2013) (London edition)
-------------------------------------------------------------------------------------------------------------------------------
+10 -9
View File
@@ -3,7 +3,7 @@
python setup.py publish || exit
previousVersion=$( grep 'version =' setup.py | sed 's/.*version =\"\(.*\)\".*/\1/' )
previousVersion=$( grep '^version =' setup.py | sed 's/version = \"\(.*\)\"/\1/' )
echo "Next version number? (previous: '$previousVersion')"
read version
sed -i -b "s/version = .*/version = \"$version\"/" setup.py
@@ -11,19 +11,20 @@ git add setup.py
git log v$previousVersion.. --oneline
echo "Edit ReadMe.md and doc/ChangeLog.md now, then press enter"
echo "Edit ReadMe.rst and doc/changes.rst now, then press enter"
read foobar
git add ReadMe.md doc/ChangeLog.md
git add ReadMe.rst doc/changes.rst
git commit -m "Publish version $version"
cp -r doc COPYING* github
python setup.py sdist upload
rm -rf github/*.md github/doc github/COPYING*
echo "Break (Ctrl+c) here if something is wrong. Else, press enter"
read foobar
git commit -m "Publish version $version"
git tag -m "Version $version" v$version
cp -r *.md doc COPYING* github
python setup.py sdist upload
rm -rf github/*.md github/doc github/COPYING*
git push github master master:develop
git push github master master:develop gh-pages
git push --tags
+1 -1
View File
@@ -119,7 +119,7 @@ if __name__ == "__main__":
"github.tests",
],
package_data={
"github": ["ReadMe.md", "COPYING*", "doc/*.md", "tests/ReplayData/*.txt"]
"github": ["ReadMe.rst", "COPYING*", "tests/ReplayData/*.txt"]
},
classifiers=[
"Development Status :: 5 - Production/Stable",