diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2c6ecf834279dfb8bd0f94a23759f0116135c98b --- /dev/null +++ b/.gitignore @@ -0,0 +1,32 @@ +~* +*~ +*.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/ diff --git a/VERSION b/VERSION index 6c6aa7cb0918dc7a1cfa3635fb7f8792ac4cb218..341cf11faf9a29504168de4e54beaad182c5adc5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 \ No newline at end of file +0.2.0 \ No newline at end of file diff --git a/fabfile.py b/fabfile.py new file mode 100644 index 0000000000000000000000000000000000000000..1b3669f7777ae46adab1bdcaa951179f12acde98 --- /dev/null +++ b/fabfile.py @@ -0,0 +1,23 @@ +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/*''') diff --git a/setup.py b/setup.py index c14069651857ce4f7f82b45eb20c02c7339046cd..51c24cea8d6e22a89f75e4c038da00d34cfd4f0d 100644 --- a/setup.py +++ b/setup.py @@ -1,28 +1,27 @@ #!/usr/bin/env python from setuptools import setup, find_packages -setup( - name='check_mysql_slave', - version=open('VERSION', 'r').read(), - description='''Check MySQL seconds behind master for Nagios-like +setup(name='check_mysql_slave', + version=open('VERSION', 'r').read(), + description='''Check MySQL seconds behind master for Nagios-like monitoring.''', - long_description=open('README.rst', 'r').read(), - url='https://www.shore.co.il/git/check_mysql_slave', - author='Nimrod Adar', - author_email='nimrod@shore.co.il', - license='MIT', - classifiers=[ - 'Development status :: 4 - Beta', - 'Intended Audience :: System Administrators', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 2', - 'Topic :: Utilities', - 'License :: OSI Approved :: MIT License' - ], - keywords='nagios mysql slave replication monitoring', - packages=find_packages(), - install_requires=['MySQL-python'], - entry_points={ - 'console_scripts': [ - 'check_mysql_slave=check_mysql_slave:main'], }, -) + long_description=open('README.rst', 'r').read(), + url='https://www.shore.co.il/git/check_mysql_slave', + author='Nimrod Adar', + author_email='nimrod@shore.co.il', + license='MIT', + classifiers=[ + 'Development Status :: 4 - Beta', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 2', 'Topic :: Utilities', + 'License :: OSI Approved :: MIT License' + ], + keywords='nagios mysql slave replication monitoring', + packages=find_packages(), + install_requires=['MySQL-python'], + entry_points={ + 'console_scripts': [ + 'check_mysql_slave=check_mysql_slave:main' + ], + }, )