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
Convert to a Python package #16
Conversation
@khaeru took a look and all seems very immaculate. @znicholls, FYI that this is now installable. @danielhuppmann I guess we can do a quick patch on pyam to depend on this? Also, very happy to see that |
Ah, I forgot to mention. We use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments on the copyright holders, update-script and fixing a broken link to the new pyam-docs
Yes, @dependabot proves quite useful here. But unless this is also released via conda and/or pip, I don't think we'll get around the submodule hassle (but that's a minor hassle now that it's set up). |
-1. Don't think that |
Thanks @gidden and thanks @danielhuppmann for your comments about authorship. Both appreciated and this looks like a very easy maintenance way of getting the behaviour you need. For completeness, we needed a units repository in silicone which had wide gas and gwp context coverage so I've actually already split out https://github.com/openscm/openscm-units from https://github.com/openscm/scmdata. I didn't raise this here as I thought the discussions in #9 suggested a package wasn't desired. I'm happy to work out a way to combine openscm-units and this repo into a shared resource if there's desire. Also fine to keep them separate for the time being though (openscm-units certainly doesn't have the feature of being 'as low-maintenance as possible' because of its desire to include more features).
+1 from me, you can't release a package on PyPI that has url based install dependencies. Hence if you want pyam to depend on this, you'll need to make this pip installable too or stick with the submodule stuff. If you want an automated deployment workflow for this repo, the jobs from here onwards might be helpful (you need to set the right secrets, see details here and alter hard-coded names but then you're done). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - vote then for iam-units
as suggested by @khaeru
Co-Authored-By: Daniel Huppmann <dh@dergelbesalon.at>
Sorry @danielhuppmann @gidden —one additional point based on #16 (comment): since this is now no longer simply content (a text file) but code, I will change the license to GPL3. Good? @znicholls thanks for the pointer to the GitHub workflow examples and information about the other package. |
Fine for me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work @khaeru, thanks for the effort! Approving, though I feel the list of authors should still be changed - see inline comment.
Co-Authored-By: Daniel Huppmann <dh@dergelbesalon.at>
Excepting tests and helper code for us devs, the package consists of two lines that define one object:
How to review: