Skip to content

Commit

Permalink
Changing version
Browse files Browse the repository at this point in the history
  • Loading branch information
washad committed Jun 22, 2019
1 parent 8e203bb commit 6678312
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 11 deletions.
3 changes: 2 additions & 1 deletion build/lib/pyrediseasyio/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@


class SingleIO:
def __init__(self, name: str, addr: str, default: object, units: str = None, reader: AbstractReaderWriter = None):
def __init__(self, name: str, addr: str = None, default: object = None,
units: str = None, reader: AbstractReaderWriter = None):
self.name = name
self.addr = addr
self._reader_writer = reader
Expand Down
2 changes: 1 addition & 1 deletion build/lib/pyrediseasyio/io/boolean_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


class BooleanIO(SingleIO):
def __init__(self, name: str, addr: str, default: bool = False, units: str = None,
def __init__(self, name: str, addr: str = None, default: bool = False, units: str = None,
reader: AbstractReaderWriter = None):
super().__init__(name, addr, default, units, reader)

Expand Down
2 changes: 1 addition & 1 deletion build/lib/pyrediseasyio/io/float_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


class FloatIO(SingleIO):
def __init__(self, name: str, addr: str, default: float = 0, units: str = None, reader: AbstractReaderWriter = None):
def __init__(self, name: str, addr: str = None, default: float = 0, units: str = None, reader: AbstractReaderWriter = None):
super().__init__(name, addr, default, units, reader)

@staticmethod
Expand Down
3 changes: 2 additions & 1 deletion build/lib/pyrediseasyio/io/integer_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@


class IntIO(SingleIO):
def __init__(self, name: str, addr: str, default: int = 0, units: str = None, reader: AbstractReaderWriter = None):
def __init__(self, name: str, addr: str = None,
default: int = 0, units: str = None, reader: AbstractReaderWriter = None):
super().__init__(name, addr, default, units, reader)

@staticmethod
Expand Down
2 changes: 2 additions & 0 deletions build/lib/pyrediseasyio/io/io_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def __init__(self, host='localhost', port=6379, db=0,
continue
attr._reader_writer = self
self.members.append(name)
if attr.addr is None:
attr.addr = name
if delete_keys_on_startup:
self.delete_key(attr.addr)
if set_defaults_on_startup:
Expand Down
3 changes: 2 additions & 1 deletion build/lib/pyrediseasyio/io/string_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@


class StringIO(SingleIO):
def __init__(self, name: str, addr: str, default: str = '', units: str = None, reader: AbstractReaderWriter = None):
def __init__(self, name: str, addr: str = None,
default: str = '', units: str = None, reader: AbstractReaderWriter = None):
super().__init__(name, addr, default, units, reader)

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions build/lib/tests/test_html_io_group_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


class TestGroup(IOGroup):
Bool1 = BooleanIO("Boolean 1", "Bool1", units="On/Off")
Float1 = FloatIO("Float 1", "Float1", default=1.23, units="furlongs")
Bool1 = BooleanIO("Boolean 1", units="On/Off")
Float1 = FloatIO("Float 1", default=1.23, units="furlongs")


test_group = TestGroup()
Expand Down
4 changes: 2 additions & 2 deletions build/lib/tests/test_read_write.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from pyrediseasyio.io.io_group import IOGroup
from pyrediseasyio.io.base import BooleanIO, IntIO, FloatIO, StringIO
from pyrediseasyio import BooleanIO, IntIO, FloatIO, StringIO
from assertpy import assert_that


Expand Down Expand Up @@ -29,7 +29,7 @@ def __init__(self):

class TestGroup3(IOGroup):
def __init__(self, db=2):
self.Bool1 = BooleanIO("Boolean 1", "Bool1", False)
self.Bool1 = BooleanIO("Boolean 1", default=False)
self.Bool2 = BooleanIO("Boolean 2", "Bool2", True)
self.Int1 = IntIO("Integer 1", "Int1")
self.Int2 = IntIO("Integer 2", "Int2", default=34)
Expand Down
Binary file removed dist/pyrediseasyio-0.0.15-py3-none-any.whl
Binary file not shown.
Binary file removed dist/pyrediseasyio-0.0.15.tar.gz
Binary file not shown.
Binary file added dist/pyrediseasyio-0.0.16-py3-none-any.whl
Binary file not shown.
Binary file added dist/pyrediseasyio-0.0.16.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion pyrediseasyio.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyrediseasyio
Version: 0.0.15
Version: 0.0.16
Summary: A set of tools for simplifying reading and writing of single values to/from Redis.
Home-page: https://github.com/washad/PyRedisEasyIO
Author: Steve Jackson
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyrediseasyio",
version="0.0.15",
version="0.0.16",
author="Steve Jackson",
author_email="washad@gmail.com",
description="A set of tools for simplifying reading and writing of single values to/from Redis.",
Expand Down

0 comments on commit 6678312

Please sign in to comment.