Skip to content

Commit 62d0f3f

Browse files
committed
fix(pypi): trim long description, avoid rst parsing errors
1 parent ab515ca commit 62d0f3f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.swagger-codegen-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
README.md
33
.gitignore
44
.travis.yml
5+
git_push.sh

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This Python package is automatically generated by the [Swagger Codegen](https://
1515

1616
## Requirements.
1717

18-
Python 2.7 to 3.4+
18+
Python 2.7 to 3.5+
1919

2020
## Installation & Usage
2121
### pip install
@@ -49,7 +49,7 @@ import flat_api
4949

5050
## Getting Started
5151

52-
Please follow the [installation procedure](#installation--usage) and then run the following:
52+
Please follow the installation procedure above and then run the following:
5353

5454
```python
5555
from __future__ import print_function

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,25 @@
2525

2626
try:
2727
import pypandoc
28-
LONG_DESCRIPTION = pypandoc.convert('README.md', 'rst')
28+
LONG_DESCRIPTION = open('README.md').read()
29+
LONG_DESCRIPTION = LONG_DESCRIPTION[:LONG_DESCRIPTION.index('## Documentation for API Endpoints')]
30+
LONG_DESCRIPTION = pypandoc.convert_text(LONG_DESCRIPTION, 'rst', format='md')
2931
except(IOError, ImportError):
3032
LONG_DESCRIPTION = open('README.md').read()
3133

3234
setup(
3335
name=NAME,
3436
version=VERSION,
3537
description="Flat API Client",
38+
author="The Flat Team (https://flat.io)",
3639
author_email="developers@flat.io",
3740
url="https://github.com/FlatIO/api-client-python",
3841
keywords=["Flat API", "MusicXML", "Music Notation", "MIDI"],
3942
long_description=LONG_DESCRIPTION,
4043
install_requires=REQUIRES,
4144
packages=find_packages(),
4245
include_package_data=True,
46+
license="Apache",
4347
classifiers=[
4448
"Development Status :: 3 - Alpha",
4549
"Environment :: Console",

0 commit comments

Comments
 (0)