Skip to content
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

Remove dependency on Pkg #1964

Merged
merged 1 commit into from
Dec 7, 2024
Merged

Remove dependency on Pkg #1964

merged 1 commit into from
Dec 7, 2024

Conversation

fingolfin
Copy link
Member

  • versioninfo was just broken, so remove it
  • parse Project.toml to get package version
  • replace heuristic for detecting dev versions by a new one which checks for the presence of a .git dir -- this catches a few more cases than what we have right now
  • move banner printing code into a new helper show_banner which makes it easier to test changes to it

Resolves #1895
Closes #1896

@thofma
Copy link
Member

thofma commented Dec 5, 2024

I am happy to disable it on 1.6.

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.

Project coverage is 87.97%. Comparing base (e4e5751) to head (b24d0d0).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/Nemo.jl 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1964      +/-   ##
==========================================
+ Coverage   87.93%   87.97%   +0.04%     
==========================================
  Files          99       99              
  Lines       36467    36458       -9     
==========================================
+ Hits        32067    32074       +7     
+ Misses       4400     4384      -16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- `versioninfo` was just broken, so remove it
- parse `Project.toml` to get package version
- replace heuristic for detecting dev versions by a new one which
  checks for the presence of a `.git` dir -- this catches a few more
  cases than what we have right now
- move banner printing code into a new helper `show_banner` which
  makes it easier to test changes to it
@fingolfin
Copy link
Member Author

Fixed 1.6 support

@fingolfin fingolfin merged commit 7833f8d into master Dec 7, 2024
23 of 24 checks passed
@fingolfin fingolfin deleted the mh/rm-Pkg branch December 7, 2024 12:14
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.

Consider removing dependency on Pkg
3 participants