-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (28 loc) · 970 Bytes
/
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
"""
Setup script for dual_momentum installation
"""
import sys
import setuptools
from pathlib import Path
BASE_PATH = Path(__file__).parent.absolute()
with open(Path(BASE_PATH, 'requirements.txt')) as f:
REQUIRED_PACKAGES = f.read().strip().split('\n')
with open(Path(BASE_PATH, "README.md"), "r") as fh:
LONG_DESCRIPTION = fh.read()
# Check if Python 3.6 or 3.7 is installed.
PYTHON_VERSION = sys.version_info
if PYTHON_VERSION.major < 3 or (PYTHON_VERSION.major == 3 and PYTHON_VERSION.minor < 6):
ERR = ('dual_momentum only supports Python Versions >=3.6'
+ 'Your current Python version is {0}.{1}.'.format(
str(PYTHON_VERSION.major),
str(PYTHON_VERSION.minor)
))
sys.exit(ERR)
setuptools.setup(
name="dual-momentum",
version="0.1.0",
author="Stephan Risi",
install_requires=REQUIRED_PACKAGES,
long_description=LONG_DESCRIPTION,
packages=setuptools.find_packages(),
)