-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (64 loc) · 1.87 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
# !/usr/bin/env python3
import copy
import pathlib
import setuptools
from setuptools.command.build_py import build_py
NAME = 'reforis_angelcam_connector'
BASE_DIR = pathlib.Path(__file__).absolute().parent
class AngelcamConnectorBuild(build_py):
def run(self):
# build package
build_py.run(self)
from reforis_distutils import ForisPluginBuild
cmd = ForisPluginBuild(copy.copy(self.distribution))
cmd.root_path = BASE_DIR
cmd.module_name = NAME
cmd.build_lib = self.build_lib
cmd.ensure_finalized()
cmd.run()
setuptools.setup(
name=NAME,
version='0.1.0',
packages=setuptools.find_packages(exclude=['tests']),
include_package_data=True,
description='Angelcam Connector',
author='Angelcam, Inc.',
author_email='[email protected]',
install_requires=[
'flask',
'Babel',
'Flask-Babel',
'reforis @ git+https://gitlab.nic.cz/turris/reforis/reforis#egg=reforis',
],
extras_require={
'devel': [
'pytest',
'pylint',
'pylint-quotes',
'pycodestyle',
],
},
setup_requires=[
'reforis_distutils',
],
dependency_links=[
'git+https://gitlab.nic.cz/turris/reforis/reforis-distutils.git#egg=reforis-distutils',
],
entry_points={
'foris.plugins': f'{NAME} = {NAME}:angelcam_connector'
},
classifiers=[
'Framework :: Flask',
'Intended Audience :: Developers',
'Development Status :: 3 - Alpha',
'License :: Other/Proprietary License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
],
cmdclass={
'build_py': AngelcamConnectorBuild,
},
zip_safe=False,
)