diff --git a/README.md b/README.md index d1a1c30..80209ea 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,9 @@ types: ``` ## Examples priorities + If a field has several examples, the following priority rules apply + 1. Example from operation. 2. Example from definitions. If a schema has nested schemas, the priority is given to an example from a most descriptive. diff --git a/setup.py b/setup.py index 3c5ebf5..ec10e1d 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,12 @@ # coding: utf-8 +import os from setuptools import setup, find_packages +long_description = open('README.rst' if os.path.exists('README.rst') else 'README.md').read() setup( name='swagger2rst', - version='0.0.2', + version='0.0.3', packages=find_packages(), license='MIT', description='Tool for convert "Swagger" format file to "Restructured text"', @@ -13,7 +15,7 @@ install_requires=open('requirements.txt').read(), include_package_data=True, test_suite='swg2rst.test', - long_description=open('README.md').read(), + long_description=long_description, classifiers=[ 'Development Status :: 4 - Beta', 'Environment :: Console',