-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·77 lines (73 loc) · 2.21 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
69
70
71
72
73
74
75
76
#!/usr/bin/env python
#-*- coding: utf8 -*-
from setuptools import setup
import sys
readme = open("README.md").read()
py2 = sys.version_info < (3,)
setup(
name = "somutils",
version = "1.10.0",
description = "Tools we use at Somenergia and can be useful",
author = u"César López Ramírez",
author_email = "[email protected]",
url = 'https://github.com/Som-Energia/somenergia-utils',
long_description = readme,
long_description_content_type = 'text/markdown',
license = 'GNU General Public License v3 or later (GPLv3+)',
py_modules = [
"sheetfetcher",
"dbutils",
"trace",
],
packages=[
'somutils',
],
scripts=[
'venv',
'activate_wrapper.sh',
'sql2csv.py',
'enable_destructive_tests.py',
],
install_requires=[
'yamlns>=0.7',
'consolemsg',
'pytz',
'csv342', # Py2/3 compatibility
] + ([
'gspread<4', # Py2 dropped
'google-auth<1.35.0', # Py2 dropped
'google-auth-oauthlib<0.4.2', # Py2 dropped
'oauthlib<3', # Py2 dropped
'requests-oauthlib<1.2', # Py2 dropped
'setuptools_rust<0.11',
'psycopg2-binary<2.9',
'decorator<5',
'cryptography<3.4', # Py2 dropped
'rsa<4.6',
'cachetools<4',
'httplib2<0.18',
'pathlib2',
'pyyaml<6',
'certifi<2022-05-18', # Py2, indirect of request
'requests<2.28', # Py2, dropped
'python-dateutil<=2.8.2', # Py2 dropped
] if py2 else [
'google-auth',
'PyOpenSSL',
'psycopg2-binary',
'decorator',
'gspread>=4',
'python-dateutil>=2.9.0',
'contextlib2', # ExitStack compatibility
]),
classifiers = [
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Environment :: Console',
'Topic :: Software Development :: Libraries :: Python Modules',
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Operating System :: OS Independent',
],
)