-
Notifications
You must be signed in to change notification settings - Fork 3
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 certifi dependency #47
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
+ Coverage 79.31% 79.44% +0.12%
==========================================
Files 782 782
Lines 13382 13387 +5
==========================================
+ Hits 10614 10635 +21
+ Misses 2768 2752 -16
☔ View full report in Codecov by Sentry. |
Did I understand correctly that the version has to be hard coded in init.py? In #33 you wrote it tries to load the module to check the computed version (which does not work). Why exactly is it no possible to fill the variable
If I understand you correctly, you tried this? Further is the VERSION file no longer needed an can now be deleted, right? |
To make it possible to use `pip install .`, we have to change `__init__.py` so that it is possible to determine the version with static analysis. See this issue for more context: #33
This patch adds a clean-install job to the CI that makes sure that installing the package with pip and using it works, i. e. we did not forget to specify a required dependency.
This patch adds certifi as a required dependency. Previously, we did not notice it was missing as it was installed together with flit in the CI and development setup. Fixes: #33
1447367
to
4af6e71
Compare
You are right, I forgot to delete the
This is basically the same code that we currently have, right? It does not work because
This script is only executed in the CI when making a new release, so I don’t think this is an issue. And I wouldn’t call it expensive. Sure, more effort than reading out a file, but still very cheap. |
Yeah its quite the same code, but I see the issue now, thanks. |
lgtm, would go so far to admit that a |
This PR adds the
certifi
dependency and also introduces a new CI job that makes sure that a clean install withpip
works. To be able to do that, we have to move the version fromnethsm/VERSION
intonethsm/__init__.py
.Fixes: #33
CI runs:
@mmerklinger As this touches the CI, esp. the version check before releases, could you please have a look?