forked from pytest-dev/pytest-factoryboy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·56 lines (51 loc) · 1.92 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
"""pytest-factoryboy package config."""
import codecs
import os
import re
from setuptools import setup
dirname = os.path.dirname(__file__)
long_description = (
codecs.open(os.path.join(dirname, "README.rst"), encoding="utf-8").read() + "\n" +
codecs.open(os.path.join(dirname, "AUTHORS.rst"), encoding="utf-8").read() + "\n" +
codecs.open(os.path.join(dirname, "CHANGES.rst"), encoding="utf-8").read()
)
with codecs.open(os.path.join(dirname, 'pytest_factoryboy', '__init__.py'), encoding='utf-8') as fd:
VERSION = re.compile(r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
setup(
name="pytest-factoryboy",
description="Factory Boy support for pytest.",
long_description=long_description,
author="Oleg Pidsadnyi, Anatoly Bubenkov and others",
license="MIT license",
author_email="[email protected]",
url="https://github.com/pytest-dev/pytest-factoryboy",
version=VERSION,
classifiers=[
"Development Status :: 6 - Mature",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Libraries",
"Topic :: Utilities",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3"
] + [("Programming Language :: Python :: %s" % x) for x in "2.7 3.0 3.1 3.2 3.3 3.4 3.5".split()],
install_requires=[
"inflection",
"factory_boy>=2.10.0",
"pytest>=3.3.2",
],
# the following makes a plugin available to py.test
entry_points={
"pytest11": [
"pytest-factoryboy = pytest_factoryboy.plugin",
],
},
tests_require=["tox"],
packages=["pytest_factoryboy"],
include_package_data=True,
)