Skip to content

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

Merged
merged 1 commit into from
Mar 16, 2022
Merged

Fix #46: Add __version__ #119

merged 1 commit into from
Mar 16, 2022

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.

@@ -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"
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