Skip to content

Commit

Permalink
chore: update to satisfy rye
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrielFR committed Dec 29, 2024
1 parent 9ca961d commit 7eaab60
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 83 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2021-2022 Amano Team <https://amanoteam.com/> and the python-anilist contributors
Copyright (C) 2021-2025 Amano Team <https://amanoteam.com/> and the python-anilist contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
20 changes: 0 additions & 20 deletions LICENSES/MIT.txt

This file was deleted.

1 change: 1 addition & 0 deletions anilist/client_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ def process_search_user(data) -> Optional[tuple[list[User], PageInfo]]:


def process_get_anime(data) -> Optional[Anime]:
print(data)
if data["data"]:
try:
item = data["data"]["Page"]["media"][0]
Expand Down
31 changes: 31 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,41 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2021-2022 Amano Team <https://amanoteam.com/> and the python-anilist contributors

[project]
name = "python-anilist"
version = "1.1.0"
description = "A simple wrapper with full support for asyncio made in Python 3 for Anilist using httpx."
readme = "README.md"
authors = [{ name = "Andriel Ferreira", email = "[email protected]" }]
license = { text = "MIT" }
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: AsyncIO",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3 :: Only",
]
dependencies = [
"httpx[http2]",
]
requires-python = ">=3.8"

[build-system]
requires = ["setuptools>=42.0", "wheel"]
build-backend = "setuptools.build_meta"

[project.urls]
tracker = "https://github.com/AmanoTeam/python-anilist/issues"
source = "https://github.com/AmanoTeam/python-anilist"

[tool.setuptools.package-data]
anilist = ["py.typed", "*.graphql"]

[tool.pytest.ini_options]
addopts = "--cov=python-anilist"
testpaths = [
Expand Down
38 changes: 38 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
anyio==3.7.1
# via httpcore
certifi==2024.12.14
# via httpcore
# via httpx
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
# via httpcore
h2==4.1.0
# via httpx
hpack==4.0.0
# via h2
httpcore==0.17.3
# via httpx
httpx==0.24.1
# via python-anilist
hyperframe==6.0.1
# via h2
idna==3.10
# via anyio
# via httpx
sniffio==1.3.1
# via anyio
# via httpcore
# via httpx
38 changes: 38 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
anyio==3.7.1
# via httpcore
certifi==2024.12.14
# via httpcore
# via httpx
exceptiongroup==1.2.2
# via anyio
h11==0.14.0
# via httpcore
h2==4.1.0
# via httpx
hpack==4.0.0
# via h2
httpcore==0.17.3
# via httpx
httpx==0.24.1
# via python-anilist
hyperframe==6.0.1
# via h2
idna==3.10
# via anyio
# via httpx
sniffio==1.3.1
# via anyio
# via httpcore
# via httpx
43 changes: 0 additions & 43 deletions setup.cfg

This file was deleted.

19 changes: 0 additions & 19 deletions setup.py

This file was deleted.

0 comments on commit 7eaab60

Please sign in to comment.