mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
include README.rst in official release source tarball
README.rst is still the standard for Python libs.
This commit is contained in:
parent
7d4e354f25
commit
d4865ec038
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,7 +13,7 @@ env/
|
|||||||
fdroidserver.egg-info/
|
fdroidserver.egg-info/
|
||||||
pylint.parseable
|
pylint.parseable
|
||||||
/.testfiles/
|
/.testfiles/
|
||||||
docs/html/
|
README.rst
|
||||||
|
|
||||||
# files generated by tests
|
# files generated by tests
|
||||||
tmp/
|
tmp/
|
||||||
|
@ -27,7 +27,7 @@ include examples/template.yml
|
|||||||
include fdroid
|
include fdroid
|
||||||
include LICENSE
|
include LICENSE
|
||||||
include makebuildserver
|
include makebuildserver
|
||||||
include README.md
|
include README.rst
|
||||||
include tests/androguard_test.py
|
include tests/androguard_test.py
|
||||||
include tests/bad-unicode-*.apk
|
include tests/bad-unicode-*.apk
|
||||||
include tests/build.TestCase
|
include tests/build.TestCase
|
||||||
|
21
setup.py
21
setup.py
@ -12,15 +12,20 @@ else:
|
|||||||
data_prefix = '.'
|
data_prefix = '.'
|
||||||
|
|
||||||
# PyPI accepts reST not Markdown
|
# PyPI accepts reST not Markdown
|
||||||
if shutil.which('pandoc'):
|
if os.path.exists('README.md'):
|
||||||
print('Using reST README')
|
if shutil.which('pandoc'):
|
||||||
import subprocess
|
print('Using reST README')
|
||||||
readme = subprocess.check_output(['pandoc', '--from=markdown', '--to=rst', 'README.md'],
|
import subprocess
|
||||||
universal_newlines=True)
|
subprocess.check_call(['pandoc', '--from=markdown', '--to=rst', 'README.md',
|
||||||
|
'--output=README.rst'], universal_newlines=True)
|
||||||
|
with open('README.rst') as fp:
|
||||||
|
readme = fp.read()
|
||||||
|
else:
|
||||||
|
print('Using Markdown README')
|
||||||
|
with open('README.md') as fp:
|
||||||
|
readme = fp.read()
|
||||||
else:
|
else:
|
||||||
print('Using Markdown README')
|
readme = ''
|
||||||
with open('README.md') as fp:
|
|
||||||
readme = fp.read()
|
|
||||||
|
|
||||||
setup(name='fdroidserver',
|
setup(name='fdroidserver',
|
||||||
version='0.8',
|
version='0.8',
|
||||||
|
Loading…
Reference in New Issue
Block a user