Skip to content

Commit

Permalink
Final changes for v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awickert committed May 29, 2018
1 parent f7670be commit 3ac3224
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
15 changes: 15 additions & 0 deletions register.py
@@ -0,0 +1,15 @@
#! /usr/bin/env python

# modified from:
# https://coderwall.com/p/qawuyq/use-markdown-readme-s-in-python-modules

import pandoc
import os

pandoc.core.PANDOC_PATH = '/usr/bin/pandoc'

doc = pandoc.Document()
doc.markdown = open('README.md').read()
f = open('README.txt','w+')
f.write(doc.rst)
f.close()
4 changes: 2 additions & 2 deletions topypi-test.sh
@@ -1,6 +1,6 @@
#! /usr/bin/env sh

python register.py
python setup.py register -r pypitest
rm README.txt
python setup.py sdist upload -r pypitest
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
#python setup.py sdist upload -r pypitest
5 changes: 2 additions & 3 deletions topypi.sh
@@ -1,6 +1,5 @@
#! /usr/bin/env sh

python register.py
python setup.py register -r pypi
rm README.txt
#python register.py
#rm README.txt
python setup.py sdist upload -r pypi

0 comments on commit 3ac3224

Please sign in to comment.