-
Notifications
You must be signed in to change notification settings - Fork 287
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
Should PSF-2.0 be templatized further for projects? #1104
Comments
I'll be happy to work on this with you, Steve. |
Thanks @JimVitrano! |
I've been working on the markup for these changes. I've run into one error which, after staring at it for a while and trying several variations, I think might be an issue with the tools rather than the markup. I'm cc'ing @goneall for us to look at this, though since I'm hoping to push 3.12 later today I'm going to shift this issue to 3.13. In the revised markup, I'm trying out a modified test file for the relevant part of the license text from https://cx-freeze.readthedocs.io/en/latest/license.html#license. See attached for the test file I'm using, as well as the work-in-process modified template markup I've been working on (with the template filename changed from ".xml" to ".xml.txt" b/c of GitHub restrictions): WIP template: PSF-2.0.xml.txt When running the tests for these, I'm seeing the following error:
This appears to be based on the following chunk from the markup, since it's the only bit that has "All Rights Reserved" in it:
I've tried a bunch of variations, including removing the quotation marks within the @goneall -- apologies if I'm missing something obvious, but wanted to flag in case this is an edge case that's causing some issue with the tools. It looks to me like https://github.com/spdx/tools/blob/17b6f86dce22a41223fe8324e7586132bc5f5b23/src/org/spdx/licenseTemplate/LicenseTemplateRule.java#L263 is where this error is being thrown, but beyond that I'm not familiar enough with the Java tools to backtrace it any further. Grateful for any help you can provide here! |
@swinslow I don't see anything obviously wrong - so I also suspect the tool. I found the XML file above - I'll take a look and update the issue on what I find. |
Thanks @goneall! When you say the "source XML file" -- did you mean something different from what I linked in the prior comment, as an attachment? Here's the link again: https://github.com/spdx/license-list-XML/files/6097797/PSF-2.0.xml.txt It would just need to be renamed from |
It's the double quotes You can work around this by changing the double quotes to single quotes. I would add escaping to the publisher, but that would require a change to the spec to add escaping characters for the |
I just tested the workaround, and it doesn't like the semi-colon either. I'll update when I do a couple more tests. |
OK - I was wrong on the initial diagnosis. This is due to the semicolon after the Removing or replacing the semicolon works. You can leave the double quotes in. The semi-colon can be escaped with a backslash, however, I noticed that the backslash is rendered in the HTML. See issue spdx/LicenseListPublisher#100 for more details. |
@swinslow - is the author and date text going to be changed to colored font under the matching guidelines? The matplotlib license is another example of what could use the SPDX "PSF-2.0," however the author and date text has been changed: https://github.com/matplotlib/matplotlib/blob/master/LICENSE/LICENSE. |
@swinslow - what is the update on this? |
review with #1200 |
Unfortunately I'm going to roll this one forward again. I may have a solution based on part of how we handled the nested quotes in the new I think I have a path forward and will try to make sure this gets handled in the near future... |
I've submitted #1844 to fix this. To deal with the technical issue I had reported above previously, I followed @goneall's recommendation (thank you!) to just remove the semicolon. It's in replaceable copyright text, so no issues with removing it from the template. That said, I was then running into odd problems with trying to use |
In our description of PSF-2.0 we mention that some projects have adopted it as their license.
I recently ran into a project that has made changes to the license to address their project. Should we consider templatizing the license further to recognize this?
https://cx-freeze.readthedocs.io/en/latest/license.html#license
Here's an image of the diff where you can see pretty quickly what should be optional or just replaceable.
The text was updated successfully, but these errors were encountered: