For my package, I have a README.rst file that reads in the detailed description of setup.py like this:
readme = open('README.rst', 'r') README_TEXT = readme.read() readme.close() setup( ... long_description = README_TEXT, .... )
That way, I can have a README file on my github page every time I make a transaction, and on a pypi page every time I python setup.py register . There is only one problem. I would like the github page to say something like this: "This document reflects a preview of envbuilder. For the latest version, see Pypi."
I could just put these lines in README.rst and delete them before I python setup.py register , but I know that there will be a time when I forget to delete sentences before I click on pypi.
I am trying to find a better way to automate this, so I do not need to worry about it. Does anyone have any idea? Is there any setuptools / distutils program that I can do?
python github setuptools pypi distutils
Jason baker
source share