deezer-oauth-cli 1.3.0__tar.gz → 1.4.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,23 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: deezer-oauth-cli
3
- Version: 1.3.0
3
+ Version: 1.4.0
4
4
  Summary: A small CLI to quickly obtain an API token for Deezer API.
5
5
  Home-page: https://github.com/browniebroke/deezer-oauth-cli
6
6
  License: MIT
7
7
  Author: Bruno Alla
8
8
  Author-email: alla.brunoo@gmail.com
9
- Requires-Python: >=3.8,<4.0
9
+ Requires-Python: >=3.9,<4.0
10
10
  Classifier: Development Status :: 2 - Pre-Alpha
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: MIT License
13
13
  Classifier: Natural Language :: English
14
14
  Classifier: Operating System :: OS Independent
15
15
  Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3.8
17
16
  Classifier: Programming Language :: Python :: 3.9
18
17
  Classifier: Programming Language :: Python :: 3.10
19
18
  Classifier: Programming Language :: Python :: 3.11
20
19
  Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Topic :: Software Development :: Libraries
22
22
  Requires-Dist: httpx (>=0.27.0)
23
23
  Requires-Dist: rich (>=10)
@@ -42,10 +42,10 @@ Description-Content-Type: text/markdown
42
42
  </p>
43
43
  <p align="center">
44
44
  <a href="https://python-poetry.org/">
45
- <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
45
+ <img src="https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json" alt="Poetry">
46
46
  </a>
47
- <a href="https://github.com/ambv/black">
48
- <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">
47
+ <a href="https://github.com/astral-sh/ruff">
48
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
49
49
  </a>
50
50
  <a href="https://github.com/pre-commit/pre-commit">
51
51
  <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
@@ -10,10 +10,10 @@
10
10
  </p>
11
11
  <p align="center">
12
12
  <a href="https://python-poetry.org/">
13
- <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
13
+ <img src="https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json" alt="Poetry">
14
14
  </a>
15
- <a href="https://github.com/ambv/black">
16
- <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">
15
+ <a href="https://github.com/astral-sh/ruff">
16
+ <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
17
17
  </a>
18
18
  <a href="https://github.com/pre-commit/pre-commit">
19
19
  <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
@@ -1,22 +1,26 @@
1
+ [build-system]
2
+ build-backend = "poetry.core.masonry.api"
3
+ requires = [ "poetry-core>=1" ]
4
+
1
5
  [tool.poetry]
2
6
  name = "deezer-oauth-cli"
3
- version = "1.3.0"
7
+ version = "1.4.0"
4
8
  description = "A small CLI to quickly obtain an API token for Deezer API."
5
- authors = ["Bruno Alla <alla.brunoo@gmail.com>"]
9
+ authors = [ "Bruno Alla <alla.brunoo@gmail.com>" ]
6
10
  license = "MIT"
7
11
  readme = "README.md"
8
12
  repository = "https://github.com/browniebroke/deezer-oauth-cli"
9
13
  documentation = "https://github.com/browniebroke/deezer-oauth-cli/blob/main/README.md"
10
14
  classifiers = [
11
- "Development Status :: 2 - Pre-Alpha",
12
- "Intended Audience :: Developers",
13
- "Natural Language :: English",
14
- "Operating System :: OS Independent",
15
- "Topic :: Software Development :: Libraries",
16
- "Programming Language :: Python :: 3.12",
15
+ "Development Status :: 2 - Pre-Alpha",
16
+ "Intended Audience :: Developers",
17
+ "Natural Language :: English",
18
+ "Operating System :: OS Independent",
19
+ "Topic :: Software Development :: Libraries",
20
+ "Programming Language :: Python :: 3.12",
17
21
  ]
18
22
  packages = [
19
- { include = "deezer_oauth", from = "src" },
23
+ { include = "deezer_oauth", from = "src" },
20
24
  ]
21
25
 
22
26
  [tool.poetry.urls]
