plothist-utils 0.0.1__tar.gz → 0.0.3__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.
Files changed (80) hide show
  1. plothist_utils-0.0.3/.github/workflows/ci.yaml +48 -0
  2. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/PKG-INFO +17 -16
  3. plothist_utils-0.0.3/README.md +32 -0
  4. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/noxfile.py +3 -3
  5. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/pyproject.toml +8 -8
  6. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/_version.py +16 -3
  7. plothist_utils-0.0.3/uv.lock +995 -0
  8. plothist_utils-0.0.1/.github/workflows/ci.yaml +0 -36
  9. plothist_utils-0.0.1/README.md +0 -31
  10. plothist_utils-0.0.1/uv.lock +0 -1125
  11. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/.github/release.yaml +0 -0
  12. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/.github/workflows/cd.yaml +0 -0
  13. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/.github/workflows/pr.yaml +0 -0
  14. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/.gitignore +0 -0
  15. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/.pre-commit-config.yaml +0 -0
  16. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/AUTHORS.md +0 -0
  17. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/LICENSE +0 -0
  18. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/__init__.py +0 -0
  19. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/_version.pyi +0 -0
  20. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/data/dummy_data.csv +0 -0
  21. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernmath/LICENSE_LMMath +0 -0
  22. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernmath/latinmodern-math.otf +0 -0
  23. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/LICENSE_LMRoman +0 -0
  24. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman10-bold.otf +0 -0
  25. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman10-bolditalic.otf +0 -0
  26. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman10-italic.otf +0 -0
  27. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman10-regular.otf +0 -0
  28. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman12-bold.otf +0 -0
  29. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman12-italic.otf +0 -0
  30. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman12-regular.otf +0 -0
  31. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman17-regular.otf +0 -0
  32. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman5-bold.otf +0 -0
  33. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman5-regular.otf +0 -0
  34. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman6-bold.otf +0 -0
  35. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman6-regular.otf +0 -0
  36. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman7-bold.otf +0 -0
  37. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman7-italic.otf +0 -0
  38. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman7-regular.otf +0 -0
  39. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman8-bold.otf +0 -0
  40. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman8-italic.otf +0 -0
  41. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman8-regular.otf +0 -0
  42. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman9-bold.otf +0 -0
  43. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman9-italic.otf +0 -0
  44. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmroman9-regular.otf +0 -0
  45. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromancaps10-oblique.otf +0 -0
  46. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromancaps10-regular.otf +0 -0
  47. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromandemi10-oblique.otf +0 -0
  48. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromandemi10-regular.otf +0 -0
  49. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromandunh10-oblique.otf +0 -0
  50. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromandunh10-regular.otf +0 -0
  51. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant10-bold.otf +0 -0
  52. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant10-regular.otf +0 -0
  53. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant12-regular.otf +0 -0
  54. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant17-regular.otf +0 -0
  55. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant8-regular.otf +0 -0
  56. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanslant9-regular.otf +0 -0
  57. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernroman/lmromanunsl10-regular.otf +0 -0
  58. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/LICENSE_LMSans +0 -0
  59. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans10-bold.otf +0 -0
  60. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans10-boldoblique.otf +0 -0
  61. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans10-oblique.otf +0 -0
  62. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans10-regular.otf +0 -0
  63. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans12-oblique.otf +0 -0
  64. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans12-regular.otf +0 -0
  65. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans17-oblique.otf +0 -0
  66. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans17-regular.otf +0 -0
  67. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans8-oblique.otf +0 -0
  68. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans8-regular.otf +0 -0
  69. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans9-oblique.otf +0 -0
  70. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsans9-regular.otf +0 -0
  71. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansdemicond10-oblique.otf +0 -0
  72. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansdemicond10-regular.otf +0 -0
  73. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-bold.otf +0 -0
  74. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-boldoblique.otf +0 -0
  75. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-oblique.otf +0 -0
  76. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/fonts/latinmodernsans/lmsansquot8-regular.otf +0 -0
  77. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/get_dummy_data.py +0 -0
  78. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/src/plothist_utils/metadata/.svg_metadata.yaml +0 -0
  79. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/tests/test_fonts.py +0 -0
  80. {plothist_utils-0.0.1 → plothist_utils-0.0.3}/tests/test_get_data.py +0 -0
