Metadata-Version: 2.1
Name: metzctl
Version: 1.0.0
Summary: Remote control for Metz televisions
Home-page: https://github.com/kaoh/metzctl
Author: Karsten Ohme
Author-email: k_o_@users.sourceforge.net
License: LGPLv3
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Requires-Dist: getmac
Requires-Dist: wakeonlan

# Summary

Metz® television remote control library

# Installation

    pip install metzctl

# Usage

~~~python
from metzctl import MetzRemote
from metzctl.remote import TvRemoteCommandException
import logging

try:
    remote = MetzRemote("192.168.178.44", debug=True)
    remote.volume_up()
except TvRemoteCommandException:
    logging.error("Error: Remote command failed")
except OSError as e:
    logging.exception("Error: %s", str(e))
~~~

See [command Line client](metzctl/__main__.py) for programing examples.

# Development

## Local Installation

    pip install .

will take the `setup.py` and install it.

## Increment Version

Requirement:

~~~
pip install bumpversion
~~~

Minor increment:

~~~
bumpversion --current-version 1.0.0 minor setup.py metzctl/__init__.py
~~~

Major increment:

~~~
bumpversion --current-version 1.1.9 major setup.py metzctl/__init__.py
~~~

Tag + push tag:

~~~
git tag 1.0.1
git push origin 1.0.1
~~~
## Deploy

~~~
pip install twine
pip install wheel
~~~

To create a source archive and a wheel for your package:

~~~
python setup.py sdist bdist_wheel
~~~

~~~
cd dist
tar tzf metzctl-<version>.tar.gz
# check the contents
cd ..
twine check dist/*
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
~~~

Publish it to PyPI:

~~~
twine upload dist/*
~~~


