mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03: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
3 changed files with 15 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -13,7 +13,7 @@ env/
|
|||
fdroidserver.egg-info/
|
||||
pylint.parseable
|
||||
/.testfiles/
|
||||
docs/html/
|
||||
README.rst
|
||||
|
||||
# files generated by tests
|
||||
tmp/
|
||||
|
|
|
@ -27,7 +27,7 @@ include examples/template.yml
|
|||
include fdroid
|
||||
include LICENSE
|
||||
include makebuildserver
|
||||
include README.md
|
||||
include README.rst
|
||||
include tests/androguard_test.py
|
||||
include tests/bad-unicode-*.apk
|
||||
include tests/build.TestCase
|
||||
|
|
13
setup.py
13
setup.py
|
@ -12,15 +12,20 @@ else:
|
|||
data_prefix = '.'
|
||||
|
||||
# PyPI accepts reST not Markdown
|
||||
if shutil.which('pandoc'):
|
||||
if os.path.exists('README.md'):
|
||||
if shutil.which('pandoc'):
|
||||
print('Using reST README')
|
||||
import subprocess
|
||||
readme = subprocess.check_output(['pandoc', '--from=markdown', '--to=rst', 'README.md'],
|
||||
universal_newlines=True)
|
||||
else:
|
||||
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:
|
||||
readme = ''
|
||||
|
||||
setup(name='fdroidserver',
|
||||
version='0.8',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue