Skip to content

Commit a9dbe63

Browse files
committed
examples/deepzoom: add license files for bundled JS
The licenses are included or linked at the top of the JS files, but it's better to also ship them separately. Also document these licenses in the README. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 0c746f8 commit a9dbe63

File tree

5 files changed

+65
-2
lines changed

5 files changed

+65
-2
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include *.md
2-
global-include py.typed *.pyi
2+
global-include LICENSE.* py.typed *.pyi
33
recursive-include doc *.py *.rst
44
recursive-include examples *.html *.js *.png *.py
55
recursive-include tests *.dcm *.png *.py *.svs *.tiff

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@ installing so OpenSlide Python can find OpenSlide.
7373
## License
7474

7575
OpenSlide Python is released under the terms of the [GNU Lesser General
76-
Public License, version 2.1](https://openslide.org/license/).
76+
Public License, version 2.1](https://openslide.org/license/). The Deep Zoom
77+
example code includes JavaScript released under the
78+
[BSD license](https://github.com/openslide/openslide-python/tree/main/examples/deepzoom/licenses/LICENSE.openseadragon),
79+
the
80+
[MIT license](https://github.com/openslide/openslide-python/tree/main/examples/deepzoom/licenses/LICENSE.jquery),
81+
and released into the
82+
[public domain](https://github.com/openslide/openslide-python/tree/main/examples/deepzoom/licenses/LICENSE.openseadragon-scalebar).
7783

7884
OpenSlide Python is distributed in the hope that it will be useful, but
7985
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (C) 2009 CodePlex Foundation
2+
Copyright (C) 2010-2024 OpenSeadragon contributors
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
- Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
9+
10+
- Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
- Neither the name of CodePlex Foundation nor the names of its contributors
15+
may be used to endorse or promote products derived from this software
16+
without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28+
POSSIBILITY OF SUCH DAMAGE.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
This software was developed at the National Institute of Standards and
2+
Technology by employees of the Federal Government in the course of
3+
their official duties. Pursuant to title 17 Section 105 of the United
4+
States Code this software is not subject to copyright protection and is
5+
in the public domain. This software is an experimental system. NIST assumes
6+
no responsibility whatsoever for its use by other parties, and makes no
7+
guarantees, expressed or implied, about its quality, reliability, or
8+
any other characteristic. We would appreciate acknowledgement if the
9+
software is used.

0 commit comments

Comments
 (0)