Skip to content

Commit 990592e

Browse files
committed
- prepare for PyPi packagin- prepare for PyPi packaging
1 parent a3f4696 commit 990592e

File tree

4 files changed

+28
-12
lines changed

4 files changed

+28
-12
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,14 @@ It builds upon the [Python EnOcean](https://github.com/kipe/enocean) library.
88

99
## Installation ##
1010

11+
enocean-mqtt is available on PyPI and can be installed using pip:
12+
- sudo pip3 install enocean-mqtt
13+
14+
Alternatively, install the latest release directly from github:
1115
- download this repository to an arbritary directory
1216
- install it using `python3 setup.py develop`
17+
18+
Afterwards, perform configuration:
1319
- adapt the `enoceanmqtt.conf.sample` file and put it to /etc/enoceanmqtt.conf
1420
- set the enocean interface port
1521
- define the MQTT broker address

enoceanmqtt/communicator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2020 embyt GmbH. See LICENSE for further details.
2+
# Author: Roman Morawek <roman.morawek@embyt.com>
3+
"""this class handles the enocean and mqtt interfaces"""
14
import logging
25
import queue
36
import numbers

enoceanmqtt/enoceanmqtt.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) 2020 embyt GmbH. See LICENSE for further details.
3+
# Author: Roman Morawek <roman.morawek@embyt.com>
4+
"""this is the main entry point, which sets up the Communicator class"""
25
import logging
36
import sys
47
import os

setup.py

100644100755
Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1+
#!/usr/bin/env python3
2+
# Copyright (c) 2020 embyt GmbH. See LICENSE for further details.
3+
# Author: Roman Morawek <roman.morawek@embyt.com>
14
"""setup module for enoceanmqtt"""
2-
3-
# prefer setuptools over distutils
4-
from setuptools import setup, find_packages
5+
import setuptools
56

67
# needed packages
78
REQUIRES = [
89
'enocean',
910
'paho-mqtt',
1011
]
1112

12-
setup(
13-
name='enoceanmqtt',
13+
with open("README.md", "r") as fh:
14+
long_description = fh.read()
15+
16+
setuptools.setup(
17+
name='enocean-mqtt',
1418
version='0.1.0',
15-
description='',
16-
url='http://romor.github.io/enocean-mqtt',
1719
author='Roman Morawek',
18-
author_email='maemo@morawek.at',
20+
author_email='roman.morawek@embyt.com',
21+
description='Receives messages from an enOcean serial interface (USB) and provides selected messages to an MQTT broker.',
22+
long_description=long_description,
23+
long_description_content_type="text/markdown",
24+
url='https://github.com/embyt/enocean-mqtt',
1925
license='GPLv3',
2026

2127
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
2228
classifiers=[
23-
'Development Status :: 3 - Alpha',
29+
'Development Status :: 4 - Beta',
2430
'Intended Audience :: Developers',
2531
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
2632
'Programming Language :: Python :: 3',
27-
'Programming Language :: Python :: 3.4',
28-
'Programming Language :: Python :: 3.5',
2933
],
3034
keywords='enOcean MQTT IoT',
31-
packages=find_packages(exclude=['contrib', 'docs', 'tests*']),
35+
packages=setuptools.find_packages(exclude=['contrib', 'docs', 'tests*']),
3236
install_requires=REQUIRES,
3337

3438
# To provide executable scripts, use entry points in preference to the

0 commit comments

Comments
 (0)