-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (39 loc) · 1.4 KB
/
setup.py
File metadata and controls
54 lines (39 loc) · 1.4 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
import sys
from setuptools import find_packages, setup
from wrf import VERSION
BASE_CVS_URL = 'https://github.com/filwaitman/whatever-rest-framework'
def get_tests_require():
django_1x_version = 'Django==1.11.23'
django_2x_version = 'Django==2.2.3'
lines = [x.strip().split(' ;')[0] for x in open('requirements_test.txt').readlines() if x]
if sys.version_info.major < 3:
lines.remove(django_2x_version)
else:
lines.remove(django_1x_version)
return lines
setup(
name='whatever-rest-framework',
packages=find_packages(),
include_package_data=True,
exclude=['tests'],
version=VERSION,
author='Filipe Waitman',
author_email='filwaitman@gmail.com',
description='RESTful API framework for your project, whatever tools you are using.',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url=BASE_CVS_URL,
download_url='{}/tarball/{}'.format(BASE_CVS_URL, VERSION),
install_requires=[x.strip() for x in open('requirements.txt').readlines()],
test_suite='tests',
tests_require=get_tests_require(),
keywords=[],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Flask',
'Framework :: Pyramid',
],
)