From 3b6432194f4a8dee3d254443a77b174dc6ee73fd Mon Sep 17 00:00:00 2001 From: Timo Furrer Date: Mon, 25 Jan 2021 14:02:36 +0100 Subject: [PATCH] release: v2.0.0 --- .github/workflows/ci.yml | 2 +- CHANGELOG.rst | 36 +++++++++++++++++++++++++++++++++++ changelog/0.feature | 18 ------------------ changelog/52.feature | 1 - changelog/58.removal | 1 - changelog/74.removal | 1 - changelog/86.feature | 1 - setup.cfg | 6 +++--- src/w1thermsensor/__init__.py | 2 +- 9 files changed, 41 insertions(+), 27 deletions(-) create mode 100644 CHANGELOG.rst delete mode 100644 changelog/0.feature delete mode 100644 changelog/52.feature delete mode 100644 changelog/58.removal delete mode 100644 changelog/74.removal delete mode 100644 changelog/86.feature diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b226a84..8bd7691 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - name: Static Code Analysis with mypy run: | python -m pip install mypy - python -m mypy src/ tests/ + python -m mypy --ignore-missing-imports src/ tests/ - name: Build Python Package run: | python -m pip install '.[tests]' diff --git a/CHANGELOG.rst b/CHANGELOG.rst new file mode 100644 index 0000000..95e119c --- /dev/null +++ b/CHANGELOG.rst @@ -0,0 +1,36 @@ +w1thermsensor 2.0.0 (2021-01-25) +================================ + +Features +-------- + +- Refacor Sensor and Unit out of W1ThermSensor class. + + The Sensors are available in the `Sensor` enum: + + .. code-block:: python + + from w1thermsensor import Sensor + + print(Sensor.DS18B20) + + + The Units are available in the `Unit` enum: + + .. code-block:: python + + from w1thermsensor import Unit + + print(Unit.DEGREES_F) (#0) + +- Add ``AsyncW1ThermSensor`` class to support asyncio interfaces. (#52) + +- added option to display resolution in cli ls command. (#86) + + +Deprecations and Removals +------------------------- + +- Drop Python 2 and Python 3.4 support. (#58) + +- Replace precision with resolution - in CLI and Python API. (#74) diff --git a/changelog/0.feature b/changelog/0.feature deleted file mode 100644 index 333de85..0000000 --- a/changelog/0.feature +++ /dev/null @@ -1,18 +0,0 @@ -Refacor Sensor and Unit out of W1ThermSensor class. - -The Sensors are available in the `Sensor` enum: - -.. code-block:: python - - from w1thermsensor import Sensor - - print(Sensor.DS18B20) - - -The Units are available in the `Unit` enum: - -.. code-block:: python - - from w1thermsensor import Unit - - print(Unit.DEGREES_F) diff --git a/changelog/52.feature b/changelog/52.feature deleted file mode 100644 index 86c824a..0000000 --- a/changelog/52.feature +++ /dev/null @@ -1 +0,0 @@ -Add ``AsyncW1ThermSensor`` class to support asyncio interfaces. diff --git a/changelog/58.removal b/changelog/58.removal deleted file mode 100644 index 98a1da8..0000000 --- a/changelog/58.removal +++ /dev/null @@ -1 +0,0 @@ -Drop Python 2 and Python 3.4 support. diff --git a/changelog/74.removal b/changelog/74.removal deleted file mode 100644 index 0a2efae..0000000 --- a/changelog/74.removal +++ /dev/null @@ -1 +0,0 @@ -Replace precision with resolution - in CLI and Python API. diff --git a/changelog/86.feature b/changelog/86.feature deleted file mode 100644 index 7055926..0000000 --- a/changelog/86.feature +++ /dev/null @@ -1 +0,0 @@ -added option to display resolution in cli ls command. diff --git a/setup.cfg b/setup.cfg index cf1b6db..f698224 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,11 +12,11 @@ ignore = E203,W503,W504,E231 [tool:pytest] testpaths = tests/ src/ -[mypy-pytest.*] +[mypy-pytest] ignore_missing_imports = True -[mypy-aiofiles.*] +[mypy-aiofiles] ignore_missing_imports = True -[mypy-boto3.*] +[mypy-boto3] ignore_missing_imports = True diff --git a/src/w1thermsensor/__init__.py b/src/w1thermsensor/__init__.py index 33a846f..edbdee5 100644 --- a/src/w1thermsensor/__init__.py +++ b/src/w1thermsensor/__init__.py @@ -10,7 +10,7 @@ __description__ = "A Python package and CLI tool to work with w1 temperature sensors like DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other devices." # noqa __license__ = "MIT" -__version__ = "2.0.0a2" +__version__ = "2.0.0" __author__ = "Timo Furrer" __author_email__ = "tuxtimo@gmail.com" __url__ = "http://github.com/timofurrer/w1thermsensor"