-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
53 lines (44 loc) · 1.84 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import codecs
import os.path
from os.path import abspath, dirname, join
from setuptools import find_namespace_packages, setup
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
def parse_requirements(filename):
"""
load requirements from a pip requirements file
"""
line_iter = (line.strip() for line in open(filename))
return [line for line in line_iter if line and not line.startswith("#")]
README_MD = open(join(dirname(abspath(__file__)), "README.md")).read()
setup(name='soundscape_generation',
version=get_version('soundscape_generation/__init__.py'),
author='ABIZ Lab',
author_email='[email protected]',
description='Generate soundscapes based on images.',
long_description=README_MD,
long_description_content_type="text/markdown",
url='https://github.com/hslu-abiz/soundscape-generation',
packages=find_namespace_packages(),
keywords='soundscapes, generation, tensorflow',
install_reqs=parse_requirements('requirements.txt'),
classifiers=[
'Development Status :: 1 - Planning',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
])