forked from hermitdemschoenenleben/pyrp3
-
Notifications
You must be signed in to change notification settings - Fork 2
Release v1.2.0 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Release v1.2.0 #10
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4196fc0
remove subclassing from object
bleykauf 37ecc7c
fix E714
bleykauf 6dadbca
remove commented-out code
bleykauf 93d54dc
remove unused line
bleykauf 409aa36
remove unneccesary nesting
bleykauf 64da105
capitalize enums
bleykauf 3987508
remove explicit installation of pyrp3.enum
bleykauf 7ad3c43
remove unused full enum classes
bleykauf 15da981
move tests to own folder
bleykauf 136d5db
using _version.py for running tests without installing package
bleykauf 92296de
use lowercase for enums for compatability
bleykauf 4a739ce
specify dependency versions
bleykauf 291724b
bump version to 1.2.0
bleykauf c24fc59
specify python version
bleykauf 6778d69
fix file path
bleykauf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -199,5 +199,3 @@ $RECYCLE.BIN/ | |
# Windows shortcuts | ||
*.lnk | ||
|
||
# Custom rules | ||
pyrp3/_version.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
import importlib_metadata | ||
|
||
__version__ = importlib_metadata.version("pyrp3") # noqa: F401 | ||
from ._version import __version__ # noqa F401 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "1.1.1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
from pyrp3.enum import Enum | ||
|
||
|
||
def test_enum(): | ||
class Color(Enum): | ||
red = 1 | ||
green = 2 | ||
blue = 3 | ||
|
||
print(Color.red) | ||
|
||
print(repr(Color.red)) | ||
print(Color.red == Color.red) | ||
print(Color.red == Color.blue) | ||
print(Color.red == 1) | ||
print(Color.red == 2) | ||
|
||
class ExtendedColor(Color): | ||
white = 0 | ||
orange = 4 | ||
yellow = 5 | ||
purple = 6 | ||
black = 7 | ||
|
||
print(ExtendedColor.orange) | ||
print(ExtendedColor.red) | ||
|
||
print(Color.red == ExtendedColor.red) | ||
|
||
class OtherColor(Enum): | ||
white = 4 | ||
blue = 5 | ||
|
||
class MergedColor(Color, OtherColor): | ||
pass | ||
|
||
print(MergedColor.red) | ||
print(MergedColor.white) | ||
|
||
print(Color) | ||
print(ExtendedColor) | ||
print(OtherColor) | ||
print(MergedColor) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that rpyc >5.0 compatibility was fixed in version 0.3.2 of linien (according to linien's CHANGELOG.md).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem with rpyc>=5.0 was that it was incompatible with the outdated python version of RedPitaya OS 1.0. The fix in that version is that the installed version was explicitly set to <5.0 to avoid conflicts between server and client. RedPitaya OS 2.0 apparently now has a stable release and the next version of Linien will only support OS 2.0.
That means that the requirement will be
rpyc>=5.0,<6.0
from then on.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python supports constraining that with the python version, as explained here: https://stackoverflow.com/questions/21082091/install-requires-based-on-python-version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we have to make sure that we always use the same version of rpyc for server and client since they are incompatible. Will be upgraded to >=5.0,<6.0 with the next release.