Skip to content
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

chapters/appendix-I: Bump license list to v2.6 (via new script) #10

Closed
wants to merge 3 commits into from

Commits on Jul 18, 2017

  1. bin/pull-license-list.py: Add a script to pull Appendix I

    The newline removal in exception names works around [1].
    
    The UTF-8 fallback works around the source not being served with a
    charset:
    
      $ curl -I https://spdx.org/licenses/licenses.json
      HTTP/1.1 200 OK
      Server: nginx
      Date: Tue, 18 Jul 2017 20:12:58 GMT
      Content-Type: application/json
      Content-Length: 108139
      Connection: keep-alive
      Vary: Accept-Encoding
      Last-Modified: Fri, 06 Jan 2017 21:34:52 GMT
      Expires: Tue, 18 Jul 2017 22:12:58 GMT
      Cache-Control: max-age=7200
      Strict-Transport-Security: max-age=16070400
      Accept-Ranges: bytes
    
      $ curl -I https://spdx.org/licenses/exceptions.json
      HTTP/1.1 200 OK
      Server: nginx
      Date: Tue, 18 Jul 2017 20:13:02 GMT
      Content-Type: application/json
      Content-Length: 7985
      Connection: keep-alive
      Vary: Accept-Encoding
      Last-Modified: Fri, 06 Jan 2017 21:34:52 GMT
      Expires: Tue, 18 Jul 2017 22:13:02 GMT
      Cache-Control: max-age=7200
      Strict-Transport-Security: max-age=16070400
      Accept-Ranges: bytes
    
    [1]: https://github.com/spdx/license-list-data/issues/10
         Subject: Newline in 389-exception name
    wking committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    16ac456 View commit details
    Browse the repository at this point in the history
  2. chapters/appendix-I: Bump license list to v2.6

    Generated with:
    
      $ ./bin/pull-license-list.py
    
    Then I removed the trailing link labels now that the tables are using
    inline links.  The inline links make the table a bit wider, but they
    are easier to automatically manage because each table is
    self-contained (vs. accumulating a set of link lables between all
    tables).
    
    The date formatting for "6 Jan 2016" is unfortunate.  I'd prefer
    "2016-01-06" or "January 6th, 2016", but the script is just pulling
    the raw releaseDate from the JSON, so we get whatever the upstream
    data is using.
    wking committed Jul 18, 2017
    Configuration menu
    Copy the full SHA
    1e38bd9 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2017

  1. pull-license-list: Update to Python 3.6

    Which adds support for parsing JSON directly from bytes without first
    decoding to a string [1,2].  This allows interacting with
    RFC-compliant servers, because RFC 7159 does not define a charset
    parameter in its application/json registration [3].
    
    Reported by Eric Searcy [4].
    
    [1]: https://docs.python.org/3/whatsnew/3.6.html#json
    [2]: https://bugs.python.org/issue17909
    [3]: https://tools.ietf.org/html/rfc7159#page-11
    [4]: spdx#10 (comment)
    wking committed Nov 9, 2017
    Configuration menu
    Copy the full SHA
    79e2162 View commit details
    Browse the repository at this point in the history