-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
setup.py
60 lines (54 loc) · 1.54 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
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
from httpcat import __author__, __version__, __licence__, __doc__
class PyTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = [
'--verbose',
'tests.py',
]
self.test_suite = True
def run_tests(self):
import pytest
sys.exit(pytest.main(self.test_args))
setup(
name='httpcat',
description=__doc__.strip(),
long_description=open('README.md').read().strip(),
version=__version__,
author=__author__,
author_email='[email protected]',
license=__licence__,
url='https://github.com/httpie/httpcat',
download_url='https://github.com/httpie/httpcat',
py_modules=[
'httpcat',
],
entry_points={
'console_scripts': [
'httpcat = httpcat:main',
],
},
tests_require=[
'pytest',
],
cmdclass={
'test': PyTestCommand
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development',
'Topic :: System :: Networking',
'Topic :: Terminals',
'Topic :: Text Processing',
'Topic :: Utilities'
],
)