Skip to content

Commit fb3cdbc

Browse files
authored
Merge pull request #180 from dlech/python3-package
Python3 package
2 parents 6f9f1f5 + 70ebb79 commit fb3cdbc

File tree

4 files changed

+22
-14
lines changed

4 files changed

+22
-14
lines changed

debian/changelog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
python-ev3dev (0.7.0~rc1) stable; urgency=medium
2+
3+
* Drop python 2.x support.
4+
* Performance improvements for reading/writing sysfs attributes.
5+
* Updates for breaking ev3dev kernel changes.
6+
7+
-- David Lechner <[email protected]> Mon, 25 Jul 2016 21:13:43 -0500
8+
19
python-ev3dev (0.6.0) stable; urgency=medium
210

311
[Ralph Hempel]

debian/control

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Maintainer: Ralph Hempel <[email protected]>
33
Section: python
44
Priority: optional
55
Standards-Version: 3.9.5
6-
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 3.4), debhelper (>= 9), dh-python
6+
Build-Depends: python3-setuptools (>= 0.6b3), python3-all (>= 3.4), debhelper (>= 9), dh-python
77
VCS-Git: git://github.com/rhempel/ev3dev-lang-python.git
88
VCS-Browser: https://github.com/rhempel/ev3dev-lang-python
99

10-
Package: python-ev3dev
10+
Package: python3-ev3dev
1111
Architecture: all
12-
Depends: ${misc:Depends}, ${python:Depends}
12+
Depends: ${misc:Depends}, ${python3:Depends}
1313
Description: Python language bindings for ev3dev
1414
This package is a pure Python binding to the peripheral
1515
devices on hardware that is supported by ev3dev.org - a

debian/rules

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
#!/usr/bin/make -f
22

3-
export PYBUILD_NAME=python-ev3dev
3+
export PYBUILD_NAME=python3-ev3dev
44

5-
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: (.*),\1,p')
5+
VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: (.*),\1,p' | sed 's,~,,')
66

77
%:
88
dh $@ --with python3 --buildsystem=pybuild
99

1010
override_dh_auto_configure:
11-
echo VERSION > RELEASE-VERSION
11+
echo $(VERSION) > RELEASE-VERSION
1212
dh_auto_configure
1313

1414
override_dh_auto_clean:
15-
echo VERSION > RELEASE-VERSION
15+
echo $(VERSION) > RELEASE-VERSION
1616
dh_auto_clean
1717
rm -f RELEASE-VERSION

ev3dev/GyroBalancer.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# The MIT License (MIT)
33
#
44
# Copyright (c) 2016 Laurens Valk ([email protected])
@@ -294,8 +294,8 @@ def shutdown():
294294
## Calibrate Gyro
295295
##
296296
########################################################################
297-
print "-----------------------------------"
298-
print "Calibrating..."
297+
print("-----------------------------------")
298+
print("Calibrating...")
299299

300300
#As you hold the robot still, determine the average sensor value of 100 samples
301301
gyroRateCalibrateCount = 100
@@ -305,10 +305,10 @@ def shutdown():
305305
gyroOffset = gyroOffset/gyroRateCalibrateCount
306306

307307
# Print the result
308-
print "GyroOffset: %s" % gyroOffset
309-
print "-----------------------------------"
310-
print "GO!"
311-
print "-----------------------------------"
308+
print("GyroOffset: %s" % gyroOffset)
309+
print("-----------------------------------")
310+
print("GO!")
311+
print("-----------------------------------")
312312

313313
########################################################################
314314
##

0 commit comments

Comments
 (0)