-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
45 lines (38 loc) · 1.08 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
# -*- coding: utf8 -*-
import codecs
import re
import sys
from os import path
from setuptools import find_packages, setup
try:
from semantic_release import setup_hook
setup_hook(sys.argv)
except ImportError:
pass
def read(*parts):
file_path = path.join(path.dirname(__file__), *parts)
return codecs.open(file_path, encoding='utf-8').read()
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
read('api/__init__.py'),
re.MULTILINE
).group(1)
print(version)
setup(
name="epguides-api",
version=version,
url='http://github.com/frecar/epguides-api',
author='Fredrik Carlsen',
author_email='[email protected]',
description='API for epguides.com',
long_description=read('README.md'),
packages=find_packages(exclude=['tests', 'tests.*']),
tests_require=read('requirements.txt').strip().split('\n'),
install_requires=read('requirements.txt').strip().split('\n'),
license='MIT',
test_suite='runtests.runtests',
include_package_data=True,
classifiers=[
'Programming Language :: Python :: 3',
]
)