Skip to content

Commit 4c59da8

Browse files
committed
Python3 support
Since the python3 already worked, it's only a change in documentation.
1 parent 32f2335 commit 4c59da8

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

README.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Assuming that the address of your MPU-6050 is 0x68, you can read read accelerome
1919
Dependencies
2020
------------
2121

22-
You need to have the ``python-smbus`` package installed.
22+
Either the ``python-smbus`` or ``python3-smbus`` package, according to your
23+
Python version.
2324

2425
Installation
2526
------------
@@ -31,16 +32,16 @@ version installed, but this can be prone to bugs.
3132
1. install the python-smbus package
3233
::
3334

34-
sudo apt install python-smbus
35+
sudo apt install python3-smbus
3536

36-
2. Install this package from PyPi repository
37+
2a. Install this package from PyPi repository
3738
::
3839

3940
pip install mpu6050-raspberrypi
4041

4142
Or:
4243

43-
2. Clone the repository and run setup.py
44+
2b. Clone the repository and run setup.py
4445
::
4546
4647
git clone https://github.com/Tijndagamer/mpu6050.git
@@ -54,3 +55,10 @@ Please report any issues or bugs here:
5455
https://github.com/Tijndagamer/mpu6050/issues
5556

5657

58+
License
59+
-------
60+
61+
::
62+
63+
Copyright (c) 2015, 2016, 2017, 2018 Martijn (MrTijn) and contributors
64+
Licensed under the MIT License. For more information, see ``LICENSE``.

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@ def readme():
55
return f.read()
66

77
setup(name='mpu6050-raspberrypi',
8-
version='1.0.3.4',
8+
version='1.1',
99
description='A Python module for accessing the MPU-6050 digital accelerometer and gyroscope on a Raspberry Pi.',
1010
classifiers=[
1111
'License :: OSI Approved :: MIT License',
1212
'Topic :: Software Development :: Libraries',
1313
'Programming Language :: Python :: 2.7',
14+
'Programming Language :: Python :: 3',
1415
'Operating System :: POSIX :: Linux',
1516
],
1617
keywords='mpu6050 raspberry',
1718
url='https://github.com/Tijndagamer/mpu6050',
18-
author='MrTijn/Tijndagamer',
19+
author='Martijn (MrTijn)',
1920
author_email='mrtijn@riseup.net',
2021
license='MIT',
2122
packages=['mpu6050'],

0 commit comments

Comments
 (0)