forked from arrow-py/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (47 loc) · 1.69 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
# -*- coding: utf-8 -*-
import re
from setuptools import setup
with open("README.rst", "r") as f:
readme = f.read()
with open("arrow/__init__.py", "r") as f:
init = f.read()
def get_version():
pattern = r'{}\W*=\W*"([^"]+)"'.format("__version__")
strval = re.findall(pattern, init)[0]
return strval
setup(
name="arrow",
version=get_version(),
description="Better dates and times for Python",
long_description=readme,
long_description_content_type="text/x-rst",
url="https://arrow.readthedocs.io/en/latest/",
author="Chris Smith",
author_email="[email protected]",
license="Apache 2.0",
packages=["arrow"],
zip_safe=False,
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
install_requires=["python-dateutil"],
extras_require={":python_version=='2.7'": ["backports.functools_lru_cache>=1.2.1"]},
test_suite="tests",
tests_require=["chai"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
],
keywords="arrow date time datetime",
project_urls={
"Repository": "https://github.com/crsmithdev/arrow",
"Bug Reports": "https://github.com/crsmithdev/arrow/issues",
},
)