-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (26 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
#!/usr/bin/env python
# coding: utf-8
"""Minimal setup."""
import os
import re
from setuptools import setup, find_packages
PROJECT = 'cframe'
def get_property(prop, project):
"""Get certain property from project folder."""
with open(os.path.join(project, '__init__.py')) as f:
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop),
f.read())
return result.group(1)
with open('requirements.txt') as f:
REQS = f.read().splitlines()
setup(name=PROJECT,
install_requires=REQS,
version=get_property('__version__', PROJECT),
description='Framework for design of prediction-based compression methods',
author='Ugur Cayoglu',
setup_requires=["pytest-runner"],
tests_require=["pytest"],
package_data={PROJECT:['data/*']},
author_email='[email protected]',
packages=find_packages(),
)