- Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathsetup.py
More file actions
Latest commit
38 lines (35 loc) · 1.28 KB
/
Copy pathsetup.py
File metadata and controls
38 lines (35 loc) · 1.28 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
importos
fromsetuptoolsimportsetup, find_packages
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
deffread(fname):
returnopen(os.path.join(os.path.dirname(__file__), fname)).read()
defget_version():
VERSION=fread("VERSION").strip()
build_number=os.environ.get('BUILD_NUMBER', None)
ifbuild_number:
returnVERSION+"b{}".format(build_number)
returnVERSION
setup(
name="python-testdata",
version=get_version(),
author="Arie Bro",
author_email="ariebro@gmail.com",
description="A small package that helps generate content to fill databases for tests.",
url="http://github.com/arieb/python-testdata",
license="MIT",
install_requires= [
'fake-factory == 0.3.2'
],
keywords="factory testing test unittest mongo data testdata database json elasticsearch",
packages=find_packages(),
include_package_data=True,
long_description=fread('README.md'),
classifiers=[
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"License :: OSI Approved :: MIT License",
],
)