-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
88 lines (73 loc) · 2.18 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
77
78
79
80
81
82
83
84
85
86
87
88
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Setup configuration for `flowpyter-task`.
"""
import versioneer
import sys
from os import path as p
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
__status__ = "Development"
__author__ = "Flowminder Foundation"
__maintainer__ = "Flowminder Foundation"
__email__ = "[email protected]"
def read(filename, parent=None):
"""
Reads a text file into memory.
"""
parent = parent or __file__
try:
with open(p.join(p.dirname(parent), filename)) as f:
return f.read()
except IOError:
return ""
#
# Controls byte-compiling the shipped template.
#
sys.dont_write_bytecode = False
#
# Parse all requirements.
#
readme = read("README.md")
setup(
name="flowpyter-task",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
long_description=readme,
long_description_content_type="text/markdown",
author=__author__,
author_email=__email__,
url="https://github.com/Flowminder/flowpyter-task",
keywords="mobile telecommunications analysis",
entry_points={
"airflow.plugins": ["flowpytertask = flowpytertask.plugins:FptMacros"],
},
install_requires=[
"apache_airflow>=2.9.2,<3",
"apache-airflow-providers-docker",
"psycopg2-binary",
],
extras_require={
"dev": ["versioneer", "black"],
"test": ["pytest", "approvaltests", "pytest-docker", "flowkit_jwt_generator"],
},
python_require=">=3.10",
include_package_data=True,
zip_safe=True,
platforms=["MacOS X", "Linux"],
classifiers=[
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.10",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
],
)