forked from nmonga91/django-mock-queries
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
32 lines (26 loc) · 927 Bytes
/
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
from distutils.core import setup
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
install_req = parse_requirements('requirements/core.txt', session='skip')
req = [str(ir.req) for ir in install_req]
def read_md(filename):
try:
from pypandoc import convert_file
return convert_file(filename, 'rst')
except (ImportError, OSError):
return open(filename).read()
setup(
name='django_mock_queries',
packages=['django_mock_queries'],
version='2.0.1',
description='A django library for mocking queryset functions in memory for testing',
long_description=read_md('README.md'),
author='Phivos Stylianides',
author_email='[email protected]',
url='https://github.com/stphivos/django-mock-queries',
keywords='django orm mocking unit-testing tdd',
classifiers=[],
install_requires=req
)