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

PKG-5647 #1

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 23 additions & 10 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,41 +1,54 @@
{% set name = "pyuca" %}
{% set version = "1.2" %}
{% set hash_type = "sha256" %}
{% set hash = "8a382fe74627f08c0d18908c0713ca4a20aad5385f077579e56208beea2893b2" %}

package:
name: {{ name }}
version: {{ version }}

source:
fn: {{ name }}-{{ version }}.tar.gz
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
{{ hash_type }}: {{ hash }}
sha256: 8a382fe74627f08c0d18908c0713ca4a20aad5385f077579e56208beea2893b2
patches:
- unicode_license.patch

build:
noarch: python
number: 1
bwingconda marked this conversation as resolved.
Show resolved Hide resolved
script: python -m pip install --no-deps --ignore-installed .
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed --no-build-isolation .

requirements:
build:
- patch # [not win]
- m2-patch # [win]
host:
- pip
- python
- setuptools

- wheel
run:
- python

test:
imports:
- pyuca
requires:
- pip
commands:
- pip check

about:
home: https://pypi.org/project/pyuca
license: MIT
# license file currently not on sdist, see https://github.com/jtauber/pyuca/pull/9
#license_file: LICENSE
license: MIT AND Unicode-3.0
license_family: MIT
license_file:
- LICENSE
- LICENSE-Unicode-3.0
- COPYING
summary: a Python implementation of the Unicode Collation Algorithm
description: |
This is a Python implementation of the Unicode Collation Algorithm (UCA). It passes 100% of the UCA conformance
tests for Unicode 5.2.0 (Python 2.7), Unicode 6.3.0 (Python 3.3+), Unicode 8.0.0 (Python 3.5+), Unicode 9.0.0
(Python 3.6+), and Unicode 10.0.0 (Python 3.7+) with a variable-weighting setting of Non-ignorable.
doc_url: https://github.com/jtauber/pyuca/blob/master/README.md
dev_url: https://github.com/jtauber/pyuca

extra:
Expand Down
126 changes: 126 additions & 0 deletions recipe/unicode_license.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
From 214a1c30c5fee17bedc07cdb90e948bd336a1441 Mon Sep 17 00:00:00 2001
From: Sandro <devel@penguinpee.nl>
Date: Fri, 23 Feb 2024 13:56:37 +0100
Subject: [PATCH 1/2] Clarify applicable licenses

- Include current text of Unicode-3.0 license
- Explain applicable licenses in COPYING
- Solves issue #27
---
COPYING | 9 +++++++++
LICENSE-Unicode-3.0 | 39 +++++++++++++++++++++++++++++++++++++++
LICENSE-allkeys | 7 -------
3 files changed, 48 insertions(+), 7 deletions(-)
create mode 100644 COPYING
create mode 100644 LICENSE-Unicode-3.0
delete mode 100644 LICENSE-allkeys

diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..da543c6
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,9 @@
+Pyuca is licensed under MIT, except for the Unicode Collation Element Tables (DUCET),
+which can be found in pyuca/allkeys*.txt. Those files are licensed under the terms of the
+Unicode License v3 (Unicode-3.0).
+
+The terms of the MIT license are included in LICENSE.
+The terms of the Unicode License v3 can be found in LICENSE-Unicode-3.0.
+
+More information on the Unicode Copyright and Terms of Use can be found online:
+https://www.unicode.org/copyright.html
diff --git a/LICENSE-Unicode-3.0 b/LICENSE-Unicode-3.0
new file mode 100644
index 0000000..f28d471
--- /dev/null
+++ b/LICENSE-Unicode-3.0
@@ -0,0 +1,39 @@
+UNICODE LICENSE V3
+
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright � 1991-2023 Unicode, Inc.
+
+NOTICE TO USER: Carefully read the following legal agreement. BY
+DOWNLOADING, INSTALLING, COPYING OR OTHERWISE USING DATA FILES, AND/OR
+SOFTWARE, YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND BY, ALL OF THE
+TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE, DO NOT
+DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of data files and any associated documentation (the "Data Files") or
+software and any associated documentation (the "Software") to deal in the
+Data Files or Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, and/or sell
+copies of the Data Files or Software, and to permit persons to whom the
+Data Files or Software are furnished to do so, provided that either (a)
+this copyright and permission notice appear with all copies of the Data
+Files or Software, or (b) this copyright and permission notice appear in
+associated Documentation.
+
+THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
+KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
+THIRD PARTY RIGHTS.
+
+IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
+BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
+OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
+ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA
+FILES OR SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder shall
+not be used in advertising or otherwise to promote the sale, use or other
+dealings in these Data Files or Software without prior written
+authorization of the copyright holder.
diff --git a/LICENSE-allkeys b/LICENSE-allkeys
deleted file mode 100644
index d24b40a..0000000
--- a/LICENSE-allkeys
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright © 1991-2013 Unicode, Inc. All rights reserved. Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of the Unicode data files and any associated documentation (the "Data Files") or Unicode software and any associated documentation (the "Software") to deal in the Data Files or Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, and/or sell copies of the Data Files or Software, and to permit persons to whom the Data Files or Software are furnished to do so, provided that (a) the above copyright notice(s) and this permission notice appear with all copies of the Data Files or Software, (b) both the above copyright notice(s) and this permission notice appear in associated documentation, and (c) there is clear notice in each modified Data File or in the Software as well as in the documentation associated with the Data File(s) or Software that the data or software has been modified.
-
-THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE.
-
-Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in these Data Files or Software without prior written authorization of the copyright holder.

From c609051af4bf6f86688d3dc26e147c5e0903e62f Mon Sep 17 00:00:00 2001
From: Sandro <devel@penguinpee.nl>
Date: Fri, 8 Mar 2024 14:17:25 +0100
Subject: [PATCH 2/2] Make sure a copy of Unicode-3.0 license is shipped

Also amend `README.md` referring to Unicode-3.0 license.
---
MANIFEST.in | 2 +-
README.md | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/MANIFEST.in b/MANIFEST.in
index 09617f5..06b58d5 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,4 +1,4 @@
include LICENSE
-include LICENSE-allkeys
+include LICENSE-Unicode-3.0
include README.md

diff --git a/README.md b/README.md
index 292c580..d544e5b 100644
--- a/README.md
+++ b/README.md
@@ -63,8 +63,7 @@ Tauber, J. K. (2016). pyuca: a Python implementation of the Unicode Collation Al
## License

Python code is made available under an MIT license (see `LICENSE`).
-`allkeys.txt` is made available under the similar license defined in
-`LICENSE-allkeys`.
+`pyuce/allkeys.*txt` are made available under the Unicode-3.0 license. A copy of which can be found in `LICENSE-Unicode-3.0`.

## Contacting the Developer