-
Notifications
You must be signed in to change notification settings - Fork 232
/
setup.py
86 lines (74 loc) · 2.26 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2014 Dean Jackson <deanishe@deanishe.net>
#
# MIT Licence. See http://opensource.org/licenses/MIT
#
# Created on 2014-08-17
#
"""Alfred-Workflow library for building Alfred 3/4 workflows."""
import os
from os.path import dirname, join
import subprocess
from setuptools import setup
from setuptools.command.test import test as TestCommand
def read(fname):
"""Return contents of file `fname` in this directory."""
return open(join(dirname(__file__), fname)).read()
class PyTestCommand(TestCommand):
"""Enable running tests with `python setup.py test`."""
def finalize_options(self):
"""Implement TestCommand."""
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
"""Implement TestCommand."""
subprocess.call(
['/bin/bash', join(dirname(__file__), 'run-tests.sh')])
version = read('workflow/version')
long_description = read('README_PYPI.rst')
name = 'Alfred-Workflow'
author = 'Dean Jackson'
author_email = 'deanishe@deanishe.net'
url = 'http://www.deanishe.net/alfred-workflow/'
description = 'Full-featured helper library for writing Alfred 2/3/4 workflows'
keywords = 'alfred workflow alfred4'
packages = ['workflow']
package_data = {'workflow': ['version', 'Notify.tgz']}
classifiers = [
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS :: MacOS X',
'Intended Audience :: Developers',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
]
tests_require = [
'coverage',
'pytest',
'pytest_cov',
'pytest_httpbin',
'pytest_localserver',
]
zip_safe = False
setup(
name=name,
version=version,
description=description,
long_description=long_description,
keywords=keywords,
author=author,
author_email=author_email,
url=url,
packages=packages,
package_data=package_data,
include_package_data=True,
classifiers=classifiers,
tests_require=tests_require,
cmdclass={'test': PyTestCommand},
zip_safe=zip_safe,
)