From 240097ce694bc20b7b7e455ab7fb8812f26fcf11 Mon Sep 17 00:00:00 2001 From: Igor Kasianov Date: Mon, 12 Aug 2019 16:21:01 +0300 Subject: [PATCH] update setup.py --- MANIFEST.in | 5 +++++ setup.py | 13 ++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..5e3ff24 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,5 @@ +include README.md LICENSE.txt +graft graphene_federation +global-exclude __pycache__ +global-exclude *.py[co] +prune */.idea diff --git a/setup.py b/setup.py index e2a40ce..681ef6b 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ -from distutils.core import setup +import os +from setuptools import setup + + +def read(*rnames): + return open(os.path.join(os.path.dirname(__file__), *rnames)).read() -with open("README.md", "r") as fh: - long_description = fh.read() setup( name = 'graphene-federation', @@ -9,8 +12,8 @@ version = '0.0.2', license='MIT', description = 'Federation implementation for graphene', - long_description=long_description, - long_description_content_type="text/markdown", + long_description=(read('README.md')), + long_description_content_type='text/markdown', author = 'Igor Kasianov', author_email = 'super.hang.glider@gmail.com', url = 'https://github.com/erebus1/graphene-federation',