SudachiDict-full 20250129__tar.gz → 20250515__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of SudachiDict-full might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "20250515",
3
+ "dict_version": "20250515",
4
+ "edition": "full"
5
+ }
@@ -1,14 +1,23 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: SudachiDict-full
3
- Version: 20250129
3
+ Version: 20250515
4
4
  Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
5
  Home-page: https://github.com/WorksApplications/SudachiDict
6
6
  Author: Works Applications
7
7
  Author-email: sudachi@worksap.co.jp
8
8
  License: Apache-2.0
9
- Platform: UNKNOWN
10
9
  Description-Content-Type: text/markdown
11
10
  License-File: LICENSE-2.0.txt
11
+ Requires-Dist: SudachiPy<0.7,>=0.5
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: license-file
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
12
21
 
13
22
  # Sudachi Dictionary for SudachiPy
14
23
 
@@ -60,5 +69,3 @@ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy do
60
69
  - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
61
70
  - japanese
62
71
  - [https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
63
-
64
-
@@ -1,14 +1,23 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: SudachiDict-full
3
- Version: 20250129
3
+ Version: 20250515
4
4
  Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
5
  Home-page: https://github.com/WorksApplications/SudachiDict
6
6
  Author: Works Applications
7
7
  Author-email: sudachi@worksap.co.jp
8
8
  License: Apache-2.0
9
- Platform: UNKNOWN
10
9
  Description-Content-Type: text/markdown
11
10
  License-File: LICENSE-2.0.txt
11
+ Requires-Dist: SudachiPy<0.7,>=0.5
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: license-file
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
12
21
 
13
22
  # Sudachi Dictionary for SudachiPy
14
23
 
@@ -60,5 +69,3 @@ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy do
60
69
  - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
61
70
  - japanese
62
71
  - [https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
63
-
64
-
@@ -12,22 +12,24 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- import setuptools
16
- import os
17
15
  import json
16
+ import os
18
17
  import sys
19
18
  from urllib.parse import urlparse
20
19
  from urllib.request import urlretrieve
21
20
  from zipfile import ZipFile
22
21
 
22
+ import setuptools
23
+
23
24
  with open("INFO.json") as fh:
24
25
  dict_info = json.load(fh)
25
26
  PKG_VERSION = dict_info["version"]
26
27
  DICT_VERSION = dict_info["dict_version"]
27
28
  DICT_EDITION = dict_info["edition"]
28
29
 
29
- ZIP_URL = "https://d2ej7fkh96fzlu.cloudfront.net/sudachidict/" \
30
- "sudachi-dictionary-{}-{}.zip".format(DICT_VERSION, DICT_EDITION)
30
+ ZIP_URL = "https://d2ej7fkh96fzlu.cloudfront.net/sudachidict/" "sudachi-dictionary-{}-{}.zip".format(
31
+ DICT_VERSION, DICT_EDITION
32
+ )
31
33
  ZIP_NAME = urlparse(ZIP_URL).path.split("/")[-1]
32
34
  UNZIP_NAME = "sudachi-dictionary-{}".format(DICT_VERSION)
33
35
  PKG_DIR = "sudachidict_{}".format(DICT_EDITION)
@@ -41,8 +43,7 @@ if not os.path.exists(RESOURCE_DIR):
41
43
  with ZipFile(ZIP_NAME) as z:
42
44
  z.extractall()
43
45
  os.rename(UNZIP_NAME, RESOURCE_DIR)
44
- os.rename(os.path.join(RESOURCE_DIR, BINARY_NAME),
45
- os.path.join(RESOURCE_DIR, "system.dic"))
46
+ os.rename(os.path.join(RESOURCE_DIR, BINARY_NAME), os.path.join(RESOURCE_DIR, "system.dic"))
46
47
  os.remove(ZIP_NAME)
47
48
  print("downloaded and extracted dictionary to `{}`.".format(RESOURCE_DIR), file=sys.stderr)
48
49
 
@@ -61,7 +62,5 @@ setuptools.setup(
61
62
  author_email="sudachi@worksap.co.jp",
62
63
  packages=setuptools.find_packages(),
63
64
  package_data={"": ["resources/*"]},
64
- install_requires=[
65
- "SudachiPy>=0.5,<0.7"
66
- ],
65
+ install_requires=["SudachiPy>=0.5,<0.7"],
67
66
  )
@@ -1,5 +0,0 @@
1
- {
2
- "version": "20250129",
3
- "dict_version": "20250129",
4
- "edition": "full"
5
- }