@@ -0,0 +1,48 @@
1
+ # This workflow will install Python dependencies, run tests with a variety of Python versions
2
+ name: CI
3
+
4
+ on:
5
+ push:
6
+ branches: ["main"]
7
+ pull_request:
8
+ branches: ["main"]
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
21
+
22
+ steps:
23
+ - uses: actions/checkout@v6
24
+
25
+ - name: Install uv and set the python version
26
+ uses: astral-sh/setup-uv@v7
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+
30
+ - name: Install the project
31
+ run: |
32
+ uv sync --group dev --group test
33
+
34
+ - name: Run prek
35
+ run: |
36
+ uv run prek run --all-files
37
+
38
+ - name: Test with pytest
39
+ run: |
40
+ uv run python -m pytest
41
+
42
+ - name: Upload pytest test results
43
+ uses: actions/upload-artifact@v6
44
+ if: failure()
45
+ with:
46
+ name: pytest_results-${{ matrix.python-version }}
47
+ retention-days: 3
48
+ path: pytest_results
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.4
2
- Name: plothist_utils
3
- Version: 0.0.1
2
+ Name: plothist-utils
3
+ Version: 0.0.3
4
4
  Summary: Utilities for the plothist package
5
- Project-URL: Homepage, https://github.com/0ctagon/plothist_utils
5
+ Project-URL: Homepage, https://github.com/8-hat/plothist_utils
6
6
  Project-URL: Documentation, https://plothist.readthedocs.io/
7
- Project-URL: Bug Tracker, https://github.com/0ctagon/plothist_utils/issues
7
+ Project-URL: Bug Tracker, https://github.com/8-hat/plothist_utils/issues
8
8
  Author-email: Cyrille Praz <cyrraz.code@protonmail.com>, Tristan Fillinger <tristan.github@gmail.com>
9
9
  License-File: AUTHORS.md
10
10
  License-File: LICENSE
11
- Requires-Python: >=3.9
11
+ Requires-Python: >=3.10
12
12
  Requires-Dist: numpy>=1.14.5
13
13
  Description-Content-Type: text/markdown
14
14
 
@@ -16,17 +16,18 @@ Description-Content-Type: text/markdown
16
16
  [![CI Status][ci-badge]][ci-link]
17
17
  [![CD Status][cd-badge]][cd-link]
18
18
  [![PyPI version][pypi-version]][pypi-link]
