-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·61 lines (52 loc) · 1.61 KB
/
setup.py
File metadata and controls
executable file
·61 lines (52 loc) · 1.61 KB
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 -*-
"""The setup script."""
import os
import platform
try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements
from setuptools import setup, find_packages
PY2 = platform.python_version_tuple()[0] == '2'
readme_path = 'README.md'
if os.path.isfile('README.rst'):
readme_path = 'README.rst'
with open(readme_path) as readme_file:
readme = readme_file.read()
install_reqs = parse_requirements('requirements.txt', session='')
# reqs is a list of requirement
requirements = [str(ir.req) for ir in install_reqs]
setup_requirements = [
# 'pytest-runner',
]
setup(
name='local-http-cache',
version='0.0.2',
description="Tool that helps you setting up a local proxy to cache static files",
long_description=readme,
author="Renjie Cai",
author_email='revol.cai@gmail.com',
url='https://github.com/Revolution1/LocalHTTPCache',
packages=['lhc'],
entry_points={
'console_scripts': [
'lhc=lhc.lhc:main'
]
},
include_package_data=True,
install_requires=requirements,
license="Apache Software License 2.0",
python_requires='>=2.7, <3.0',
zip_safe=False,
keywords='LocalHTTPCache',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7'
],
test_suite='tests',
setup_requires=setup_requirements,
)