From 3ac32249375b0f8d342a142585d86ea4d905a5a0 Mon Sep 17 00:00:00 2001 From: Andy Wickert Date: Mon, 28 May 2018 23:49:34 -0500 Subject: [PATCH] Final changes for v1.1.0 --- register.py | 15 +++++++++++++++ topypi-test.sh | 4 ++-- topypi.sh | 5 ++--- 3 files changed, 19 insertions(+), 5 deletions(-) create mode 100644 register.py diff --git a/register.py b/register.py new file mode 100644 index 0000000..501101f --- /dev/null +++ b/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() diff --git a/topypi-test.sh b/topypi-test.sh index 9b687a8..64fc95b 100755 --- a/topypi-test.sh +++ b/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 diff --git a/topypi.sh b/topypi.sh index 0ee49eb..023721c 100755 --- a/topypi.sh +++ b/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