notojp-matplotlib 1.0.1__tar.gz → 1.1.0__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.
@@ -1,43 +1,46 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: notojp-matplotlib
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: matplotlib のフォントを Noto Sans CJK に設定する
5
- Home-page: https://github.com/n-takumasa/notojp-matplotlib
6
- License: MIT
7
5
  Author: Takumasa Nakamura
8
- Author-email: n.takumasa@gmail.com
9
- Requires-Python: >=3.8.1
10
- Classifier: License :: OSI Approved :: MIT License
11
- Classifier: Programming Language :: Python :: 3
6
+ Author-email: Takumasa Nakamura <n.takumasa@gmail.com>
7
+ License-Expression: 0BSD
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python
10
+ Classifier: Programming Language :: Python :: 3.8
12
11
  Classifier: Programming Language :: Python :: 3.9
13
12
  Classifier: Programming Language :: Python :: 3.10
14
13
  Classifier: Programming Language :: Python :: 3.11
15
14
  Classifier: Programming Language :: Python :: 3.12
16
- Requires-Dist: matplotlib (>=3.2)
17
- Project-URL: Repository, https://github.com/n-takumasa/notojp-matplotlib
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: Implementation :: CPython
18
+ Requires-Dist: importlib-resources>=5.0 ; python_full_version < '3.9'
19
+ Requires-Dist: matplotlib>=3.2
20
+ Requires-Python: >=3.8
21
+ Project-URL: Source, https://github.com/n-takumasa/notojp-matplotlib
18
22
  Description-Content-Type: text/markdown
19
23
 
20
- # notojp-matplotlib
21
- [![pypi version](https://img.shields.io/pypi/v/notojp-matplotlib.svg)](https://pypi.python.org/project/notojp-matplotlib/)
22
- [![Python Versions](https://img.shields.io/pypi/pyversions/notojp-matplotlib.svg)](https://pypi.org/project/notojp-matplotlib/)
23
-
24
- matplotlib のフォントを [Noto Sans CJK](https://github.com/googlefonts/noto-cjk) に設定する
25
-
26
- [japanize-matplotlib](https://github.com/uehara1414/japanize-matplotlib) にインスパイアされています
27
-
28
- ## 使い方
29
-
30
- ```
31
- pip install notojp-matplotlib
32
- ```
33
-
34
- ```py
35
- import notojp_matplotlib
36
- ```
37
-
38
- ## 使い方 (Google Colaboratory)
39
- ```py
40
- %pip -q install notojp-matplotlib
41
- import notojp_matplotlib
42
- ```
43
-
24
+ # notojp-matplotlib
25
+ [![pypi version](https://img.shields.io/pypi/v/notojp-matplotlib.svg)](https://pypi.python.org/project/notojp-matplotlib/)
26
+ [![Python Versions](https://img.shields.io/pypi/pyversions/notojp-matplotlib.svg)](https://pypi.org/project/notojp-matplotlib/)
27
+
28
+ matplotlib のフォントを [Noto Sans CJK](https://github.com/googlefonts/noto-cjk) に設定する
29
+
30
+ [japanize-matplotlib](https://github.com/uehara1414/japanize-matplotlib) にインスパイアされています
31
+
32
+ ## 使い方
33
+
34
+ ```
35
+ pip install notojp-matplotlib
36
+ ```
37
+
38
+ ```py
39
+ import notojp_matplotlib
40
+ ```
41
+
42
+ ## 使い方 (Google Colaboratory)
43
+ ```py
44
+ %pip -q install notojp-matplotlib
45
+ import notojp_matplotlib
46
+ ```
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["uv_build>=0.11.28,<0.12"]
3
+ build-backend = "uv_build"
4
+
5
+ [project]
6
+ name = "notojp-matplotlib"
7
+ version = "1.1.0"
8
+ description = "matplotlib のフォントを Noto Sans CJK に設定する"
9
+ readme = "README.md"
10
+ license = "0BSD"
11
+ authors = [
12
+ { name = "Takumasa Nakamura", email = "n.takumasa@gmail.com" },
13
+ ]
14
+ requires-python = ">=3.8"
15
+ classifiers = [
16
+ "Operating System :: OS Independent",
17
+ "Programming Language :: Python",
18
+ "Programming Language :: Python :: 3.8",
19
+ "Programming Language :: Python :: 3.9",
20
+ "Programming Language :: Python :: 3.10",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
25
+ "Programming Language :: Python :: Implementation :: CPython",
26
+ ]
27
+ urls.Source = "https://github.com/n-takumasa/notojp-matplotlib"
28
+ dependencies = [
29
+ "importlib-resources>=5.0 ; python_full_version < '3.9'",
30
+ "matplotlib>=3.2",
31
+ ]
@@ -0,0 +1,18 @@
1
+ from __future__ import annotations
2
+
3
+ import sys
4
+
5
+ import matplotlib
6
+ from matplotlib.font_manager import fontManager
7
+
8
+ if sys.version_info < (3, 9):
9
+ import importlib_resources as resources
10
+ else:
11
+ from importlib import resources
12
+
13
+ FONTSDIR = "fonts"
14
+ FILE = "NotoSansCJKjp-Regular.otf"
15
+ FAMILY = "Noto Sans CJK JP"
16
+
17
+ fontManager.addfont(str(resources.files("notojp_matplotlib").joinpath(FONTSDIR, FILE)))
18
+ matplotlib.rc("font", family=FAMILY)
@@ -1,15 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from pathlib import Path
4
-
5
- import matplotlib
6
- from matplotlib.font_manager import fontManager
7
-
8
- __version__ = "1.0.1"
9
-
10
- FONTSDIR = "fonts"
11
- FILE = "NotoSansCJKjp-Regular.otf"
12
- FAMILY = "Noto Sans CJK JP"
13
-
14
- fontManager.addfont(str((Path(__file__).parent / FONTSDIR / FILE).resolve()))
15
- matplotlib.rc("font", family=FAMILY)
@@ -1,20 +0,0 @@
1
- [build-system]
2
- requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
3
- build-backend = "poetry_dynamic_versioning.backend"
4
-
5
- [tool.poetry]
6
- name = "notojp-matplotlib"
7
- version = "1.0.1"
8
- description = "matplotlib のフォントを Noto Sans CJK に設定する"
9
- authors = ["Takumasa Nakamura <n.takumasa@gmail.com>"]
10
- license = "MIT"
11
- readme = "README.md"
12
- repository = "https://github.com/n-takumasa/notojp-matplotlib"
13
- packages = [{ include = "notojp_matplotlib" }]
14
-
15
- [tool.poetry.dependencies]
16
- python = ">=3.8.1"
17
- matplotlib = ">=3.2"
18
-
19
- [tool.poetry-dynamic-versioning]
20
- enable = false