-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (61 loc) · 1.92 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
62
63
64
65
66
67
68
"""Grow Setup."""
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='grow',
version=open('grow/VERSION').read().strip(),
description=(
'Develop everywhere and deploy anywhere: a declarative '
'site generator for rapid, high-quality web site production.'
),
long_description=open('description.txt').read().strip(),
url='https://grow.io',
zip_safe=False,
license='MIT',
author='Grow SDK Authors',
author_email='[email protected]',
include_package_data=True,
packages=find_packages(exclude=[
'lib*',
'node_modules',
]),
install_requires=INSTALL_REQ,
python_requires='>=3.3',
scripts=[
'bin/grow',
],
keywords=[
'grow',
'cms',
'static site generator',
'content management'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules',
])