forked from MasterSergius/acachecontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (57 loc) · 2.16 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
62
63
64
"""This setup is based on https://blog.ionelmc.ro/2014/05/25/python-packaging/"""
from __future__ import absolute_import
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import realpath
from os.path import splitext
from setuptools import find_packages
from setuptools import setup
def read_version():
"""Read version from package init file (__init__.py)"""
full_path = join(realpath(dirname((__file__))),
'src/acachecontrol/__init__.py')
with open(full_path) as f:
for line in f:
if '__version__' in line:
return line.split('=')[1].strip().strip("'")
setup(
name='acachecontrol',
version=read_version(),
license='Apache License 2.0',
description='Cache-Control for aiohttp',
author='Serhii Buniak',
author_email='master.sergius@gmail.com',
url='https://github.com/MasterSergius/acachecontrol',
packages=find_packages('src'),
package_dir={'': 'src'},
py_modules=[splitext(basename(path))[0] for path in glob('src/*.py')],
include_package_data=True,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Unix',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Software Development :: Libraries :: Python Modules',
],
project_urls={
'Changelog': 'https://github.com/MasterSerius/acachecontrol/blob/master/CHANGELOG.md',
'Issue Tracker': 'https://github.com/MasterSergius/acachecontrol/issues',
},
python_requires='>=3.6',
install_requires=[
'aiohttp',
'CacheControl'
]
)