Skip to content

Commit cd5be9c

Browse files
committed
Include license file in distributions
Include license file in source distribution by using MANIFEST.in. Include license file in the generated wheel package. The wheel package format supports including the license file. This is done using the [metadata] section in the setup.cfg file. For additional information on this feature, see: https://wheel.readthedocs.io/en/stable/index.html#including-the-license-in-the-generated-wheel-file
1 parent 886093d commit cd5be9c

File tree

4 files changed

+81
-77
lines changed

4 files changed

+81
-77
lines changed

LICENSE

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
There are two licenses associated with xlrd. This one relates to the bulk of
2+
the work done on the library::
3+
4+
Portions copyright © 2005-2009, Stephen John Machin, Lingfo Pty Ltd
5+
All rights reserved.
6+
7+
Redistribution and use in source and binary forms, with or without
8+
modification, are permitted provided that the following conditions are met:
9+
10+
1. Redistributions of source code must retain the above copyright notice,
11+
this list of conditions and the following disclaimer.
12+
13+
2. Redistributions in binary form must reproduce the above copyright notice,
14+
this list of conditions and the following disclaimer in the documentation
15+
and/or other materials provided with the distribution.
16+
17+
3. None of the names of Stephen John Machin, Lingfo Pty Ltd and any
18+
contributors may be used to endorse or promote products derived from this
19+
software without specific prior written permission.
20+
21+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25+
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31+
THE POSSIBILITY OF SUCH DAMAGE.
32+
33+
This one covers some earlier work::
34+
35+
/*-
36+
* Copyright (c) 2001 David Giffin.
37+
* All rights reserved.
38+
*
39+
* Based on the the Java version: Andrew Khan Copyright (c) 2000.
40+
*
41+
*
42+
* Redistribution and use in source and binary forms, with or without
43+
* modification, are permitted provided that the following conditions
44+
* are met:
45+
*
46+
* 1. Redistributions of source code must retain the above copyright
47+
* notice, this list of conditions and the following disclaimer.
48+
*
49+
* 2. Redistributions in binary form must reproduce the above copyright
50+
* notice, this list of conditions and the following disclaimer in
51+
* the documentation and/or other materials provided with the
52+
* distribution.
53+
*
54+
* 3. All advertising materials mentioning features or use of this
55+
* software must display the following acknowledgment:
56+
* "This product includes software developed by
57+
* David Giffin <[email protected]>."
58+
*
59+
* 4. Redistributions of any form whatsoever must retain the following
60+
* acknowledgment:
61+
* "This product includes software developed by
62+
* David Giffin <[email protected]>."
63+
*
64+
* THIS SOFTWARE IS PROVIDED BY DAVID GIFFIN ``AS IS'' AND ANY
65+
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
66+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
67+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID GIFFIN OR
68+
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
69+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
70+
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
71+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
72+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
73+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
74+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
75+
* OF THE POSSIBILITY OF SUCH DAMAGE.
76+
*/

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE

docs/licenses.rst

+1-77
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,4 @@
11
Licenses
22
========
33

4-
There are two licenses associated with xlrd. This one relates to the bulk of
5-
the work done on the library::
6-
7-
Portions copyright © 2005-2009, Stephen John Machin, Lingfo Pty Ltd
8-
All rights reserved.
9-
10-
Redistribution and use in source and binary forms, with or without
11-
modification, are permitted provided that the following conditions are met:
12-
13-
1. Redistributions of source code must retain the above copyright notice,
14-
this list of conditions and the following disclaimer.
15-
16-
2. Redistributions in binary form must reproduce the above copyright notice,
17-
this list of conditions and the following disclaimer in the documentation
18-
and/or other materials provided with the distribution.
19-
20-
3. None of the names of Stephen John Machin, Lingfo Pty Ltd and any
21-
contributors may be used to endorse or promote products derived from this
22-
software without specific prior written permission.
23-
24-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
26-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
27-
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
28-
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29-
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30-
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31-
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32-
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33-
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
34-
THE POSSIBILITY OF SUCH DAMAGE.
35-
36-
This one covers some earlier work::
37-
38-
/*-
39-
* Copyright (c) 2001 David Giffin.
40-
* All rights reserved.
41-
*
42-
* Based on the the Java version: Andrew Khan Copyright (c) 2000.
43-
*
44-
*
45-
* Redistribution and use in source and binary forms, with or without
46-
* modification, are permitted provided that the following conditions
47-
* are met:
48-
*
49-
* 1. Redistributions of source code must retain the above copyright
50-
* notice, this list of conditions and the following disclaimer.
51-
*
52-
* 2. Redistributions in binary form must reproduce the above copyright
53-
* notice, this list of conditions and the following disclaimer in
54-
* the documentation and/or other materials provided with the
55-
* distribution.
56-
*
57-
* 3. All advertising materials mentioning features or use of this
58-
* software must display the following acknowledgment:
59-
* "This product includes software developed by
60-
* David Giffin <[email protected]>."
61-
*
62-
* 4. Redistributions of any form whatsoever must retain the following
63-
* acknowledgment:
64-
* "This product includes software developed by
65-
* David Giffin <[email protected]>."
66-
*
67-
* THIS SOFTWARE IS PROVIDED BY DAVID GIFFIN ``AS IS'' AND ANY
68-
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
69-
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
70-
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID GIFFIN OR
71-
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
72-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
73-
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
74-
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
75-
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
76-
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
77-
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
78-
* OF THE POSSIBILITY OF SUCH DAMAGE.
79-
*/
80-
4+
.. literalinclude:: ../LICENSE

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[bdist_wheel]
22
universal = 1
3+
4+
[metadata]
5+
license_file = LICENSE

0 commit comments

Comments
 (0)