feat: add windows installer - #333
Conversation
c13868c to
bcf3ce3
Compare
|
Ok, this one is ready for review. Not sure, how you want to go about testing this and where, @lisazeyen ? |
|
Looks very nice! Maybe as a first step @cdgaete can test it? |
Carlos, you can find a prepared installer at: https://drive.google.com/open?id=1_8PXajcZQm08n6e_C7sPO1f5peHalaiS&usp=drive_copy |
34204d9 to
4bf6d8a
Compare
4bf6d8a to
13a809e
Compare
|
@tgilon @lisazeyen I split out the few small fixes like normalizing the line endings into #357 . This should make the review of this PR quite a bit easier. |
pyogrio >=0.12.0 returns JSON fields directly as dicts/lists, so that loading them again as json fails. refer to https://github.com/geopandas/pyogrio/releases/tag/v0.12.0 .
tgilon
left a comment
There was a problem hiding this comment.
Thank you @coroa for this PR! This is a significant step forward to improve the cross-platform compatibility of our work. I haven't tested the installer myself, but the code looks good.
Some additional comments:
- Could you specify somewhere the Windows version you used to test things? I think it's important for reproducibility purposes.
- Could you also add this as a new feature in both in
READMEand inindex.rst? - There is a typo in the PR description. It's not
pixi_installer.nsibutinstaller.nsi.
There was a problem hiding this comment.
This is difficult to review. Have you tested it?
There was a problem hiding this comment.
No, this is still untested. it would need to be run on an existing release. i think i could run it on 0.4.1.
There was a problem hiding this comment.
I'd propose to merge this and #357 now and try to create a 0.4.2a1 release, ie. an alpha release.
There was a problem hiding this comment.
Good for me to release an alpha. Following the SemVer convention, I would suggest v0.4.2-alpha and mark it as a pre-release.
There was a problem hiding this comment.
As always everyone has their own ideas about how stuff ideally looks like: Python packaging user guide, but python is flexible and will be fine with your suggestion too, ie check the section on normalization.
| Windows Installer (Recommended for Windows) | ||
| ============================================ | ||
|
|
||
| For Windows users, the easiest way to install Open-TYNDP is using the automated installer. Download the latest installer executable (e.g., ``open-tyndp-0.4.0-pixi-Windows-x86_64.exe``) from the `GitHub releases page <https://github.com/open-energy-transition/open-tyndp/releases>`__ and run it. |
There was a problem hiding this comment.
What do you think about releasing a v0.4.2 to get the installer attached to the latest release?
There was a problem hiding this comment.
that would be ideal i think.
|
Ok, i think i addressed everything except for:
@tgilon What do you mean by that? |
|
Zenodo making waves again: PyPSA/powerplantmatching#276 . We did not change anything in the PR commits. I'd merge w/o waiting for CI. |
We usually document major features in the documentation itself. I think that this PR is one of them. I suggest adding it to the list of major features in both |
I unfortunately broke my open-tyndp time budget for at least this week already. Maybe can get to it next week. |
Maybe @tgilon or I can address the last change in the README and index.rst, so we can merge sooner? Or am I missing any other open tasks on this PR? @coroa |
Conflicts: pixi.lock
|
As reported in PyPSA/powerplantmatching#276, |
Fine with me to merge then! Thanks for the assist |
Same on d76983c, merging now |
This PR closes #335
Changes proposed in this Pull Request
Adds an automatically built Windows installer (e.g.,
open-tyndp-0.4.0-pixi-Windows-x86_64.exe) with GitHub Actions automation for releases.How It Works
%LOCALAPPDATA%\open-tyndppixi installto download and set up conda environmentpixi shellImplementation Details
utils/windows-installer/installer.nsi.github/workflows/release-installer.yamlbuilds on release tagsNotes
Users can still update via git after installation since git is included in the environment. The bundled repository ensures the installer always provides a working, tested version.
Tests
Installer ran successfully on virtualbox VM running Windows 10 Pro and on GCP Windows Server 2022.
Screenshots
Installing
Shortcuts
Running
Uninstalling
Checklist
pixi.toml(git added for Windows).Changes in configuration options are added inconfig/config.default.yaml.Changes in configuration options are documented indoc/configtables/*.csv.Changes in configuration options are added inconfig/test/*.yaml.Sources of newly added data are documented indoc/data_sources.rst.New rules are documented in the appropriatedoc/*.rstfiles.doc/release_notes.rstis added.README(installer README).Module docstrings added to new Python scripts.