-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
47 lines (40 loc) · 1.57 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
import re
from codecs import open # To use a consistent encoding
from os import path
from setuptools import find_packages, setup
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
def get_version():
with open('pylogging/__init__.py') as version_file:
return re.search(r"""__version__\s+=\s+(['"])(?P<version>.+?)\1""",
version_file.read()).group('version')
setup(name='pylogging',
version=get_version(),
description='File logging for Python',
long_description=long_description,
author='Ankur Srivastava',
author_email='[email protected]',
url='https://github.com/ansrivas/pylogging',
download_url='https://github.com/ansrivas/pylogging/tarball/{0}'.format(get_version()),
include_package_data=True,
license='MIT',
zip_safe=False,
install_requires=['future', 'requests-futures', 'ujson==5.5.0', 'graypy==2.1.0'],
extras_require={
'dev': [
'pytest',
'pytest-pep8',
'pytest-cov',
'python-language-server[all]'
]
},
classifiers=[
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6", ],
packages=find_packages())