forked from asyrjasalo/RESTinstance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
61 lines (56 loc) · 1.86 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
57
58
59
60
61
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from io import open # required for Python 2
from os.path import abspath, dirname, join
from setuptools import find_packages, setup
PROJECT_NAME = "RESTinstance"
PACKAGE_NAME = "REST"
CLASSIFIERS = """
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Framework :: Robot Framework
Framework :: Robot Framework :: Library
Topic :: Internet
Topic :: Internet :: WWW/HTTP
Topic :: Software Development :: Testing
Topic :: Software Development :: Libraries :: Python Modules
""".strip().splitlines()
CURDIR = dirname(abspath(__file__))
with open(
join(CURDIR, "src", PACKAGE_NAME, "version.py"), encoding="utf-8"
) as f:
for line in f:
if line.startswith("__version__"):
VERSION = line.strip().split("=")[1].strip(" '\"")
break
else:
VERSION = "0.0.1"
with open(join(CURDIR, "README.md"), encoding="utf-8") as f:
README = f.read()
with open(join(CURDIR, "requirements.txt"), encoding="utf-8") as f:
REQUIREMENTS = f.read()
setup(
name=PROJECT_NAME,
version=VERSION,
author="Anssi Syrjäsalo",
author_email="[email protected]",
url="https://github.com/asyrjasalo/RESTinstance",
download_url="https://pypi.python.org/pypi/RESTinstance",
license="Apache License 2.0",
description="Robot Framework library for RESTful JSON APIs",
long_description=README,
long_description_content_type="text/markdown",
keywords="robotframework library http json api",
platforms="any",
classifiers=CLASSIFIERS,
install_requires=REQUIREMENTS,
package_dir={"": "src"},
packages=find_packages("src"),
zip_safe=False,
)