-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (55 loc) · 1.81 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
53
54
55
56
57
58
59
60
61
"""WebReview Client Setup."""
import os
import re
from setuptools import find_packages
from setuptools import setup
DEP_RE = re.compile(r'([\S]*)\s?=\s? [\"\']?([^\'\"]*)[\"\']?', re.IGNORECASE)
INSTALL_REQ = []
with open('Pipfile') as pipfile:
in_dep_section = False
for line in pipfile.readlines():
line = line.strip()
if not line or line.startswith('#'):
continue
if in_dep_section:
if line.startswith('['):
in_dep_section = False
continue
line_match = DEP_RE.match(line)
if line_match:
INSTALL_REQ.append(
'{}{}'.format(line_match.group(1).strip('"'), line_match.group(2)))
elif line == '[packages]':
in_dep_section = True
setup(
name='webreview',
version=open(os.path.join('webreview', 'VERSION')).read().strip(),
description=(
'Client library for the WebReview static site staging service.'
),
url='https://github.com/grow/webreview-client',
license='MIT',
author='Grow SDK Authors',
author_email='[email protected]',
include_package_data=True,
install_requires=INSTALL_REQ,
packages=find_packages(),
keywords=[
'grow',
'cms',
'static site generator',
's3',
'google cloud storage',
'content management'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
])