This repository has been archived by the owner on Mar 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
67 lines (61 loc) · 1.98 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
# -*- coding: utf-8 -*-
import re
import codecs
from setuptools import setup
from setuptools.command.test import test as TestCommand
class NoseTestCommand(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Run nose ensuring that argv simulates running nosetests directly
import nose
nose.run_exit(argv=['nosetests'])
setup(
name = 'xprofile',
description = 'A tool to manage and automatically apply xrandr configurations.',
version = re.search(r'''^__version__\s*=\s*["'](.*)["']''', open('xprofile/__init__.py').read(), re.M).group(1),
author = 'Nico Di Rocco',
author_email = '[email protected]',
url = 'https://github.com/nrocco/xprofile',
license = 'GPLv3',
long_description = codecs.open('README.rst', 'rb', 'utf-8').read(),
test_suite='nose.collector',
install_requires = [
'docutils>=0.12'
],
tests_require = [
'nose',
'mock',
'coverage',
],
packages = [
'xprofile'
],
entry_points = {
'console_scripts': [
'xprofile = xprofile.__main__:main'
]
},
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: X11 Applications',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Desktop Environment',
'Topic :: Utilities'
],
cmdclass = {
'test': NoseTestCommand
}
)