forked from baliscope/periapi
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (49 loc) · 1.97 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (49 loc) · 1.97 KB
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
54
55
56
"""
This file is part of Volapi.
Volapi is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Volapi is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Volapi. If not, see <http://www.gnu.org/licenses/>.
"""
import re
from setuptools import setup
def find_version(filename):
"""
Search for assignment of __version__ string in given file and
return what it is assigned to.
"""
with open(filename, 'r') as filep:
version_file = filep.read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(
name='periapi',
version=find_version('periapi/_version.py'),
description='RESTful API for periscope.tv',
long_description=open('README.rst', 'r').read(),
url='https://github.com/baliscope/periapi',
license='MIT',
author='baliscope',
author_email='bal@tutanota.com',
packages=['periapi'],
entry_points={"console_scripts": ["periapi = periapi.__main__:run"]},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
"Operating System :: OS Independent",
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Topic :: Software Development :: Libraries :: Python Modules',
],
install_requires=[l.strip() for l in open("requirements.txt").readlines()]
)