-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
62 lines (54 loc) · 1.86 KB
/
setup.py
File metadata and controls
62 lines (54 loc) · 1.86 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
57
58
59
60
61
62
from __future__ import print_function
import re
import os
from setuptools import setup, find_packages
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
def _required_to_setup(required):
install_requires, dependency_links = [], []
for package in required:
m = re.match("(.*)://(.*)/(.*)(\.git)?#egg=(.*)", package)
if not m:
install_requires.append(package)
else:
install_requires.append(m.group(3))
dependency_links.append(package)
return install_requires, dependency_links
install_required, dependency_links = _required_to_setup([
line.strip()
for line in open("requirements.txt").read().split("\n")
if line.strip()
])
setup(
name="Farnsworth",
version="2.3.3",
author="Karandeep Nagra",
url="https://github.com/knagra/farnsworth",
author_email="karandeepsnagra@gmail.com",
packages=find_packages(),
include_package_data=True,
description="Website for BSC houses.",
install_requires=install_required,
tests_require=install_required,
test_suite="runtests.runtests",
package_data={
"": ["*/static/*/*/*", "*/templates/*", "templates/search/*/*/*"],
},
classifiers=[
"Environment :: Web Environment",
"Framework :: Django",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
# "Programming Language :: Python :: 3.3",
# "Programming Language :: Python :: 3.4",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
],
dependency_links=dependency_links,
extras_require={
"PostgreSQL": ["psycopg2"],
"social-auth": ["python-social-auth"],
},
)