-
Notifications
You must be signed in to change notification settings - Fork 397
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
add hid_version/hid_version_str API #192
Conversation
Youw
commented
Sep 27, 2020
- API functions to get runtime version of the library;
- macros to get static/compile-time version of the library;
- VERSION file;
- API functions to get runtime version of the library; - macros to get static/compile-time version of the library; - VERSION file;
@@ -1,7 +1,7 @@ | |||
Pod::Spec.new do |spec| | |||
|
|||
spec.name = "hidapi" | |||
spec.version = "0.9.0" | |||
spec.version = "<fill me up from VERSION file, before submit>" |
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.
Looks like it's possible to read version from VERSION file
spec.version = File.read('../VERSION')
I'm going to try this during publishing 0.10.0, and if it will work, I create a PR
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.
sounds great
- API functions to get runtime version of the library; - macros to get static/compile-time version of the library; - VERSION file;
`hid_version_str` was added to the underlying C library in 0.10.0, in libusb/hidapi#192 Note that the method added here returns the version of the C library, which is different from the version of cython-hidapi, i.e. the `hid` python package. It would be good to also make the latter available at runtime somehow.
`hid_version_str` was added to the underlying C library in 0.10.0, in libusb/hidapi#192 Note that the method added here returns the version of the C library, which is different from the version of cython-hidapi, i.e. the `hid` python package. It would be good to also make the latter available at runtime somehow.