-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
67 lines (54 loc) · 1.57 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
'''
Handles packaging, distribution, and testing.
'''
from sys import exit
from subprocess import call
from setuptools import Command, find_packages, setup
class BaseCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
class TestCommand(BaseCommand):
description = 'run tests'
def run(self):
exit(call(['py.test', '--quiet']))
class ReleaseCommand(BaseCommand):
description = 'Cut a new PyPI release.'
def run(self):
call(['rm', '-rf', 'build', 'dist'])
ret = call(['python', 'setup.py', 'sdist', 'bdist_wheel', '--universal', 'upload'])
exit(ret)
setup(
# Basic package information.
name = 'scrubby',
version = '0.1.13',
packages = find_packages(exclude=['*.tests', '*.tests.*', 'tests.*', 'tests']),
# Packaging options.
zip_safe = False,
include_package_data = True,
platforms='any',
entry_points={
'console_scripts': [
'scrubby = scrubby.cli:main',
],
},
# Package dependencies.
install_requires = ['pyyaml==3.12'],
extras_require = {
'test': ['pytest', 'pytest-cov'],
},
cmdclass = {
'test': TestCommand,
'release': ReleaseCommand,
},
# Metadata for PyPI.
author = 'Robin Orheden',
author_email = 'orhedenr@gmail.com',
license = 'LICENSE.md',
url = 'http://github.com/typerandom/scrubby',
keywords = 'data scrubbing',
description = 'Let Scrubby clean your datasource.',
long_description = open('README.md').read()
)