Skip to content
Snippets Groups Projects
Commit 59be4c0b authored by nimrod's avatar nimrod
Browse files

- Added gitignore file.

- Added fabfile.
- Ran setup.py through yapf.
- Bumped minor release version.
parent 0266087e
Branches
No related tags found
No related merge requests found
~*
*~
*.sw[op]
*.py[cod]
.DS_Store
__pycache__/
.vagrant/
vendor/
Thumbs.db
*.retry
.svn/
.sass-cache/
*.log
a.out
node-modules/
nbproject/
*.ipynb
.idea/
*.egg-info/
*.o
.classpath
.cache/
bower_components/
*.class
*.jar
secring.*
.*.kate-swp
.swp.*
.directory
.Trash-*
build/
dist/
0.1.0 0.2.0
\ No newline at end of file \ No newline at end of file
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from fabric.api import (local, task, sudo, env, settings)
env.use_ssh_config = True
@task
def build():
'''Build wheel.'''
local('''python setup.py sdist bdist_wheel''')
@task
def clean():
'''Clean.'''
local('''rm -rf *.pyc check_mysql_slave.egg-info build dist''')
@task
def upload():
build()
local('''twine upload -s dist/*''')
#!/usr/bin/env python #!/usr/bin/env python
from setuptools import setup, find_packages from setuptools import setup, find_packages
setup( setup(name='check_mysql_slave',
name='check_mysql_slave',
version=open('VERSION', 'r').read(), version=open('VERSION', 'r').read(),
description='''Check MySQL seconds behind master for Nagios-like description='''Check MySQL seconds behind master for Nagios-like
monitoring.''', monitoring.''',
...@@ -12,11 +11,10 @@ setup( ...@@ -12,11 +11,10 @@ setup(
author_email='nimrod@shore.co.il', author_email='nimrod@shore.co.il',
license='MIT', license='MIT',
classifiers=[ classifiers=[
'Development status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Intended Audience :: System Administrators', 'Intended Audience :: System Administrators',
'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2', 'Topic :: Utilities',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License' 'License :: OSI Approved :: MIT License'
], ],
keywords='nagios mysql slave replication monitoring', keywords='nagios mysql slave replication monitoring',
...@@ -24,5 +22,6 @@ setup( ...@@ -24,5 +22,6 @@ setup(
install_requires=['MySQL-python'], install_requires=['MySQL-python'],
entry_points={ entry_points={
'console_scripts': [ 'console_scripts': [
'check_mysql_slave=check_mysql_slave:main'], }, 'check_mysql_slave=check_mysql_slave:main'
) ],
}, )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment