Skip to content

Rename namespace: ev3dev -> ev3dev2#412

Merged
WasabiFan merged 9 commits intodevelopfrom
ev3dev2-namespace
Jan 29, 2018
Merged

Rename namespace: ev3dev -> ev3dev2#412
WasabiFan merged 9 commits intodevelopfrom
ev3dev2-namespace

Conversation

@WasabiFan
Copy link
Copy Markdown
Member

This is the batch rename operation we've been discussing for Stretch.

There are some test-related files from two years ago which don't seem to be referenced anywhere, so I decided to hold off on updating them until I knew what they were or if they were necessary. Any input on that would be appreciated.

@WasabiFan
Copy link
Copy Markdown
Member Author

I also didn't update the gyro balancer as it appears to use the old RemoteControl class and I didn't want to start making changes to things I'm not familiar with (I haven't used the remote control/IR sensor nor the gyro balancer).

@dwalton76
Copy link
Copy Markdown
Collaborator

I can update GyroBalancer, filed #414 for that one

Comment thread ev3dev2/button.py Outdated
import time
import evdev
from ev3dev import get_current_platform
from ev3dev2 import get_current_platform
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.

Will this work as from . import get_current_platform? Could be future-name-change-proof like this.

Comment thread ev3dev2/button.py Outdated

if platform == 'ev3':
from ev3dev._platform.ev3 import BUTTONS_FILENAME, EVDEV_DEVICE_NAME
from ev3dev2._platform.ev3 import BUTTONS_FILENAME, EVDEV_DEVICE_NAME
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.

Same here

Comment thread tests/api_tests.py
@@ -9,36 +9,36 @@
from populate_arena import populate_arena
from clean_arena import clean_arena

import ev3dev as ev3
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 not just change this line to import ev3dev2 as ev3?

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 it's no longer generic "ev3" interface... It's just the couple of utility methods we dumped into the init file. Do you have a different name suggestion?

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.

Ok, that is a good point. But ev3 is still shorter than ev3dev2, and ev3dev2 still contains ev3 in the name. So it is kind of not generic in the first place.

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.

Agreed 😆 I'll have to think about it a bit and see what I think in the morning (this 12-hour offset makes communication really weird!)

Copy link
Copy Markdown
Member

@ddemidov ddemidov left a comment

Choose a reason for hiding this comment

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

This looks good, but needs manual rebasing.

@dwalton76
Copy link
Copy Markdown
Collaborator

@WasabiFan I think we are good to go once the conflicts are resolved

@WasabiFan
Copy link
Copy Markdown
Member Author

Just merged; it looks like tests passed, so I'm going to merge this. Thanks for the reviews, apologies I've been so slow!

@WasabiFan WasabiFan merged commit 8e1bd88 into develop Jan 29, 2018
@WasabiFan WasabiFan deleted the ev3dev2-namespace branch May 20, 2018 03:52
WasabiFan pushed a commit that referenced this pull request Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants