Habiticalib 0.4.5__tar.gz → 0.4.6__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.
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/workflows/build.yml +4 -1
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/workflows/documentation.yml +2 -4
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.pre-commit-config.yaml +3 -3
- {habiticalib-0.4.5 → habiticalib-0.4.6}/PKG-INFO +5 -5
- {habiticalib-0.4.5 → habiticalib-0.4.6}/pyproject.toml +24 -23
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/const.py +1 -1
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.cruft.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.editorconfig +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/FUNDING.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/dependabot.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/labels.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/release-drafter.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/workflows/draft.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.github/workflows/labeler.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.gitignore +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/.vscode/settings.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/CONTRIBUTING.md +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/LICENSE +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/README.md +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/docs/index.md +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/docs/reference/habiticalib.md +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/mkdocs.yml +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/renovate.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/__init__.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/exceptions.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/ha.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/helpers.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/lib.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/py.typed +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/src/habiticalib/typedefs.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__init__.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar.png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[animated_background].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[default].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[kickstarter_backer_gear].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[kickstarter_pet_mount].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[seafoam].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[shinySeed].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[sleeping].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[snowball].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[special_0].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[special_1].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[spookySparkles].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[weapon_critical].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_from_styles[with_chair].png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar_to_file.png +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_group.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_login.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_serialize.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_tasks.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_user.ambr +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/conftest.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/empty_data.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/login.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/party.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/task.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/task_order.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/tasks.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_anonymized.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_animated_background.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_kickstarter.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_kickstarter_pets.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_seafoam.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_shinySeed.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_sleeping.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_snowball.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_special_0.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_special_1.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_spookySparkles.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_weapon_critical.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/fixtures/user_styles_with_chair.json +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_avatar.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_group.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_login.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_serialize.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_tasks.py +0 -0
- {habiticalib-0.4.5 → habiticalib-0.4.6}/tests/test_user.py +0 -0
|
@@ -10,8 +10,11 @@ jobs:
|
|
|
10
10
|
runs-on: ${{ matrix.os }}
|
|
11
11
|
steps:
|
|
12
12
|
- uses: actions/checkout@v5
|
|
13
|
+
- uses: actions/setup-python@v6
|
|
14
|
+
with:
|
|
15
|
+
python-version: '3.14'
|
|
13
16
|
- name: Install dependencies
|
|
14
|
-
run: pipx install hatch
|
|
17
|
+
run: pipx install hatch --python python3.14
|
|
15
18
|
- name: Lint and typecheck
|
|
16
19
|
run: |
|
|
17
20
|
hatch run lint-check
|
|
@@ -31,12 +31,10 @@ jobs:
|
|
|
31
31
|
- name: Set up Python
|
|
32
32
|
uses: actions/setup-python@v6
|
|
33
33
|
with:
|
|
34
|
-
python-version: '3.
|
|
34
|
+
python-version: '3.14'
|
|
35
35
|
- name: Install dependencies
|
|
36
36
|
run: |
|
|
37
|
-
|
|
38
|
-
pip install hatch
|
|
39
|
-
hatch env create
|
|
37
|
+
pipx install hatch --python python3.14
|
|
40
38
|
- name: Build
|
|
41
39
|
run: hatch run docs-build
|
|
42
40
|
- name: Upload artifact
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
repos:
|
|
2
2
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
-
rev:
|
|
3
|
+
rev: v6.0.0
|
|
4
4
|
hooks:
|
|
5
5
|
- id: trailing-whitespace
|
|
6
6
|
- id: check-added-large-files
|
|
@@ -20,14 +20,14 @@ repos:
|
|
|
20
20
|
|
|
21
21
|
# Ruff replaces black, flake8, autoflake, isort and more
|
|
22
22
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
23
|
-
rev: 'v0.
|
|
23
|
+
rev: 'v0.14.0' # make sure this is always consistent with hatch configs
|
|
24
24
|
hooks:
|
|
25
25
|
- id: ruff
|
|
26
26
|
- id: ruff-format
|
|
27
27
|
args: [--check, --config, ./pyproject.toml]
|
|
28
28
|
|
|
29
29
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
30
|
-
rev: 'v1.
|
|
30
|
+
rev: 'v1.18.2' # make sure this is always consistent with hatch configs
|
|
31
31
|
hooks:
|
|
32
32
|
- id: mypy
|
|
33
33
|
args: ["--install-types", "--non-interactive", "--ignore-missing-imports"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Habiticalib
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.6
|
|
4
4
|
Summary: Asynchronous Python client library for the Habitica API
|
|
5
5
|
Project-URL: Documentation, https://tr4nt0r.github.io/habiticalib/
|
|
6
6
|
Project-URL: Source, https://github.com/tr4nt0r/habiticalib
|
|
@@ -11,10 +11,10 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
11
11
|
Classifier: Operating System :: OS Independent
|
|
12
12
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
13
|
Requires-Python: >=3.12
|
|
14
|
-
Requires-Dist: aiohttp
|
|
15
|
-
Requires-Dist: mashumaro
|
|
16
|
-
Requires-Dist: orjson
|
|
17
|
-
Requires-Dist: pillow
|
|
14
|
+
Requires-Dist: aiohttp>=3.9
|
|
15
|
+
Requires-Dist: mashumaro>=3.13
|
|
16
|
+
Requires-Dist: orjson>=3.10
|
|
17
|
+
Requires-Dist: pillow>=11.0
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
20
20
|
# Habiticalib
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[tool.ruff]
|
|
2
|
-
target-version = "
|
|
2
|
+
target-version = "py314"
|
|
3
3
|
line-length = 88
|
|
4
4
|
|
|
5
5
|
[tool.ruff.lint]
|
|
6
6
|
select = ["ALL"]
|
|
7
|
-
ignore = ["TRY003", "D202", "D213", "D417", "ANN003", "ANN401", "E501", "COM812", "ISC001", "PLW1641"]
|
|
7
|
+
ignore = ["TRY003", "D202", "D213", "D417", "ANN003", "ANN401", "E501", "COM812", "ISC001", "PLW1641", "TC001", "TC002"]
|
|
8
8
|
|
|
9
9
|
[tool.ruff.lint.isort]
|
|
10
10
|
force-sort-within-sections = true
|
|
@@ -73,37 +73,38 @@ commit_extra_args = ["-e"]
|
|
|
73
73
|
path = "src/habiticalib/const.py"
|
|
74
74
|
|
|
75
75
|
[tool.hatch.envs.default]
|
|
76
|
-
python = "3.
|
|
76
|
+
python = "3.14"
|
|
77
77
|
dependencies = [
|
|
78
|
-
"aiohttp==3.
|
|
79
|
-
"mashumaro==3.
|
|
80
|
-
"orjson==3.11.
|
|
81
|
-
"Pillow==
|
|
82
|
-
"mypy==1.
|
|
83
|
-
"ruff==0.
|
|
84
|
-
"pytest==8.4.
|
|
85
|
-
"pytest-cov==
|
|
86
|
-
"mkdocs-material==9.6.
|
|
87
|
-
"mkdocstrings[python]==0.30.
|
|
88
|
-
"pytest-asyncio==1.
|
|
78
|
+
"aiohttp==3.13.0",
|
|
79
|
+
"mashumaro==3.17",
|
|
80
|
+
"orjson==3.11.3",
|
|
81
|
+
"Pillow==12.0.0",
|
|
82
|
+
"mypy==1.18.2",
|
|
83
|
+
"ruff==0.14.0",
|
|
84
|
+
"pytest==8.4.2",
|
|
85
|
+
"pytest-cov==7.0.0",
|
|
86
|
+
"mkdocs-material==9.6.21",
|
|
87
|
+
"mkdocstrings[python]==0.30.1",
|
|
88
|
+
"pytest-asyncio==1.2.0",
|
|
89
89
|
"aioresponses==0.7.8",
|
|
90
90
|
"pre-commit==4.3.0",
|
|
91
|
-
"syrupy==
|
|
91
|
+
"syrupy==5.0.0"
|
|
92
92
|
]
|
|
93
93
|
|
|
94
94
|
[tool.hatch.envs.hatch-test]
|
|
95
95
|
parallel = true
|
|
96
96
|
extra-dependencies = [
|
|
97
|
+
"pytest==8.4.2",
|
|
97
98
|
"aioresponses==0.7.8",
|
|
98
|
-
"pytest-asyncio==1.
|
|
99
|
-
"syrupy==
|
|
100
|
-
"pytest-cov==
|
|
99
|
+
"pytest-asyncio==1.2.0",
|
|
100
|
+
"syrupy==5.0.0",
|
|
101
|
+
"pytest-cov==7.0.0",
|
|
101
102
|
]
|
|
102
103
|
extra-args = ["--cov-report=xml", "-vv"]
|
|
103
104
|
type = "virtual"
|
|
104
105
|
|
|
105
106
|
[[tool.hatch.envs.hatch-test.matrix]]
|
|
106
|
-
python = ["3.13", "3.12"]
|
|
107
|
+
python = ["3.14", "3.13", "3.12"]
|
|
107
108
|
|
|
108
109
|
[tool.hatch.envs.default.scripts]
|
|
109
110
|
test = "pytest"
|
|
@@ -144,10 +145,10 @@ classifiers = [
|
|
|
144
145
|
license = {text = "MIT License"}
|
|
145
146
|
requires-python = ">=3.12"
|
|
146
147
|
dependencies = [
|
|
147
|
-
"aiohttp
|
|
148
|
-
"mashumaro
|
|
149
|
-
"orjson
|
|
150
|
-
"Pillow
|
|
148
|
+
"aiohttp>=3.9",
|
|
149
|
+
"mashumaro>=3.13",
|
|
150
|
+
"orjson>=3.10",
|
|
151
|
+
"Pillow>=11.0"
|
|
151
152
|
]
|
|
152
153
|
|
|
153
154
|
[project.urls]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{habiticalib-0.4.5 → habiticalib-0.4.6}/tests/__snapshots__/test_avatar/test_generate_avatar.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|