-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (42 loc) · 1.4 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
import os
from setuptools import setup, find_packages
EXCLUDE = ['test', 'test.core', 'test.extensions', 'benchmarks', ]
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
return f.read()
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'dothttp', '__version__.py'), 'r') as f:
exec(f.read(), about)
# windows_req = "python-magic-bin==0.4.14"
def requirements():
reqs = [req.split(';')[0] for req in read('requirements.txt').split('\n')]
# if sys.platform == 'win32':
# return reqs.append(windows_req)
return reqs
setup(
name="dothttp_req",
author="prasanth",
author_email="[email protected]",
description=("DotHttp recommended tool for making http requests."),
license="MIT",
package_data={
"": ["*.tx", "*.md","*.js"]
},
include_package_data=True,
entry_points={
'console_scripts': ['dothttp=dothttp.__main__:main'],
},
options={"bdist_wheel": {"universal": False}},
packages=find_packages(exclude=EXCLUDE),
install_requires=requirements(),
extras_require={},
long_description=read('README.md'),
long_description_content_type=('text/markdown'),
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
python_requires='>=3.8',
version=about['__version__'],
)