-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathsetup.py
More file actions
57 lines (51 loc) · 1.78 KB
/
Copy pathsetup.py
File metadata and controls
57 lines (51 loc) · 1.78 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
import re
from pathlib import Path
from setuptools import setup, find_packages
DESCRIPTION = "A trading framework for cryptocurrencies"
BASE_DIR = Path(__file__).resolve().parent
# The version lives only in jesse/version.py. It is read as text because importing the package
# would import Jesse and its dependencies during the build.
_version_match = re.search(
r"^__version__\s*=\s*['\"]([^'\"]+)['\"]",
(BASE_DIR / "jesse" / "version.py").read_text(encoding="utf-8"),
re.MULTILINE,
)
if not _version_match:
raise RuntimeError("Could not find __version__ in jesse/version.py")
VERSION = _version_match.group(1)
with open(BASE_DIR / "requirements.txt", "r", encoding="utf-8") as f:
REQUIRED_PACKAGES = f.read().splitlines()
with open(BASE_DIR / "README.md", "r", encoding="utf-8") as f:
LONG_DESCRIPTION = f.read()
setup(
name='jesse',
version=VERSION,
author="Saleh Mir",
author_email="saleh@jesse.trade",
packages=find_packages(),
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://jesse.trade",
project_urls={
'Documentation': 'https://docs.jesse.trade',
'Say Thanks!': 'https://jesse.trade/discord',
'Source': 'https://github.com/jesse-ai/jesse',
'Tracker': 'https://github.com/jesse-ai/jesse/issues',
},
install_requires=REQUIRED_PACKAGES,
entry_points='''
[console_scripts]
jesse=jesse.__init__:cli
''',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires='>=3.10',
include_package_data=True,
package_data={
'': ['*.dll', '*.dylib', '*.so', '*.json'],
},
)