forked from yograterol/zoort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·58 lines (50 loc) · 1.66 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
# Copyright (C) 2014 Mejorando.la - www.mejorando.la
# Yohan Graterol - <y@mejorando.la>
import sys
import os
import subprocess
from setuptools import setup
data_files = [('etc', ['etc/myapp.cfg'])]
PUBLISH_CMD = "python setup.py register sdist upload"
TEST_PUBLISH_CMD = 'python setup.py register -r test sdist upload -r test'
if 'publish' in sys.argv:
status = subprocess.call(PUBLISH_CMD, shell=True)
sys.exit(status)
if 'publish_test' in sys.argv:
status = subprocess.call(TEST_PUBLISH_CMD, shell=True)
sys.exit()
def read(fname):
with open(fname) as fp:
content = fp.read()
return content
setup(
name='zoort',
version="0.1.8",
description='A Python script for automatic MongoDB backups',
long_description=read("README.rst"),
author='Yohan Graterol',
author_email='y@mejorando.la | yograterol@fedoraproject.org',
url='https://github.com/yograterol/zoort',
install_requires=['docopt', 'fabric', 'boto', 'requests',
'python-dateutil', 'sqlalchemy', 'dropbox',
'python-swiftclient'],
license=read("LICENSE"),
zip_safe=False,
keywords='zoort, mongodb, backups',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
"Programming Language :: Python :: 2",
'Programming Language :: Python :: 2.7',
],
py_modules=["zoort"],
entry_points={
'console_scripts': [
"zoort = zoort:main"
]
},
include_package_data=True,
data_files=[('/etc/zoort', ['etc/config.json', ])]
)