forked from uber/charlatan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (47 loc) · 1.61 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 sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
def read_long_description(filename="README.rst"):
with open(filename) as f:
return f.read().strip()
def read_requirements(filename="requirements.txt"):
with open(filename) as f:
return f.readlines()
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name="charlatan",
version='0.4.5',
author="Charles-Axel Dein",
author_email="charles@uber.com",
license="MIT",
tests_require=['pytest'],
cmdclass={'test': PyTest},
url="https://github.com/uber/charlatan",
packages=["charlatan"],
keywords=["tests", "fixtures", "database"],
description="Efficiently manage and install data fixtures",
long_description=read_long_description(),
install_requires=["PyYAML>=3.10", "pytz"],
zip_safe=False,
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries :: Python Modules"
]
)