-
Notifications
You must be signed in to change notification settings - Fork 106
Fix #46: Add __version__ #119
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
Conversation
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.
This seems like a good idea.
class SnappyModuleTest(TestCase): | ||
def test_version(self): | ||
assert tuple(map(int, snappy.__version__.split("."))) >= (0, 6, 1) | ||
# Make sure that __version__ is identical to the version defined in setup.py |
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.
It is good to test that it is the same, as it should be. Some projects use external tools like versioneer or poetry to keep these in sync. Here, it would be manual.
@@ -33,7 +33,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
#include <snappy-c.h> | |||
#include "crc32c.h" | |||
|
|||
#define MODULE_VERSION "0.4.1" |
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.
Note: this incorrect string is currently available as snappy._snappy.__version__
Fix intake#46: Add __version__
Fix intake#46: Add __version__
Fix intake#46: Add __version__
Fix intake#46: Add __version__
No description provided.