Skip to content

Commit 1b2ae07

Browse files
authored
Make the README file appear on the PyPI project page. (kensho-technologies#133)
1 parent c0bee70 commit 1b2ae07

File tree

2 files changed

+40
-31
lines changed

2 files changed

+40
-31
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
# Installer logs
1212
pip-log.txt
1313

14-
# Unit test / coverage reports
14+
# Unit test / coverage reports / type checker cache
1515
.cache/
1616
.coverage
1717
nosetests.xml
18+
**/.mypy_cache/
1819

1920
# temporary files
2021
*.orig
@@ -25,6 +26,7 @@ nosetests.xml
2526

2627
# Virtual environment
2728
**/venv/
29+
**/venv3/
2830

2931
# Python autogenerated egg files and folders
3032
*.egg-info

setup.py

+37-30
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,40 @@ def find_name():
4040
raise RuntimeError('Unable to find name string.')
4141

4242

43-
setup(name=find_name(),
44-
version=find_version(),
45-
description='Turn complex GraphQL queries into optimized database queries.',
46-
url='https://github.com/kensho-technologies/graphql-compiler',
47-
author='Kensho Technologies, LLC.',
48-
author_email='[email protected]',
49-
license='Apache 2.0',
50-
packages=find_packages(exclude=['tests*']),
51-
install_requires=[
52-
'arrow>=0.7.0',
53-
'funcy>=1.6',
54-
'graphql-core==1.1',
55-
'pytz>=2016.10',
56-
'six>=1.10.0',
57-
],
58-
classifiers=[
59-
'Development Status :: 5 - Production/Stable',
60-
'Topic :: Database :: Front-Ends',
61-
'Topic :: Software Development :: Compilers',
62-
'Intended Audience :: Developers',
63-
'License :: OSI Approved :: Apache Software License',
64-
'Programming Language :: Python :: 2',
65-
'Programming Language :: Python :: 2.7',
66-
'Programming Language :: Python :: 3',
67-
'Programming Language :: Python :: 3.5',
68-
'Programming Language :: Python :: 3.6',
69-
],
70-
keywords='graphql database compiler orientdb',
71-
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
72-
)
43+
def find_long_description():
44+
"""Return the content of the README.md file."""
45+
return read_file('../README.md')
46+
47+
48+
setup(
49+
name=find_name(),
50+
version=find_version(),
51+
description='Turn complex GraphQL queries into optimized database queries.',
52+
long_description=find_long_description(),
53+
url='https://github.com/kensho-technologies/graphql-compiler',
54+
author='Kensho Technologies, LLC.',
55+
author_email='[email protected]',
56+
license='Apache 2.0',
57+
packages=find_packages(exclude=['tests*']),
58+
install_requires=[
59+
'arrow>=0.7.0',
60+
'funcy>=1.6',
61+
'graphql-core==1.1',
62+
'pytz>=2016.10',
63+
'six>=1.10.0',
64+
],
65+
classifiers=[
66+
'Development Status :: 5 - Production/Stable',
67+
'Topic :: Database :: Front-Ends',
68+
'Topic :: Software Development :: Compilers',
69+
'Intended Audience :: Developers',
70+
'License :: OSI Approved :: Apache Software License',
71+
'Programming Language :: Python :: 2',
72+
'Programming Language :: Python :: 2.7',
73+
'Programming Language :: Python :: 3',
74+
'Programming Language :: Python :: 3.5',
75+
'Programming Language :: Python :: 3.6',
76+
],
77+
keywords='graphql database compiler orientdb',
78+
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
79+
)

0 commit comments

Comments
 (0)