Skip to content

Commit

Permalink
Ticked up version and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
kplindegaard committed Sep 7, 2019
1 parent ba9dcc5 commit ef05143
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
Notable changes to the smbus2 project are recorded here.

## [Unreleased]
- No unreleased features.

## [0.3.0] - 2019-09-07
### Added
- Missing SMBus commands added: `process_call`, `write_block_data`, `read_block_data`, `block_process_call`.
Note that the latter two are normally not supported by pure i2c-devices.
- SMBus.__init__(), SMBus.open(): `bus` can be a file path as well (issue #17).
- Added enter/exit handler to `SMBus` class. `SMBusWrapper` is not considered deprecated.
- Added enter/exit handler to `SMBus` class.
- Expose enumeration of i2c funcs. Previously, smbus.funcs was defined, but its flags were not exported. All flags moved into the `I2cFunc` class and exported that.
- Added convenience features making the `i2c_msg` class easier to work with.

### Deprecation warning
- The `SMBusWrapper` class is now considered deprecated. Please replace with `SMBus`.

### Changed
- Removed `__slots__` from `i2c_msg` class.
- Whole `i2c_msg_iter` class replaced by a simple generator function with same functionality
Expand Down Expand Up @@ -51,7 +57,8 @@ Notable changes to the smbus2 project are recorded here.
First published version.


[Unreleased]: https://github.com/kplindegaard/smbus2/compare/0.2.3...HEAD
[Unreleased]: https://github.com/kplindegaard/smbus2/compare/0.3.0...HEAD
[0.3.0]: https://github.com/kplindegaard/smbus2/compare/0.2.3...0.3.0
[0.2.3]: https://github.com/kplindegaard/smbus2/compare/0.2.2...0.2.3
[0.2.2]: https://github.com/kplindegaard/smbus2/compare/0.2.1...0.2.2
[0.2.1]: https://github.com/kplindegaard/smbus2/compare/0.2.0...0.2.1
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ A drop-in replacement for smbus-cffi/smbus-python in pure Python

[![Build Status](https://travis-ci.org/kplindegaard/smbus2.svg?branch=master)](https://travis-ci.org/kplindegaard/smbus2)
[![Documentation Status](https://readthedocs.org/projects/smbus2/badge/?version=latest)](http://smbus2.readthedocs.io/en/latest/?badge=latest)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/smbus2)](https://pypi.org/project/smbus2/)

# Introduction

Expand Down
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ A drop-in replacement for smbus-cffi/smbus-python in pure Python
:target: http://smbus2.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://img.shields.io/pypi/dm/smbus2?label=PyPI%20Downloads

Introduction
============

Expand Down
2 changes: 1 addition & 1 deletion smbus2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

from .smbus2 import SMBus, SMBusWrapper, i2c_msg, I2cFunc # noqa: F401

__version__ = "0.2.2"
__version__ = "0.3.0"

0 comments on commit ef05143

Please sign in to comment.