Permalink
Browse files

Add utility scripts.

  • Loading branch information...
1 parent 334ea30 commit 969701ff6a4cfe0c11fce3a43b2bc57c3f57d1e7 @donnemartin committed Dec 20, 2015
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+gitchangelog > CHANGELOG_DRAFT
+pandoc --from=markdown --to=rst --output=CHANGELOG.rst CHANGELOG.md
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+pandoc --from=markdown --to=rst --output=docs/source/README.rst README.md
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+flake8 --max-line-length=80 --exclude=build,scratch,docs .
@@ -0,0 +1,2 @@
+mv README.md README_temp.md
+cp CHANGELOG.rst README.md
@@ -0,0 +1 @@
+mv README_temp.md README.md
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+scripts/create_readme_rst.sh
+python setup.py build_sphinx
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# N. Set CHANGELOG as `README.md`
+scripts/set_changelog_as_readme.sh
+# O. Register package with PyPi
+python setup.py register -r pypi
+# P. Upload to PyPi
+python setup.py sdist upload -r pypi
+# Q. Upload Sphinx docs to PyPi
+python setup.py upload_sphinx
+# R. Restore `README.md`
+scripts/set_changelog_as_readme_undo.sh

0 comments on commit 969701f

Please sign in to comment.