Skip to content

Commit

Permalink
Use README as long description for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrehn committed May 14, 2020
1 parent f4fd0ab commit f3faa57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from os.path import abspath, dirname, join
from setuptools import setup

# Read the README markdown data from README.md
with open(abspath(join(dirname(__file__), 'README.md')), 'rb') as readmeFile:
__readme__ = readmeFile.read().decode('utf-8')

# Read the version number from version.py
with open(abspath(join(dirname(__file__), 'conan_ue4cli', 'version.py'))) as versionFile:
__version__ = versionFile.read().strip().replace('__version__ = ', '').replace("'", '')
Expand All @@ -9,6 +13,8 @@
name='conan-ue4cli',
version=__version__,
description='Integrate third-party libraries into the Unreal Engine with Conan',
long_description=__readme__,
long_description_content_type='text/markdown',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.5',
Expand Down

0 comments on commit f3faa57

Please sign in to comment.