Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
doudz committed Jan 17, 2019
0 parents commit ce688bc
Show file tree
Hide file tree
Showing 10 changed files with 161 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[run]
source = zigpy_zigate
75 changes: 75 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
coverage.xml
*,cover
.pytest_cache/

# Translations
*.mo
*.pot

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv
.python-version

# dotenv
.env

# virtualenv
.venv/
venv/
ENV/

# Editor temp files
.*.swp

# Visual Studio Code
.vscode
/.project
/.pydevproject
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: python
matrix:
fast_finish: true
include:
- python: "3.4"
env: TOXENV=lint
- python: "3.5"
env: TOXENV=lint
- python: "3.5"
env: TOXENV=py35
- python: "3.6"
env: TOXENV=py36
install: pip install -U setuptools tox coveralls
script: tox
after_success: coveralls
15 changes: 15 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
zigpy-zigate
Copyright (C) 2018 Sébastien RAMAGE

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# zigpy-zigate

[![Build Status](https://travis-ci.org/doudz/zigpy-zigate.svg?branch=master)](https://travis-ci.org/doudz/zigpy-zigate)
[![Coverage](https://coveralls.io/repos/github/doudz/zigpy-zigate/badge.svg?branch=master)](https://coveralls.io/github/doudz/zigpy-zigate?branch=master)

[zigpy-zigate](https://github.com/doudz/zigpy-zigate) is a Python 3 implementation for the [Zigpy](https://github.com/zigpy/) project to implement [ZiGate](https://www.zigate.fr/) based [Zigbee](https://www.zigbee.org) radio devices.

20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""Setup module for zigpy-zigate"""

from setuptools import find_packages, setup

setup(
name="zigpy-zigate",
version="0.0.1",
description="A library which communicates with ZiGate radios for zigpy",
url="http://github.com/doudz/zigpy-zigate",
author="Sébastien RAMAGE",
author_email="[email protected]",
license="GPL-3.0",
packages=find_packages(exclude=['*.tests']),
install_requires=[
'zigate',
],
tests_require=[
'pytest',
],
)
27 changes: 27 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py34, py35, py36, py37, lint
skip_missing_interpreters = True

[testenv]
setenv = PYTHONPATH = {toxinidir}
install_command = pip install --process-dependency-links {opts} {packages}
commands = py.test --cov --cov-report=
deps =
coveralls
pytest
pytest-cov
pytest-asyncio

[testenv:lint]
basepython = python3
deps = flake8
commands = flake8

[flake8]
ignore = E501
max-complexity = 16
Empty file added zigpy_zigate/__init__.py
Empty file.
Empty file added zigpy_zigate/zigbee/__init__.py
Empty file.
Empty file.

0 comments on commit ce688bc

Please sign in to comment.