forked from Tset-Noitamotua/DateTime
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (49 loc) · 1.9 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
# -*- coding: utf-8 -*-
from io import open # required for Python 2
from os.path import abspath, dirname, join
from setuptools import find_packages, setup
CURDIR = dirname(abspath(__file__))
classifiers = """
Development Status :: 2 - Pre-Alpha
License :: OSI Approved :: Apache Software License
Operating System :: POSIX
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.6
Topic :: Software Development :: Testing
Topic :: Software Development :: Quality Assurance
Framework :: Robot Framework
Framework :: Robot Framework :: Library
Intended Audience :: Developers
""".strip().splitlines()
curdir = dirname(abspath(__file__))
with open(join(curdir, "src", "DateTimeTZ", "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 = "robotframework-datetime-tz",
version = version,
description = "Robot Framework library for date/time with locales and time zones",
long_description = readme,
long_description_content_type="text/markdown",
author = "Tset Noitamotua",
author_email = "[email protected]",
url = "https://github.com/testautomation/DateTimeTZ",
license = "Apache License 2.0",
keywords = "robotframework test automation rpa library date time locales time-zones",
classifiers = classifiers,
install_requires = requirements,
zip_safe = False,
package_dir = {"": "src"},
packages = find_packages("src"),
)