-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Simplify packaging and publishing process #22
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Tin Švagelj <[email protected]>
Hello o/ I will not merge this PR as is, because there are few things I want to change so I will:
This is one of my oldest project and its code is not very clean nor very standard... So thank you very much for helping improving this! |
You're welcome. Really not sure why I did this PR hahaha. I just saw a huge number of places where version number needs to be updated and a large custom I simply wanted to vendor it to remove the graphic and cropping applied to This project is mostly complete and still works well, I opened #23 for the only bug I encountered running it and it's a 1/2 LoC change so take a look while you're making the commit. |
Hum, It seems to be too much work for me to review the Makefile for now so I will keep the shell script. I will only take the fix of your other PR and cherrypick the pyproject.toml for this release :) |
It's pretty much the |
Yeah I know but there are some changes and I really need to understand them all as I have to maintain this project in the future. For example, what And also I want to maintain compatibility so I have to bring back the install.sh and make it call the Makefile... And to update the doc. This project is in (really low) maintenance mode and I am currently very busy on other projects (Daily Mix playlists generator, Rivalcfg tool to configure SteelSeries gaming mice, YOGA Image Optimizer, etc.) and on doing research and writing articles for my blog (on DICOM (medicine imagery), on ImHex, and so on). That's why I preferred releasing the fix and the project.toml as quickly as possible and letting this PR open for the day I have time to take care of it :) |
Ok, no worries. Those new projects sound fun and interesting, no pressure here, this PR doesn't change anything important so feel free to pick it apart and do what you like. Coincidentally, my bachelors thesis is on volumetric rendering and I mention DICOM a lot, so I'll keep an eye out for that article 😄, if you've found any samples of 3D CT/MRI scans please send them this way I have trouble finding any and would like to include them.
|
I have some CT and MRI and that helped me a lot for working on DICOM but sadly I cannot share them... I also had hard time to find examples I can share for my articles (in addition of hand crafted files just for the demo) but I found this:
|
Instead of handrolled
install.sh
I switched the project to Makefile for installation. There's no benefit besides it being ~more familiar and 2x shorter.More importantly though, I added
pyproject.toml
which is now main source of metadata (e.g. version & name), and Makefile pulls this information andsed
s it into install/package files which removes like 5 tedious steps from releasing a new version.Now you can do changes, change version in pyproject and run
make publish
.This breaks interface packages rely on because they need to invoke
make install
instead of./install.sh --install
, but I don't think that's a very hard thing to update. You will need to notify them though (namely AUR which has git variant, others will notice).Actual diff is
+148 -305
, rest is just autogenerated.gitignore
.