Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (40 sloc) 1.485 kB
from distutils.core import setup
from setuptools import find_packages
import re
# http://bugs.python.org/issue15881
try:
import multiprocessing
except ImportError:
pass
def parse_requirements(file_name):
requirements = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'(\s*#)|(\s*$)', line):
continue
if re.match(r'\s*-e\s+', line):
requirements.append(re.sub(r'\s*-e\s+.*#egg=(.*)$', r'\1', line))
elif re.match(r'\s*-f\s+', line):
pass
else:
requirements.append(line)
return requirements
def parse_dependency_links(file_name):
dependency_links = []
for line in open(file_name, 'r').read().split('\n'):
if re.match(r'\s*-[ef]\s+', line):
dependency_links.append(re.sub(r'\s*-[ef]\s+', '', line))
return dependency_links
setup(name='django-experiments',
version='1.1.0',
description='Python Django AB Testing Framework',
author='Mixcloud',
author_email='technical@mixcloud.com',
url='https://github.com/mixcloud/django-experiments',
packages=find_packages(exclude=["example_project"]),
include_package_data=True,
license="MIT license, see LICENSE file",
install_requires=parse_requirements('requirements.txt'),
dependency_links=parse_dependency_links('requirements.txt'),
long_description=open('README.rst').read(),
test_suite="testrunner.runtests",
)
Jump to Line
Something went wrong with that request. Please try again.