@@ -29,10 +33,10 @@ packages = [
29
33
  deezer-oauth = "deezer_oauth.main:app"
30
34
 
31
35
  [tool.poetry.dependencies]
32
- python = "^3.8"
36
+ python = "^3.9"
33
37
  httpx = ">=0.27.0"
34
38
  rich = ">=10"
35
- typer = {extras = ["all"], version = ">=0.12.0"}
39
+ typer = { extras = [ "all" ], version = ">=0.12.0" }
36
40
 
37
41
  [tool.poetry.group.dev.dependencies]
38
42
  pyfakefs = "^5.0"
@@ -41,32 +45,44 @@ pytest-cov = "^5.0.0"
41
45
  pytest-mock = "^3.6"
42
46
  respx = "^0.21.1"
43
47
 
44
- [tool.semantic_release]
45
- version_toml = ["pyproject.toml:tool.poetry.version"]
46
- version_variables = [
47
- "src/deezer_oauth/__init__.py:__version__",
48
- ]
49
- build_command = "pip install poetry && poetry build"
48
+ [tool.ruff]
49
+ target-version = "py39"
50
+ line-length = 88
50
51
 
51
- [tool.semantic_release.changelog]
52
- exclude_commit_patterns = [
53
- "chore*",
54
- "ci*",
52
+ lint.select = [
53
+ "B", # flake8-bugbear
54
+ "C4", # flake8-comprehensions
55
+ "D", # flake8-docstrings
56
+ "E", # pycodestyle
57
+ "F", # pyflake
58
+ "I", # isort
59
+ "RUF", # ruff specific
60
+ "S", # flake8-bandit
61
+ "UP", # pyupgrade
62
+ "W", # pycodestyle
55
63
  ]
56
-
57
- [tool.semantic_release.changelog.environment]
58
- keep_trailing_newline = true
59
-
60
- [tool.semantic_release.branches.main]
61
- match = "main"
62
-
63
- [tool.semantic_release.branches.noop]
64
- match = "(?!main$)"
65
- prerelease = true
64
+ lint.ignore = [
65
+ "D100", # Missing docstring in public module
66
+ "D104", # Missing docstring in public package
67
+ "D107", # Missing docstring in `__init__`
68
+ "D203", # 1 blank line required before class docstring
69
+ "D212", # Multi-line docstring summary should start at the first line
70
+ "D401", # First line of docstring should be in imperative mood
71
+ ]
72
+ lint.per-file-ignores."setup.py" = [ "D100" ]
73
+ lint.per-file-ignores."tests/**/*" = [
74
+ "D100",
75
+ "D101",
76
+ "D102",
77
+ "D103",
78
+ "D104",
79
+ "S101",
80
+ ]
81
+ lint.isort.known-first-party = [ "deezer_oauth", "tests" ]
66
82
 
67
83
  [tool.pytest.ini_options]
68
84
  addopts = "-v -Wdefault --cov=deezer_oauth --cov-report=term-missing:skip-covered"
69
- pythonpath = ["src"]
85
+ pythonpath = [ "src" ]
70
86
 
71
87
  [tool.coverage.run]
72
88
  branch = true
@@ -74,47 +90,10 @@ branch = true
74
90
  [tool.coverage.report]
75
91
  ignore_errors = true
76
92
  exclude_lines = [
77
- "pragma: no cover",
78
- "@overload",
79
- "if TYPE_CHECKING"
80
- ]
81
-
82
- [tool.ruff]
83
- target-version = "py38"
84
- line-length = 88
85
- ignore = [
86
- "D203", # 1 blank line required before class docstring
87
- "D212", # Multi-line docstring summary should start at the first line
88
- "D100", # Missing docstring in public module
89
- "D104", # Missing docstring in public package
90
- "D107", # Missing docstring in `__init__`
91
- "D401", # First line of docstring should be in imperative mood
92
- ]
93
- select = [
94
- "B", # flake8-bugbear
95
- "D", # flake8-docstrings
96
- "C4", # flake8-comprehensions
97
- "S", # flake8-bandit
98
- "F", # pyflake
99
- "E", # pycodestyle
100
- "W", # pycodestyle
101
- "UP", # pyupgrade
102
- "I", # isort
103
- "RUF", # ruff specific
104
- ]
105
- [tool.ruff.per-file-ignores]
106
- "tests/**/*" = [
107
- "D100",
108
- "D101",
109
- "D102",
110
- "D103",
111
- "D104",
112
- "S101",
93
+ "pragma: no cover",
94
+ "@overload",
95
+ "if TYPE_CHECKING",
113
96
  ]
114
- "setup.py" = ["D100"]
115
-
116
- [tool.ruff.isort]
117
- known-first-party = ["deezer_oauth", "tests"]
118
97
 
119
98
  [tool.mypy]
120
99
  check_untyped_defs = true
@@ -131,6 +110,26 @@ warn_unused_ignores = true
131
110
  module = "tests.*"
132
111
  allow_untyped_defs = true
133
112
 
134
- [build-system]
135
- requires = ["poetry-core>=1.0.0"]
136
- build-backend = "poetry.core.masonry.api"
113
+ [tool.semantic_release]
114
+ version_toml = [ "pyproject.toml:tool.poetry.version" ]
115
+ version_variables = [
116
+ "src/deezer_oauth/__init__.py:__version__",
117
+ ]
118
+ build_command = "pip install poetry && poetry build"
119
+
120
+ [tool.semantic_release.changelog]
121
+ exclude_commit_patterns = [
122
+ "chore.*",
123
+ "ci.*",
124
+ "Merge pull request .*",
125
+ ]
126
+
127
+ [tool.semantic_release.changelog.environment]
128
+ keep_trailing_newline = true
129
+
130
+ [tool.semantic_release.branches.main]
131
+ match = "main"
132
+
133
+ [tool.semantic_release.branches.noop]
134
+ match = "(?!main$)"
135
+ prerelease = true
@@ -0,0 +1 @@
1
+ __version__ = "1.4.0"
@@ -1 +0,0 @@
1
- __version__ = "1.3.0"