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

add jlap utility ported from repodata-fly #159

Merged
merged 9 commits into from
May 28, 2024
Merged

add jlap utility ported from repodata-fly #159

merged 9 commits into from
May 28, 2024

Conversation

dholth
Copy link
Contributor

@dholth dholth commented May 6, 2024

Fix #125

This is more elegant than the repodata-fly version since it uses the same implementation, a list of [(position, line, checksum), ...] for both collecting patches and trimming the file. We avoid having to save and load the file just to do a trim.

Description

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 6, 2024
@dholth dholth marked this pull request as ready for review May 7, 2024 12:54
@dholth dholth changed the title begin porting repodata-fly's json2jlap to use newer conda jlap implem… add jlap utility ported from repodata-fly May 7, 2024

if (
previous_repodata.exists()
and repodata.stat().st_mtime_ns > previous_repodata.stat().st_mtime_ns
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Compare size also

@dholth dholth enabled auto-merge (squash) May 22, 2024 15:15
Comment on lines +197 to +207
def go():
logging.basicConfig(
format="%(message)s",
datefmt="%Y-%m-%dT%H:%M:%S",
level=logging.INFO,
)
json2jlap()


if __name__ == "__main__":
go()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def go():
logging.basicConfig(
format="%(message)s",
datefmt="%Y-%m-%dT%H:%M:%S",
level=logging.INFO,
)
json2jlap()
if __name__ == "__main__":
go()
def main():
logging.basicConfig(
format="%(message)s",
datefmt="%Y-%m-%dT%H:%M:%S",
level=logging.INFO,
)
json2jlap()
if __name__ == "__main__":
main()

@dholth dholth merged commit a443f05 into main May 28, 2024
18 checks passed
@dholth dholth deleted the 125-jlap branch May 28, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Integrate jlap support
3 participants