-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
48 lines (41 loc) · 1.16 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
#!/usr/bin/env python
import os
import re
import sys
from setuptools import setup, find_packages
packages = find_packages(exclude=['test'])
requires = []
__version__ = ''
with open('nested_query_string/version.py', 'r') as fd:
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
for line in fd:
m = reg.match(line)
if m:
__version__ = m.group(1)
break
if not __version__:
raise RuntimeError('Cannot find version information')
def data_for(filename):
with open(filename) as fd:
content = fd.read()
return content
setup(
name="nested_query_string",
version=__version__,
description='Generate nested query strings similar to rack and node qs',
license='MIT',
author='Cine.io Engineering',
author_email='[email protected]',
url='https://github.com/cine-io/nested-query-string',
packages=packages,
package_data={'': ['LICENSE']},
include_package_data=True,
install_requires=requires,
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Internet",
],
)