Skip to content

Conversation

@zivy
Copy link
Member

@zivy zivy commented Nov 5, 2025

Using the GitHub API fetch all the information about the release assests and analyze it. The script assumes SimpleITK specific file naming conventions for the release assets to identify programming languages and operating systems.

@zivy zivy requested review from blowekamp and dave3d November 5, 2025 22:34
Using the GitHub API fetch all the information about the release
assests and analyze it. The script assumes SimpleITK specific file
naming conventions for the release assets to identify programming
languages and operating systems.
@zivy zivy force-pushed the githubReleaseDownloadStats branch from 9178727 to 46e667d Compare November 5, 2025 23:24
Copy link
Member

@blowekamp blowekamp left a comment

Choose a reason for hiding this comment

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

Looks fine. Some notes on possibilities to improve dependency specifications.

- requests
- python=3.12
- pip
- pip:
Copy link
Member

Choose a reason for hiding this comment

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

Two points:

  • My preference has become to use uv and uvx to run things. And there is a new Python standard for embedding metadata in a standalone script. If you are interested in new ways to do things ( as a replacement to the yaml), you can look at this: https://docs.astral.sh/uv/guides/scripts/#creating-a-python-script
  • It has become bad practice to mix conda and pip, as it can lead to binary incompatibilities. I don' think there is a need to use pip in the yaml.

Copy link
Member Author

Choose a reason for hiding this comment

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

Will look into the uvx, thanks for the pointer.
Note that this environment.yml is not mixing anaconda packages and wheels. It is just a convenient way to control for the Python version and avoid the need for using the anaconda defaults channel which may require a license for some people in larger organizations, so using pip and wheels from PyPI.

Copy link
Member Author

Choose a reason for hiding this comment

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

@blowekamp, see #2444. Thanks for the tip, this is extremely convenient when dealing with a single script.

@zivy zivy merged commit ca0539a into SimpleITK:main Nov 6, 2025
2 checks passed
@zivy zivy deleted the githubReleaseDownloadStats branch November 6, 2025 17:33
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.

3 participants