Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Feb 11, 2021
2 parents 77856f9 + f2f9247 commit 1fec093
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Tests

on: [push]

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
2 changes: 1 addition & 1 deletion pyartnet/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.7.0'
__version__ = '0.7.1'
3 changes: 2 additions & 1 deletion pyartnet/artnet_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ def update(self):

if log.isEnabledFor(logging.DEBUG):
self.__log_artnet_frame(packet)
return None

return None

def __log_artnet_frame(self, p):
"Log Artnet Frame"
Expand Down
Empty file added requirements.txt
Empty file.
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import typing
from pathlib import Path

import setuptools # type: ignore

Expand All @@ -17,16 +18,21 @@ def load_version() -> str:
print(f'Version: {__version__}')
print('')

with open("readme.md", "r") as fh:
long_description = fh.read()
# When we run tox tests we don't have these files available so we skip them
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
with readme.open("r", encoding='utf-8') as fh:
long_description = fh.read()


setuptools.setup(
name="pyartnet",
version=__version__,
author="spaceman_spiff",
# author_email="",
description="Python wrappers for the Art-Net protocol to send DMX over Ethernet",
keywords = 'DMX, Art-Net, ArtNet',
keywords='DMX, Art-Net, ArtNet',
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/spacemanspiff2007/PyArtNet",
Expand Down
34 changes: 34 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist =
py37
py38
py39
flake

[gh-actions]
python =
3.7: py37
3.8: py38, flake
3.9: py39

[testenv]
deps =
pytest
pytest-asyncio
asynctest
-r{toxinidir}/requirements.txt

commands =
python -m pytest

[testenv:flake]
deps =
{[testenv]deps}
flake8
# pydocstyle
commands =
flake8 -v
# pydocstyle


0 comments on commit 1fec093

Please sign in to comment.