Skip to content

Commit

Permalink
Add PyPI metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Kutu committed Jun 2, 2024
1 parent e1df80b commit 34f6753
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 15 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

## 0.2.0
- PyPI automatic upload with GitHub release test.

## 0.1.0
- PyPI automatic CI update upload test.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<div align="center" markdown="1">
# Knuckles
> A [OpenSubsonic](https://opensubsonic.netlify.app/) API wrapper for Python 3.11.0+.

![PyPI - Version](https://img.shields.io/pypi/v/knuckles)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/knuckles)
![GitHub Actions - PyPI Publishing](https://github.com/kutu-dev/knuckles/actions/workflows/publish.yml/badge.svg)
![GitHub Actions - Docs Deploying](https://github.com/kutu-dev/knuckles/actions/workflows/docs.yml/badge.svg)

An unopinionated [OpenSubsonic](https://opensubsonic.netlify.app/) API wrapper for Python.
</div>

## Compatiblity
Knuckles **only** works with servers compatible with the REST API version 1.4.0 onwards (Subsonic 4.2+).
Expand Down
6 changes: 0 additions & 6 deletions TODO.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--8<-- "CHANGELOG.md"
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ nav:
- Home:
Getting Started: "index.md"
Contributing: "contributing.md"
Changelog: "changelog.md"
- Reference: "reference/"

plugins:
Expand Down Expand Up @@ -69,3 +70,4 @@ markdown_extensions:
- pymdownx.snippets
- pymdownx.emoji
- admonition
- md_in_html
36 changes: 35 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,47 @@
name = "knuckles"
description = "A Subsonic/OpenSubsonic API wrapper for Python."
requires-python = ">=3.11.0"

dependencies = [
"requests>=2.32.3",
"python-dateutil>=2.8.2"
]
version = "0.1.0"

version = "0.2.0"
readme = "README.md"

authors = [
{name = 'Jorge "Kutu" Dobón Blanco', email="[email protected]"}
]

keywords = [
"api-wrapper",
"api",
"wrapper",
"library",
"subsonic",
"opensubsonic",
]

classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Multimedia",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]

[project.optional-dependencies]
dev = [
"pip-tools>=7.4.1",
Expand Down
2 changes: 0 additions & 2 deletions tests/api/test_browsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ def test_get_artist_indexes(
music_folders[0]["id"], modified_date
)

print(response.index)

assert response.ignored_articles == indexes["ignoredArticles"]
assert isinstance(response.index, dict)
assert (
Expand Down
5 changes: 0 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ def inner(

decoded_post_body[key] = value[0]

print(f"{mocked_params=}")
print(f"{decoded_post_body=}")

if mocked_params != decoded_post_body:
return False, (
"Mismatch data between the request POST body and "
Expand Down Expand Up @@ -160,8 +157,6 @@ def inner(
if extra_params is not None:
mocked_params.update(extra_params)

print("CC", extra_params)

mocked_data = {"subsonic-response": {**subsonic_response}}
if extra_data is not None:
mocked_data["subsonic-response"].update(extra_data)
Expand Down

0 comments on commit 34f6753

Please sign in to comment.