forked from Weasyl/libweasyl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (49 loc) · 1.53 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
54
55
56
#!/usr/bin/env python
import os
import sys
from setuptools import setup
from pip.download import PipSession
from pip.req import parse_requirements
# work around the combination of http://bugs.python.org/issue8876 and
# https://www.virtualbox.org/ticket/818 since it doesn't really have ill
# effects and there will be a lot of virtualbox users.
del os.link
# As of pip 6, parse_requirements requires a 'session' argument. This is required
# for remote files, but not local ones. In prior versions of pip, a blank
# PipSession object was used if no 'session' object was passed.
reqs = [str(r.req) for r in parse_requirements('requirements.txt', session=PipSession()) if r.req is not None]
if sys.version_info < (3, 3):
reqs.append('backports.lzma')
if sys.version_info < (3, 4):
reqs.append('enum34')
setup(
name='libweasyl',
description='common code across weasyl projects',
author='Weasyl LLC',
packages=[
'libweasyl', 'libweasyl.models',
'libweasyl.test', 'libweasyl.models.test',
],
package_data={
'libweasyl': [
'alembic/*.py', 'alembic/versions/*.py',
'test/data/*',
],
},
install_requires=reqs,
extras_require={
'development': [
'coverage',
'flake8',
'pytest',
'sphinx',
'sphinxcontrib-napoleon',
'tox',
'vcversioner',
],
},
setup_requires=['vcversioner'],
vcversioner={
'version_module_paths': ['libweasyl/_version.py'],
},
)