-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·61 lines (56 loc) · 2.02 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·61 lines (56 loc) · 2.02 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 -*-
# Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved
import sys
import os
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = ['--junitxml=%s/tests.xml' % os.getcwd()]
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.test_args)
sys.exit(errno)
# Parameters for build
params = {
'name': 'tmpcleaner',
'version': '1.0',
'packages': [
'tmpcleaner',
'tmpcleaner.logger'
],
'scripts': [
'bin/tmpcleaner.py',
],
'url': 'https://github.com/gooddata/tmpcleaner',
'download_url': 'https://github.com/gooddata/tmpcleaner',
'license': 'BSD',
'author': 'GoodData Corporation',
'author_email': 'python@gooddata.com',
'maintainer' : 'Filip Pytloun',
'maintainer_email' : 'filip@pytloun.cz',
'description': 'Smart Temp Cleaner',
'long_description': '''Tmpcleaner is simply advanced temp cleaner with statistical capabilities.
It passes given structure only once, groups directories/files by given definition, applies different cleanup rules by each group and print final statistics.''',
'tests_require' : ['pytest'],
'cmdclass' : {'test': PyTest},
'requires': ['yaml', 'argparse'],
'classifiers' : [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: POSIX',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: System :: Monitoring',
],
'platforms' : ['POSIX'],
}
setup(**params)