-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README contents as package description
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
import io | ||
import os | ||
import sys | ||
import setuptools | ||
from setuptools import setup | ||
|
||
# Workaround: bdist_wheel doesn't support absolute paths in data_files | ||
# (see: https://bitbucket.org/pypa/wheel/issues/92). | ||
if os.getuid() == 0 and 'bdist_wheel' in sys.argv: | ||
raise RuntimeError("This setup.py does not support wheels") | ||
|
||
setuptools.setup( | ||
# read the contents the README file | ||
this_directory = os.path.abspath(os.path.dirname(__file__)) | ||
with io.open(os.path.join(this_directory, 'README.md'), 'r', encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
setup_requires=[ | ||
'pbr >= 1.9', | ||
'setuptools >= 17.1' | ||
], | ||
pbr=True | ||
pbr=True, | ||
long_description=long_description, | ||
long_description_content_type='text/markdown' | ||
) |