Commit 810bd00b by benjaoming

Automatically generate README.rst for PyPi

parent 0c492222
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
build build
dist dist
*.egg-info *.egg-info
README.rst
#Docs #Docs
docs/_build docs/_build
......
include COPYING include COPYING
include README.md include README.md
include README.rst
include setup.cfg include setup.cfg
include requirements.txt include requirements.txt
include model_chart_wiki.pdf include model_chart_wiki.pdf
......
...@@ -250,6 +250,8 @@ Acknowledgements ...@@ -250,6 +250,8 @@ Acknowledgements
* [django-mptt](https://github.com/django-mptt/django-mptt), a wonderful utility for inexpensively using tree structures in Django with a relational database backend. * [django-mptt](https://github.com/django-mptt/django-mptt), a wonderful utility for inexpensively using tree structures in Django with a relational database backend.
* [jdcaballero](https://github.com/jdcaballero), [yekibud](https://github.com/yekibud), [bridger](https://github.com/bridger), [TomLottermann](https://github.com/TomLottermann), [crazyzubr](https://github.com/crazyzubr), and [everyone else](https://github.com/benjaoming/django-wiki/contributors) involved! * [jdcaballero](https://github.com/jdcaballero), [yekibud](https://github.com/yekibud), [bridger](https://github.com/bridger), [TomLottermann](https://github.com/TomLottermann), [crazyzubr](https://github.com/crazyzubr), and [everyone else](https://github.com/benjaoming/django-wiki/contributors) involved!
<!---Illegal PyPi RST data --><!---Anything that isn't validly translateable to PyPi RST goes after this line -->
Support Support
------- -------
......
[metadata]
description-file = README.md
...@@ -7,27 +7,25 @@ from setuptools import setup, find_packages ...@@ -7,27 +7,25 @@ from setuptools import setup, find_packages
# Used for the long_description. It's nice, because now 1) we have a top level # Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw # README file and 2) it's easier to type in the README file than to put a raw
# string in below ... # string in below ...
def get_path(fname):
return os.path.join(os.path.dirname(__file__), fname)
def read(fname): def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(get_path(fname)).read()
packages = find_packages() packages = find_packages()
#def build_media_pattern(base_folder, file_extension):
# return ["%s/%s*.%s" % (base_folder, "*/"*x, file_extension) if base_folder else "%s*.%s" % ("*/"*x, file_extension) for x in range(10)]
#media_patterns = ( build_media_pattern("templates", "html") + try:
# build_media_pattern("static", "js") + import pypandoc
# build_media_pattern("static", "css") + long_description = pypandoc.convert(get_path('README.md'), 'rst')
# build_media_pattern("static", "png") + long_description = long_description.split('<!---Illegal PyPi RST data -->')[0]
# build_media_pattern("static", "jpeg") + f = open(get_path('README.rst'), 'w')
# build_media_pattern("static", "gif") + f.write(long_description)
# build_media_pattern("", "md") + f.close()
# build_media_pattern("", "requirements.txt") except (IOError, ImportError):
#) # No long description... but nevermind, it's only for PyPi uploads.
#package_data = dict( long_description = ""
# (package_name, media_patterns)
# for package_name in packages
#)
setup( setup(
name = "wiki", name = "wiki",
...@@ -35,12 +33,12 @@ setup( ...@@ -35,12 +33,12 @@ setup(
author = "Benjamin Bach", author = "Benjamin Bach",
author_email = "benjamin@overtag.dk", author_email = "benjamin@overtag.dk",
url = "http://www.django-wiki.org", url = "http://www.django-wiki.org",
description = ("A wiki system written for the Django framework."), description = "A wiki system written for the Django framework.",
license = "GPLv3", license = "GPLv3",
keywords = "django wiki markdown", keywords = "django wiki markdown",
packages=find_packages(exclude=["testproject","testproject.*"]), packages=find_packages(exclude=["testproject","testproject.*"]),
long_description=read('README.md'), #long_description=long_description,
zip_safe = False, zip_safe=False,
install_requires=read('requirements.txt').split("\n"), install_requires=read('requirements.txt').split("\n"),
classifiers=[ classifiers=[
'Development Status :: 3 - Alpha', 'Development Status :: 3 - Alpha',
...@@ -55,5 +53,4 @@ setup( ...@@ -55,5 +53,4 @@ setup(
'Topic :: Software Development :: Libraries :: Application Frameworks', 'Topic :: Software Development :: Libraries :: Application Frameworks',
], ],
include_package_data=True, include_package_data=True,
# package_data=package_data,
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment