python-gitmojis 1.0.0__tar.gz → 1.2.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.
Files changed (26) hide show
  1. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/LICENSE +1 -1
  2. {python-gitmojis-1.0.0/src/python_gitmojis.egg-info → python_gitmojis-1.2.0}/PKG-INFO +15 -19
  3. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/README.md +7 -1
  4. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/pyproject.toml +48 -27
  5. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0/src/python_gitmojis.egg-info}/PKG-INFO +15 -19
  6. python_gitmojis-1.2.0/src/python_gitmojis.egg-info/requires.txt +2 -0
  7. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/tests/test_cli.py +2 -2
  8. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/tests/test_core.py +1 -1
  9. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/tests/test_gitmoji.py +2 -2
  10. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/tests/test_guide.py +2 -2
  11. python-gitmojis-1.0.0/src/python_gitmojis.egg-info/requires.txt +0 -19
  12. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/setup.cfg +0 -0
  13. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/__init__.py +0 -0
  14. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/__main__.py +0 -0
  15. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/cli/__init__.py +0 -0
  16. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/cli/commands.py +0 -0
  17. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/core.py +0 -0
  18. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/defaults.py +0 -0
  19. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/exceptions.py +0 -0
  20. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/model.py +0 -0
  21. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/gitmojis/py.typed +0 -0
  22. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/python_gitmojis.egg-info/SOURCES.txt +0 -0
  23. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/python_gitmojis.egg-info/dependency_links.txt +0 -0
  24. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/python_gitmojis.egg-info/entry_points.txt +0 -0
  25. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/src/python_gitmojis.egg-info/top_level.txt +0 -0
  26. {python-gitmojis-1.0.0 → python_gitmojis-1.2.0}/tests/test_defaults.py +0 -0
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Kamil Paduszyński
3
+ Copyright (c) 2023-2026 Kamil Paduszyński
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python-gitmojis
3
- Version: 1.0.0
3
+ Version: 1.2.0
4
4
  Summary: 😜 The official Gitmoji Guide in Python projects 🐍
5
5
  Author-email: Kamil Paduszyński <paduszyk@gmail.com>
6
6
  Keywords: emoji,git,gitmoji
@@ -12,26 +12,16 @@ Classifier: Programming Language :: Python
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
15
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
19
  Requires-Python: >=3.10
17
20
  Description-Content-Type: text/markdown
18
21
  License-File: LICENSE
19
- Requires-Dist: click
20
- Requires-Dist: requests
21
- Provides-Extra: dev
22
- Requires-Dist: nox; extra == "dev"
23
- Requires-Dist: pre-commit; extra == "dev"
24
- Provides-Extra: lint
25
- Requires-Dist: black; extra == "lint"
26
- Requires-Dist: mypy; extra == "lint"
27
- Requires-Dist: ruff; extra == "lint"
28
- Requires-Dist: types-requests; extra == "lint"
29
- Provides-Extra: test
30
- Requires-Dist: pytest; extra == "test"
31
- Requires-Dist: pytest-click; extra == "test"
32
- Requires-Dist: pytest-cov; extra == "test"
33
- Requires-Dist: pytest-custom-exit-code; extra == "test"
34
- Requires-Dist: pytest-mock; extra == "test"
22
+ Requires-Dist: click<9.0.0,>=8.4.2
23
+ Requires-Dist: requests<3.0.0,>=2.34.2
24
+ Dynamic: license-file
35
25
 
36
26
  # python-gitmojis
37
27
 
@@ -44,6 +34,11 @@ Requires-Dist: pytest-mock; extra == "test"
44
34
  [![mypy](https://img.shields.io/badge/type--checked-mypy-blue?style=flat-square)][mypy]
45
35
  [![black](https://img.shields.io/badge/code%20style-black-black?style=flat-square)][black]
46
36
 
37
+ [![pypi-status](https://img.shields.io/pypi/status/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
38
+ [![pypi-version](https://img.shields.io/pypi/v/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
39
+ [![pypi-python-version](https://img.shields.io/pypi/pyversions/python-gitmojis?style=flat-square&logo=python&logoColor=white)][pypi]
40
+ [![pypi-license](https://img.shields.io/pypi/l/python-gitmojis?style=flat-square&label=license)][pypi]
41
+
47
42
  ## Summary
48
43
 
49
44
  This package provides a few simple utilities to apply the official
@@ -56,7 +51,7 @@ commit and pull request messages seem feasible as well.
56
51
 
57
52
  - Handle individual Gitmojis and their lists using Python classes. 👔
58
53
  - Fetch Gitmoji data directly from the official [Gitmoji API][gitmoji-api]. 😜
59
- - Graceful degradation: If the API is unavailable, fall back to backup data. 🛟
54
+ - Graceful degradation: If the API is unavailable, fall back to backup data. 🦺
60
55
 
61
56
  ## Installation
62
57
 
@@ -259,4 +254,5 @@ Released under the [MIT License][license].
259
254
  [nox]: https://github.com/wntrblm/nox
260
255
  [pep-557]: https://peps.python.org/pep-0557/
261
256
  [pre-commit.ci]: https://results.pre-commit.ci/latest/github/paduszyk/python-gitmojis/main
257
+ [pypi]: https://pypi.org/project/python-gitmojis/
262
258
  [ruff]: https://github.com/astral-sh/ruff
@@ -9,6 +9,11 @@
9
9
  [![mypy](https://img.shields.io/badge/type--checked-mypy-blue?style=flat-square)][mypy]
10
10
  [![black](https://img.shields.io/badge/code%20style-black-black?style=flat-square)][black]
11
11
 
12
+ [![pypi-status](https://img.shields.io/pypi/status/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
13
+ [![pypi-version](https://img.shields.io/pypi/v/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
14
+ [![pypi-python-version](https://img.shields.io/pypi/pyversions/python-gitmojis?style=flat-square&logo=python&logoColor=white)][pypi]
15
+ [![pypi-license](https://img.shields.io/pypi/l/python-gitmojis?style=flat-square&label=license)][pypi]
16
+
12
17
  ## Summary
13
18
 
14
19
  This package provides a few simple utilities to apply the official
@@ -21,7 +26,7 @@ commit and pull request messages seem feasible as well.
21
26
 
22
27
  - Handle individual Gitmojis and their lists using Python classes. 👔
23
28
  - Fetch Gitmoji data directly from the official [Gitmoji API][gitmoji-api]. 😜
24
- - Graceful degradation: If the API is unavailable, fall back to backup data. 🛟
29
+ - Graceful degradation: If the API is unavailable, fall back to backup data. 🦺
25
30
 
26
31
  ## Installation
27
32
 
@@ -224,4 +229,5 @@ Released under the [MIT License][license].
224
229
  [nox]: https://github.com/wntrblm/nox
225
230
  [pep-557]: https://peps.python.org/pep-0557/
226
231
  [pre-commit.ci]: https://results.pre-commit.ci/latest/github/paduszyk/python-gitmojis/main
232
+ [pypi]: https://pypi.org/project/python-gitmojis/
227
233
  [ruff]: https://github.com/astral-sh/ruff
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "python-gitmojis"
10
- version = "1.0.0"
10
+ version = "1.2.0"
11
11
  description = "😜 The official Gitmoji Guide in Python projects 🐍"
12
12
  readme = "README.md"
13
13
  authors = [
@@ -23,36 +23,54 @@ classifiers = [
23
23
  "Programming Language :: Python :: 3.10",
24
24
  "Programming Language :: Python :: 3.11",
25
25
  "Programming Language :: Python :: 3.12",
26
+ "Programming Language :: Python :: 3.13",
27
+ "Programming Language :: Python :: 3.14",
28
+ "Programming Language :: Python :: 3.15",
26
29
  "Topic :: Software Development :: Libraries :: Python Modules",
27
30
  ]
28
31
  requires-python = ">= 3.10"
29
32
  dependencies = [
30
- "click",
31
- "requests",
33
+ "click>=8.4.2,<9.0.0",
34
+ "requests>=2.34.2,<3.0.0",
32
35
  ]
33
36
 
34
- [project.optional-dependencies]
37
+ [project.scripts]
38
+ "gitmojis" = "gitmojis.__main__:main"
39
+
40
+ [dependency-groups]
41
+ black = [
42
+ "black>=26.5.1,<27.0.0",
43
+ ]
35
44
  dev = [
36
- "nox",
37
- "pre-commit",
45
+ { include-group = "black" },
46
+ { include-group = "local" },
47
+ { include-group = "nox" },
48
+ { include-group = "mypy" },
49
+ { include-group = "ruff" },
50
+ { include-group = "test" },
51
+ ]
52
+ local = [
53
+ "pre-commit>=4.6.1,<5.0.0",
54
+ ]
55
+ nox = [
56
+ "nox>=2026.7.11,<2027.0.0",
57
+ "nox-uv>=0.8.0",
38
58
  ]
39
- lint = [
40
- "black",
41
- "mypy",
42
- "ruff",
43
- "types-requests",
59
+ ruff = [
60
+ "ruff>=0.17.0,<0.18.0",
61
+ ]
62
+ mypy = [
63
+ "mypy>=2.3.0,<3.0.0",
64
+ "types-requests>=2.33.0.20260712,<3.0.0.0",
44
65
  ]
45
66
  test = [
46
- "pytest",
47
- "pytest-click",
48
- "pytest-cov",
49
- "pytest-custom-exit-code",
50
- "pytest-mock",
67
+ "pytest>=9.1.1,<10.0.0",
68
+ "pytest-click>=1.1.0,<2.0.0",
69
+ "pytest-cov>=7.1.0,<8.0.0",
70
+ "pytest-custom-exit-code>=0.3.0,<0.4.0",
71
+ "pytest-mock>=3.15.1,<4.0.0",
51
72
  ]
52
73
 
53
- [project.scripts]
54
- "gitmojis" = "gitmojis.__main__:main"
55
-
56
74
  [tool.setuptools.packages.find]
57
75
  include = ["gitmojis*"]
58
76
  where = ["src"]
@@ -95,6 +113,7 @@ warn_unused_configs = true
95
113
  # https://docs.astral.sh/ruff/settings/
96
114
 
97
115
  [tool.ruff]
116
+ [tool.ruff.lint]
98
117
  select = [
99
118
  "F", # pyflakes
100
119
  "E", # pycodestyle (errors)
@@ -110,12 +129,12 @@ select = [
110
129
  "Q", # flake8-quotes
111
130
  "PTH", # flake8-use-pathlib
112
131
  ]
113
- ignore = ["E501", "N818", "D1", "D205", "PT004", "PT016"]
132
+ ignore = ["E501", "N818", "D1", "D205", "PT016"]
114
133
 
115
- [tool.ruff.pydocstyle]
134
+ [tool.ruff.lint.pydocstyle]
116
135
  convention = "google"
117
136
 
118
- [tool.ruff.isort]
137
+ [tool.ruff.lint.isort]
119
138
  known-first-party = ["gitmojis"]
120
139
 
121
140
  # Pytest
@@ -126,11 +145,6 @@ addopts = [
126
145
  "-ra",
127
146
  "-q",
128
147
  "--strict-markers",
129
- "--cov=src/",
130
- "--cov-branch",
131
- "--cov-append",
132
- "--cov-report=term-missing:skip-covered",
133
- "--cov-report=xml",
134
148
  "--suppress-no-test-exit-code",
135
149
  ]
136
150
  pythonpath = [".", "src"]
@@ -139,6 +153,10 @@ testpaths = ["tests/"]
139
153
  # Coverage.py
140
154
  # https://coverage.readthedocs.io/en/latest/config.html
141
155
 
156
+ [tool.coverage.run]
157
+ branch = true
158
+ source = ["src/"]
159
+
142
160
  [tool.coverage.report]
143
161
  exclude_also = [
144
162
  "@(abc\\.)?abstractmethod",
@@ -153,3 +171,6 @@ exclude_also = [
153
171
  "raise AssertionError",
154
172
  "raise NotImplementedError",
155
173
  ]
174
+ show_missing = true
175
+ skip_covered = true
176
+ skip_empty = true
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: python-gitmojis
3
- Version: 1.0.0
3
+ Version: 1.2.0
4
4
  Summary: 😜 The official Gitmoji Guide in Python projects 🐍
5
5
  Author-email: Kamil Paduszyński <paduszyk@gmail.com>
6
6
  Keywords: emoji,git,gitmoji
@@ -12,26 +12,16 @@ Classifier: Programming Language :: Python
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
15
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
16
19
  Requires-Python: >=3.10
17
20
  Description-Content-Type: text/markdown
18
21
  License-File: LICENSE
19
- Requires-Dist: click
20
- Requires-Dist: requests
21
- Provides-Extra: dev
22
- Requires-Dist: nox; extra == "dev"
23
- Requires-Dist: pre-commit; extra == "dev"
24
- Provides-Extra: lint
25
- Requires-Dist: black; extra == "lint"
26
- Requires-Dist: mypy; extra == "lint"
27
- Requires-Dist: ruff; extra == "lint"
28
- Requires-Dist: types-requests; extra == "lint"
29
- Provides-Extra: test
30
- Requires-Dist: pytest; extra == "test"
31
- Requires-Dist: pytest-click; extra == "test"
32
- Requires-Dist: pytest-cov; extra == "test"
33
- Requires-Dist: pytest-custom-exit-code; extra == "test"
34
- Requires-Dist: pytest-mock; extra == "test"
22
+ Requires-Dist: click<9.0.0,>=8.4.2
23
+ Requires-Dist: requests<3.0.0,>=2.34.2
24
+ Dynamic: license-file
35
25
 
36
26
  # python-gitmojis
37
27
 
@@ -44,6 +34,11 @@ Requires-Dist: pytest-mock; extra == "test"
44
34
  [![mypy](https://img.shields.io/badge/type--checked-mypy-blue?style=flat-square)][mypy]
45
35
  [![black](https://img.shields.io/badge/code%20style-black-black?style=flat-square)][black]
46
36
 
37
+ [![pypi-status](https://img.shields.io/pypi/status/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
38
+ [![pypi-version](https://img.shields.io/pypi/v/python-gitmojis?style=flat-square&logo=pypi&logoColor=white)][pypi]
39
+ [![pypi-python-version](https://img.shields.io/pypi/pyversions/python-gitmojis?style=flat-square&logo=python&logoColor=white)][pypi]
40
+ [![pypi-license](https://img.shields.io/pypi/l/python-gitmojis?style=flat-square&label=license)][pypi]
41
+
47
42
  ## Summary
48
43
 
49
44
  This package provides a few simple utilities to apply the official
@@ -56,7 +51,7 @@ commit and pull request messages seem feasible as well.
56
51
 
57
52
  - Handle individual Gitmojis and their lists using Python classes. 👔
58
53
  - Fetch Gitmoji data directly from the official [Gitmoji API][gitmoji-api]. 😜
59
- - Graceful degradation: If the API is unavailable, fall back to backup data. 🛟
54
+ - Graceful degradation: If the API is unavailable, fall back to backup data. 🦺
60
55
 
61
56
  ## Installation
62
57
 
@@ -259,4 +254,5 @@ Released under the [MIT License][license].
259
254
  [nox]: https://github.com/wntrblm/nox
260
255
  [pep-557]: https://peps.python.org/pep-0557/
261
256
  [pre-commit.ci]: https://results.pre-commit.ci/latest/github/paduszyk/python-gitmojis/main
257
+ [pypi]: https://pypi.org/project/python-gitmojis/
262
258
  [ruff]: https://github.com/astral-sh/ruff
@@ -0,0 +1,2 @@
1
+ click<9.0.0,>=8.4.2
2
+ requests<3.0.0,>=2.34.2
@@ -10,13 +10,13 @@ from gitmojis.model import Guide
10
10
 
11
11
 
12
12
  def test_gitmojis_cli_runs_as_entry_point():
13
- result = subprocess.run(["gitmojis"])
13
+ result = subprocess.run(["gitmojis", "--version"])
14
14
 
15
15
  assert result.returncode == 0
16
16
 
17
17
 
18
18
  def test_gitmojis_cli_runs_as_python_script():
19
- result = subprocess.run([sys.executable, "-m", "gitmojis"])
19
+ result = subprocess.run([sys.executable, "-m", "gitmojis", "--version"])
20
20
 
21
21
  assert result.returncode == 0
22
22
 
@@ -7,7 +7,7 @@ from gitmojis.exceptions import ApiRequestError, ResponseJsonError
7
7
  from gitmojis.model import Guide
8
8
 
9
9
 
10
- @pytest.fixture()
10
+ @pytest.fixture
11
11
  def response(mocker):
12
12
  return mocker.Mock(spec_set=requests.Response)
13
13
 
@@ -5,7 +5,7 @@ import pytest
5
5
  from gitmojis.model import Gitmoji
6
6
 
7
7
 
8
- @pytest.fixture()
8
+ @pytest.fixture
9
9
  def gitmoji_json():
10
10
  return {
11
11
  "emoji": "🐛",
@@ -17,7 +17,7 @@ def gitmoji_json():
17
17
  }
18
18
 
19
19
 
20
- @pytest.fixture()
20
+ @pytest.fixture
21
21
  def gitmoji(gitmoji_json):
22
22
  return Gitmoji(**gitmoji_json)
23
23
 
@@ -3,7 +3,7 @@ import pytest
3
3
  from gitmojis.model import Gitmoji, Guide
4
4
 
5
5
 
6
- @pytest.fixture()
6
+ @pytest.fixture
7
7
  def gitmojis_json():
8
8
  return [
9
9
  {
@@ -41,7 +41,7 @@ def gitmojis_json():
41
41
  ]
42
42
 
43
43
 
44
- @pytest.fixture()
44
+ @pytest.fixture
45
45
  def guide(gitmojis_json):
46
46
  return Guide(gitmojis=[Gitmoji(**gitmoji_json) for gitmoji_json in gitmojis_json])
47
47
 
@@ -1,19 +0,0 @@
1
- click
2
- requests
3
-
4
- [dev]
5
- nox
6
- pre-commit
7
-
8
- [lint]
9
- black
10
- mypy
11
- ruff
12
- types-requests
13
-
14
- [test]
15
- pytest
16
- pytest-click
17
- pytest-cov
18
- pytest-custom-exit-code
19
- pytest-mock