Skip to content

Conversation

@jonashaag
Copy link
Contributor

No description provided.

Copy link
Member

@martindurant martindurant left a 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
Copy link
Member

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.

#include <snappy-c.h>
#include "crc32c.h"

#define MODULE_VERSION "0.4.1"
Copy link
Member

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__

@martindurant martindurant merged commit fa62ec8 into intake:master Mar 16, 2022
@MIAObriandd MIAObriandd mentioned this pull request Apr 11, 2023
ewianda pushed a commit to benchsci/python-snappy that referenced this pull request Oct 22, 2023
ewianda pushed a commit to benchsci/python-snappy that referenced this pull request Oct 22, 2023
ewianda pushed a commit to benchsci/python-snappy that referenced this pull request Oct 22, 2023
ewianda pushed a commit to benchsci/python-snappy that referenced this pull request Oct 22, 2023
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.

2 participants