Skip to content

[Issue292] Hotfix: both solutions#299

Merged
lasofivec merged 2 commits intodevelfrom
Issue292_UpdateVersionInSdist
Nov 28, 2019
Merged

[Issue292] Hotfix: both solutions#299
lasofivec merged 2 commits intodevelfrom
Issue292_UpdateVersionInSdist

Conversation

@Didou09
Copy link
Copy Markdown
Member

@Didou09 Didou09 commented Nov 28, 2019

Hotfix by defining updateversion in setup.py and keeping _updateversion.py also

Fixes, in devel, Issue #292

@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Nov 28, 2019

Hello @Didou09! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-11-28 09:52:37 UTC

@Didou09
Copy link
Copy Markdown
Member Author

Didou09 commented Nov 28, 2019

Does seem to solve the problem, I could build a sdist locally and install it with pip on a fresh environment :-)

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 28, 2019

Codecov Report

Merging #299 into devel will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##            devel     #299   +/-   ##
=======================================
  Coverage   41.04%   41.04%           
=======================================
  Files          79       79           
  Lines       23464    23464           
=======================================
  Hits         9630     9630           
  Misses      13834    13834
Impacted Files Coverage Δ
tofu/version.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9531f81...623b6f7. Read the comment docs.

Comment thread _updateversion.py
# Fetch version from git tags, and write to version.py
# Also, when git is not available (PyPi package), use stored version.py
version_py = os.path.join(path,"version.py")
version_py = os.path.join(path, 'tofu', 'version.py')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change is independent form the issue right ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, just making it cleaner :-)

@lasofivec lasofivec merged commit 2c1b2bb into devel Nov 28, 2019
@lasofivec lasofivec deleted the Issue292_UpdateVersionInSdist branch November 28, 2019 11:02
@Didou09 Didou09 mentioned this pull request Jan 30, 2020
@Didou09 Didou09 mentioned this pull request Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants