forked from youyo/gql-query-builder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·52 lines (43 loc) · 1.4 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
49
50
51
52
#!/usr/bin/env python
# coding: utf-8
from setuptools import setup, Command, find_packages
from pip._internal.req import parse_requirements
import os
install_reqs = parse_requirements('requirements.txt', session='hack')
requires = [str(ir.req) for ir in install_reqs]
class PublishCommand(Command):
user_options: list = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
os.system('rm -rf dist/')
os.system('python setup.py sdist')
os.system('twine upload dist/*')
setup(
name='gql-query-builder',
description='This is a GraphQL query builder.',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
use_scm_version=True,
url='https://github.com/youyo/gql-query-builder',
author='youyo',
author_email='[email protected]',
install_requires=requires,
license="MIT License",
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='graphql gql query-builder',
packages=['gql_query_builder'],
python_requires='>=3.6',
project_urls={
'Source': 'https://github.com/youyo/gql-query-builder',
},
cmdclass={'publish': PublishCommand},
)