forked from Drakkar-Software/OctoBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (64 loc) · 2.53 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
# Drakkar-Software OctoBot
# Copyright (c) Drakkar-Software, All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3.0 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library.
import os
from setuptools import setup, find_packages
from config import PROJECT_NAME, VERSION
def find_package_data(path):
return (path, [os.path.join(dirpath, filename)
for dirpath, dirnames, filenames in os.walk(path)
for filename in
[file for file in filenames if not file.endswith(".py") and not file.endswith(".pyc")]])
PACKAGES = find_packages(exclude=["docs.*", "tests.*", "tentacles.*", "logs"])
PACKAGES_DATA = [find_package_data("interfaces"),
find_package_data("config"),
('pre_requirements.txt', ['pre_requirements.txt']),
('requirements.txt', ['requirements.txt'])]
# long description from README file
with open('README.md', encoding='utf-8') as f:
DESCRIPTION = f.read()
REQUIRED = open('pre_requirements.txt').read() + open('requirements.txt').read() + "OctoBot-Launcher"
REQUIRES_PYTHON = '>=3.7.2'
setup(
name=PROJECT_NAME,
version=VERSION,
url='https://github.com/Drakkar-Software/OctoBot',
license='LGPL-3.0',
author='Drakkar-Software',
author_email='[email protected]',
description='Cryptocurrencies alert / trading bot',
py_modules=['start', 'octobot'],
packages=PACKAGES,
long_description=DESCRIPTION,
install_requires=REQUIRED,
tests_require=["pytest"],
test_suite="tests",
zip_safe=False,
python_requires=REQUIRES_PYTHON,
data_files=PACKAGES_DATA,
entry_points={
'console_scripts': [
PROJECT_NAME + ' = start:main'
]
},
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 3.7',
],
)