Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ __pycache__
dist
*.egg-info
RELEASE-VERSION
ev3dev/version.py
build
5 changes: 3 additions & 2 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ python-ev3dev (0.7.0) stable; urgency=medium
* Fix bad division logic in display classes.

[Kaelin Laundry]
* Fix fatal error when a requested sysfs device class hasn't been populated yet.
* Fix fatal error when a requested sysfs device class hasn't been
populated yet.

-- Kaelin Laundry <wasabifan@outlook.com> Sat, 25 Sep 2016 10:35:00 -0800
-- Kaelin Laundry <wasabifan@outlook.com> Sun, 25 Sep 2016 10:35:00 -0800

python-ev3dev (0.7.0~rc1) stable; urgency=medium

Expand Down
6 changes: 5 additions & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ Copyright: 2016 Ralph Hempel <rhempel@hempeldesigngroup.com>
Files: *
License: MIT
Copyright: 2016 Ralph Hempel <rhempel@hempeldesigngroup.com>
Copyright: 2015 Denis Demidov <dennis.demidov@gmail.com>
Copyright: 2015-2016 Denis Demidov <dennis.demidov@gmail.com>
Copyright: 2015 Eric Pascual <eric@pobot.org>
Copyright: 2015 Anton Vanhoucke <antonvh@gmail.com>
Copyright: 2016 Kaelin Laundry <wasabifan@outlook.com>
Copyright: 2016 Daniel Walton <dwalton76@gmail.com>
Copyright: 2016 Donald Webster <fryfrog@gmail.com>
Copyright: 2016 Frank Busse <bb0xfb@gmail.com>

License: MIT
Permission is hereby granted, free of charge, to any person obtaining a
Expand Down
9 changes: 3 additions & 6 deletions ev3dev/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,12 @@
INPUT_AUTO = ''
OUTPUT_AUTO = ''

# Keep the __version__ in sync with the package version in debian/changelog
__version__ = '0.7.0'

# -----------------------------------------------------------------------------

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because a4a296a creates ev3dev/version.py automatically. Less chances to forget to update this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git_version.py is called from setup.py and does this: https://github.com/rhempel/ev3dev-lang-python/blob/develop/git_version.py#L80-L82

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Missed that.

def list_device_names(class_path, name_pattern, **kwargs):

if not os.path.isdir(class_path):
return

"""
This is a generator function that lists names of all devices matching the
provided parameters.
Expand Down Expand Up @@ -174,7 +171,7 @@ def _attribute_file_open( self, name ):
mode = stat.S_IMODE(os.stat(path)[stat.ST_MODE])
r_ok = mode & stat.S_IRGRP
w_ok = mode & stat.S_IWGRP

if r_ok and w_ok:
mode = 'r+'
elif w_ok:
Expand Down Expand Up @@ -1420,7 +1417,7 @@ def __init__(self, address=None, name_pattern=SYSTEM_DEVICE_NAME_CONVENTION, nam
# ~autogen

self._value = [None,None,None,None,None,None,None,None]

self._bin_data_format = None
self._bin_data = None

Expand Down
9 changes: 6 additions & 3 deletions git_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ def read_release_version():


def write_release_version(version):
f = open("RELEASE-VERSION", "w")
f.write("%s\n" % version)
f.close()
with open("RELEASE-VERSION", "w") as f:
f.write("%s\n" % version)


def pep386adapt(version):
Expand Down Expand Up @@ -78,6 +77,10 @@ def git_version(abbrev=4):
if version != release_version:
write_release_version(version)

# Update the ev3dev/__version__.py
with open('ev3dev/version.py', 'w') as f:
f.write("__version__ = '{}'".format(version))

# Finally, return the current version.
return version