- Notifications
You must be signed in to change notification settings - Fork675
chore: renamegitlab/__version__.py ->gitlab/_version.py#1838
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedJan 14, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## main #1838 +/- ##======================================= Coverage 92.26% 92.26% ======================================= Files 77 77 Lines 4849 4849 ======================================= Hits 4474 4474 Misses 375 375
Flags with carried forward coverage won't be shown.Click here to find out more.
|
a0cdb71 tod9dfb5bComparenejch commentedJan 15, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't think it'sthat confusing as it's quite a common pattern (e.g.https://github.com/mtkennerly/poetry-dynamic-versioning/blob/4454e5082bf1fc2f4a39fa523a9b665eda5d638f/poetry_dynamic_versioning/__init__.py#L86-L89 among others).
|
d9dfb5b to1682830CompareJohnVillalovos commentedJan 15, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'm as big a fan of cargo-culting as the next person. But in our case due to the ordering of imports it is confusing. Because at some points in the code I did update the commit message to point out one actual situation of confusion.
Done! |
1682830 to7984eb0CompareIt is confusing to have a `gitlab/__version__.py` because we alsocreate a variable `gitlab.__version__` which can conflict with`gitlab/__version__.py`.For example in `gitlab/const.py` we have to know that`gitlab.__version__` is a module and not the variable due to theordering of imports. But in most other usage `gitlab.__version__` is aversion string.To reduce confusion make the name of the version file`gitlab/_version.py`.
7984eb0 tob981ce7Comparegitlab/__version__.py ->gitlab/version.pygitlab/__version__.py ->gitlab/_version.pynejch commentedJan 15, 2022
Ahh ok, that makes sense. Thanks! |
Uh oh!
There was an error while loading.Please reload this page.
It is confusing to have a
gitlab/__version__.pybecause we alsocreate a variable
gitlab.__version__which can conflict withgitlab/__version__.py.For example in
gitlab/const.pywe have to know thatgitlab.__version__is a module and not the variable due to theordering of imports. But in most other usage
gitlab.__version__is aversion string.
To reduce confusion make the name of the version file
gitlab/_version.py.