19
- <!-- [![Conda-Forge][conda-badge]][conda-link] -->
20
-
21
- Sub-package to hold the fonts and some data to make the examples of [plothist](https://github.com/cyrraz/plothist).
22
-
23
- [ci-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml/badge.svg
24
- [ci-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/ci.yaml?query=branch%3Amain
25
- [cd-badge]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml/badge.svg
26
- [cd-link]: https://github.com/0ctagon/plothist_utils/actions/workflows/cd.yaml?query=branch%3Amain
27
- [pypi-link]: https://pypi.org/project/plothist_utils/
28
- [pypi-version]: https://badge.fury.io/py/plothist_utils.svg
29
-
19
+ [![Conda-Forge][conda-badge]][conda-link]
20
+
21
+ Sub-package to hold the fonts and some data to make the examples of [plothist](https://github.com/8-hat/plothist).
22
+
23
+ [ci-badge]: https://github.com/8-hat/plothist_utils/actions/workflows/ci.yaml/badge.svg
24
+ [ci-link]: https://github.com/8-hat/plothist_utils/actions/workflows/ci.yaml?query=branch%3Amain
25
+ [cd-badge]: https://github.com/8-hat/plothist_utils/actions/workflows/cd.yaml/badge.svg
26
+ [cd-link]: https://github.com/8-hat/plothist_utils/actions/workflows/cd.yaml?query=branch%3Amain
27
+ [pypi-link]: https://pypi.org/project/plothist-utils/
28
+ [pypi-version]: https://badge.fury.io/py/plothist-utils.svg
29
+ [conda-badge]: https://img.shields.io/conda/vn/conda-forge/plothist_utils?style=platic
30
+ [conda-link]: https://anaconda.org/conda-forge/plothist_utils
30
31
 
31
32
  ## Fonts
32
33
  Fonts distributed in this package have open licenses and can be redistributed. While it would be preferable to download the files from their original repositories, there is no convenient way to do that due to varying repo structures. The following fonts are included:
@@ -0,0 +1,32 @@
1
+ # plothist_utils
2
+ [![CI Status][ci-badge]][ci-link]
3
+ [![CD Status][cd-badge]][cd-link]
4
+ [![PyPI version][pypi-version]][pypi-link]
5
+ [![Conda-Forge][conda-badge]][conda-link]
6
+
7
+ Sub-package to hold the fonts and some data to make the examples of [plothist](https://github.com/8-hat/plothist).
8
+
9
+ [ci-badge]: https://github.com/8-hat/plothist_utils/actions/workflows/ci.yaml/badge.svg
10
+ [ci-link]: https://github.com/8-hat/plothist_utils/actions/workflows/ci.yaml?query=branch%3Amain
11
+ [cd-badge]: https://github.com/8-hat/plothist_utils/actions/workflows/cd.yaml/badge.svg
12
+ [cd-link]: https://github.com/8-hat/plothist_utils/actions/workflows/cd.yaml?query=branch%3Amain
13
+ [pypi-link]: https://pypi.org/project/plothist-utils/
14
+ [pypi-version]: https://badge.fury.io/py/plothist-utils.svg
15
+ [conda-badge]: https://img.shields.io/conda/vn/conda-forge/plothist_utils?style=platic
16
+ [conda-link]: https://anaconda.org/conda-forge/plothist_utils
17
+
18
+ ## Fonts
19
+ Fonts distributed in this package have open licenses and can be redistributed. While it would be preferable to download the files from their original repositories, there is no convenient way to do that due to varying repo structures. The following fonts are included:
20
+
21
+
22
+ #### Latin Modern Math
23
+
24
+ https://mirrors.cicku.me/ctan/fonts/lm-math/
25
+
26
+ #### Latin Modern Roman
27
+
28
+ https://www.1001fonts.com/latin-modern-roman-font.html
29
+
30
+ #### Latin Modern Sans
31
+
32
+ https://www.1001fonts.com/latin-modern-sans-font.html
@@ -6,7 +6,7 @@ nox.options.sessions = ["lint", "tests"]
6
6
  nox.needs_version = ">=2025.2.9"
7
7
  nox.options.default_venv_backend = "uv|venv"
8
8
 
9
- PYTHON_ALL_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"]
9
+ PYTHON_ALL_VERSIONS = ["3.14"]
10
10
 
11
11
 
12
12
  @nox.session(reuse_venv=True)
@@ -14,8 +14,8 @@ def lint(session: nox.Session) -> None:
14
14
  """
15
15
  Run the linter.
16
16
  """
17
- session.install("pre-commit")
18
- session.run("pre-commit", "run", "--all-files", *session.posargs)
17
+ session.install("prek")
18
+ session.run("prek", "run", "--all-files", *session.posargs)
19
19
 
20
20
 
21
21
  @nox.session(python=PYTHON_ALL_VERSIONS)
@@ -3,23 +3,23 @@ requires = ["hatchling", "hatch-vcs"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
- name = "plothist_utils"
6
+ name = "plothist-utils"
7
7
  description = "Utilities for the plothist package"
8
8
  authors = [
9
9
  {name = "Cyrille Praz", email = "cyrraz.code@protonmail.com"},
10
10
  {name = "Tristan Fillinger", email = "tristan.github@gmail.com"},
11
11
  ]
12
12
  readme = "README.md"
13
- requires-python = ">=3.9"
13
+ requires-python = ">=3.10"
14
14
  dependencies = [
15
15
  "numpy>=1.14.5",
16
16
  ]
17
17
  dynamic = ["version"]
18
18
 
19
19
  [project.urls]
20
- Homepage = "https://github.com/0ctagon/plothist_utils"
20
+ Homepage = "https://github.com/8-hat/plothist_utils"
21
21
  Documentation = "https://plothist.readthedocs.io/"
22
- "Bug Tracker" = "https://github.com/0ctagon/plothist_utils/issues"
22
+ "Bug Tracker" = "https://github.com/8-hat/plothist_utils/issues"
23
23
 
24
24
  [tool.codespell]
25
25
  skip = '*.pdf,./test/*,*.svg,./docs/html/*'
@@ -28,12 +28,12 @@ write-changes = true
28
28
 
29
29
  [dependency-groups]
30
30
  dev = [
31
- "pre-commit>=4.1.0",
31
+ "prek>=0.1.1",
32
32
  ]
33
33
  test = [
34
- "pytest>=8.3.5",
35
- "pytest-cov>=4.1.0",
36
- "matplotlib>=3.0.0",
34
+ "pytest>=9",
35
+ "pytest-cov>=7",
36
+ "matplotlib>=3.10.8",
37
37
  ]
38
38
 
39
39
 
@@ -1,7 +1,14 @@
1
1
  # file generated by setuptools-scm
2
2
  # don't change, don't track in version control
3
3
 
4
- __all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
5
12
 
6
13
  TYPE_CHECKING = False
7
14
  if TYPE_CHECKING:
@@ -9,13 +16,19 @@ if TYPE_CHECKING:
9
16
  from typing import Union
10
17
 
11
18
  VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
12
20
  else:
13
21
  VERSION_TUPLE = object
22
+ COMMIT_ID = object
14
23
 
15
24
  version: str
16
25
  __version__: str
17
26
  __version_tuple__: VERSION_TUPLE
18
27
  version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
19
30
 
20
- __version__ = version = '0.0.1'
21
- __version_tuple__ = version_tuple = (0, 0, 1)
31
+ __version__ = version = '0.0.3'
32
+ __version_tuple__ = version_tuple = (0, 0, 3)
33
+
34
+ __commit_id__ = commit_id = None