forked from alanjds/grumpy
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathsetup.py
More file actions
96 lines (84 loc) · 2.61 KB
/
Copy pathsetup.py
File metadata and controls
96 lines (84 loc) · 2.61 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The setup script."""
import sys
from setuptools import setup, find_packages
try:
with open('README.md') as readme_file:
readme = readme_file.read()
except:
readme = ''
requirements = [
'Click>=6.0',
'importlib2>=3.5.0.2',
'click-default-group>=1.2',
'click-log>=0.3.2',
'dill>=0.2.7.1',
'pythonparser>=1.1',
'backports.functools-lru-cache>=1.5',
'backports.tempfile==1.0',
]
setup_requirements = [
# TODO(alanjds): Put setup requirements (distutils extensions, etc.) here
]
test_requirements = [
'pytest>=3.3',
'pytest-cov>=2.5.1',
# TODO: Put package test requirements here
]
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
if needs_pytest:
setup_requirements += ['pytest-runner']
COMMON_OPTIONS = dict(
version='0.3.0',
description="Grumpy (Python to Go Transpiler) Tools",
long_description=readme,
author="Dylan Trotter et al.",
maintainer="Alan Justino et al.",
maintainer_email="alan.justino@yahoo.com.br",
url='https://github.com/grumpyhome/grumpy',
install_requires=requirements,
license="Apache Software License 2.0",
zip_safe=False,
keywords='grumpy_runtime',
python_requires='~=2.7.0',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
test_suite='tests',
tests_require=test_requirements,
setup_requires=setup_requirements,
)
GRUMPY_TOOLS_OPTIONS = dict(
name='grumpy-tools',
packages=find_packages(
exclude=["*.tests", "*.tests.*", "tests.*", "tests"],
),
include_package_data=False,
entry_points={
'console_scripts': [
'grumpy=grumpy_tools.cli:main',
],
},
)
GRUMPY_TOOLS_OPTIONS.update(COMMON_OPTIONS)
setup(**GRUMPY_TOOLS_OPTIONS)