-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup_backup.py
43 lines (37 loc) · 1.43 KB
/
setup_backup.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
import os
from setuptools import setup, find_packages
import versioneer # https://github.com/warner/python-versioneer
THIS_DIR = os.path.dirname(__file__)
def read_requirements_from_file(filepath):
'''Read a list of requirements from the given file and split into a
list of strings. It is assumed that the file is a flat
list with one requirement per line.
:param filepath: Path to the file to read
:return: A list of strings containing the requirements
'''
with open(filepath, 'r') as req_file:
return req_file.readlines()
setup_args = dict(
install_requires=read_requirements_from_file(
os.path.join(
THIS_DIR,
'requirements.txt')),
# tests_require=read_requirements_from_file(
# os.path.join(
# THIS_DIR,
# 'requirements-dev.txt'))
)
setup(name="maverick",
# version=versioneer.get_version(),
version="not_used",
description="TOF binning and combining utility",
author="Jean Bilheux",
author_email="[email protected]",
url="http://github.com/ornlneutronimaging/maverick",
long_description="""Should have a longer description""",
license="The MIT License (MIT)",
packages=find_packages(),
package_data={'': ['*.ui', '*.png', '*.qrc', '*.json']},
install_requires=setup_args["install_requires"],
setup_requires=[],
)