Loading .gitignore 0 → 100644 +32 −0 Original line number Diff line number Diff line ~* *~ *.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/ VERSION +1 −1 Original line number Diff line number Diff line 0.1.0 No newline at end of file 0.2.0 No newline at end of file fabfile.py 0 → 100644 +23 −0 Original line number Diff line number Diff line 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/*''') setup.py +23 −24 Original line number Diff line number Diff line #!/usr/bin/env python from setuptools import setup, find_packages setup( name='check_mysql_slave', setup(name='check_mysql_slave', version=open('VERSION', 'r').read(), description='''Check MySQL seconds behind master for Nagios-like monitoring.''', Loading @@ -12,11 +11,10 @@ setup( author_email='nimrod@shore.co.il', license='MIT', classifiers=[ 'Development status :: 4 - Beta', 'Development Status :: 4 - Beta', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 2', 'Topic :: Utilities', 'Programming Language :: Python :: 2', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License' ], keywords='nagios mysql slave replication monitoring', Loading @@ -24,5 +22,6 @@ setup( install_requires=['MySQL-python'], entry_points={ 'console_scripts': [ 'check_mysql_slave=check_mysql_slave:main'], }, ) 'check_mysql_slave=check_mysql_slave:main' ], }, ) Loading
.gitignore 0 → 100644 +32 −0 Original line number Diff line number Diff line ~* *~ *.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/
VERSION +1 −1 Original line number Diff line number Diff line 0.1.0 No newline at end of file 0.2.0 No newline at end of file
fabfile.py 0 → 100644 +23 −0 Original line number Diff line number Diff line 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/*''')
setup.py +23 −24 Original line number Diff line number Diff line #!/usr/bin/env python from setuptools import setup, find_packages setup( name='check_mysql_slave', setup(name='check_mysql_slave', version=open('VERSION', 'r').read(), description='''Check MySQL seconds behind master for Nagios-like monitoring.''', Loading @@ -12,11 +11,10 @@ setup( author_email='nimrod@shore.co.il', license='MIT', classifiers=[ 'Development status :: 4 - Beta', 'Development Status :: 4 - Beta', 'Intended Audience :: System Administrators', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 2', 'Topic :: Utilities', 'Programming Language :: Python :: 2', 'Topic :: Utilities', 'License :: OSI Approved :: MIT License' ], keywords='nagios mysql slave replication monitoring', Loading @@ -24,5 +22,6 @@ setup( install_requires=['MySQL-python'], entry_points={ 'console_scripts': [ 'check_mysql_slave=check_mysql_slave:main'], }, ) 'check_mysql_slave=check_mysql_slave:main' ], }, )