-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
48 lines (44 loc) · 1.73 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# coding: utf-8
from setuptools import setup, Extension
from Cython.Build import cythonize
extensions = cythonize([
Extension('graphql_parser.{}'.format(cls_name),
['graphql_parser/{}.pyx'.format(cls_name)],
libraries=['graphqlparser'],
include_dirs=['.'])
for cls_name in ['GraphQLParser', 'GraphQLAstVisitor',
'GraphQLAst', 'GraphQLAstNode']
])
setup(
name='graphqlparser',
version='0.0.4',
author='Marco Paolini',
author_email='[email protected]',
description='Python bindings for libgraphqlparser (Cython-based)',
long_description='\n\n'.join([open('README.rst', 'r').read(),
'-----',
open('NEWS.rst', 'r').read()]),
url='https://github.com/elastic-coders/py-graphqlparser',
packages=['graphql_parser'],
install_requires=['cython'],
package_data={'graphql_parser': ['*.pxd', '*.pyx']},
include_package_data=True,
ext_modules=extensions,
license='BSD',
keywords=['graphql', 'parser', 'libgraphql'],
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Python Modules',
]
)