forked from 8080labs/ppscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 902 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
# -*- coding: utf-8 -*-
"""
Setup file for ppscore.
Use setup.cfg to configure your project.
This file was generated with PyScaffold 3.2.1.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: https://pyscaffold.org/
"""
import sys
from pkg_resources import VersionConflict, require
from setuptools import setup
from pathlib import Path
try:
require("setuptools>=38.3")
except VersionConflict:
print("Error: version of setuptools is too old (<38.3)!")
sys.exit(1)
def read_requirements(basename):
requirements_file = Path(__file__).parent.absolute() / basename
with open(requirements_file) as f:
return [req.strip() for req in f.readlines()]
if __name__ == "__main__":
requirements = read_requirements("requirements.txt")
setup(
use_pyscaffold=True,
install_requires=requirements
)