Skip to content

Commit 4ca2f24

Browse files
committed
📦️ add toml module to pyproject and update documentation
- Added toml module to pyproject.toml for dependency management. - Updated the documentation and README for clarity and consistency.
1 parent b57fc40 commit 4ca2f24

File tree

5 files changed

+20
-7
lines changed

5 files changed

+20
-7
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Upload Python Package To PyPi
33

44
on:
55
push:
6-
branches:
7-
- main
8-
96
tags:
107
- 'v[0-9]+.[0-9]+.[0-9]'
118

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ps = poster.Poster("./")
6868
sp = spotify.Spotify(CLIENT_ID, CLIENT_SECRET)
6969

7070
# Search for a track
71-
search = sp.get_track("Saturn by SZA", limit=1)
71+
search = sp.get_track("Saturn - SZA", limit=1)
7272

7373
# Get the track's metadata and lyrics
7474
metadata = search[0]

docs/guidebook/guide.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To generate a track poster, follow the steps below.
2525
sp = spotify.Spotify(CLIENT_ID, CLIENT_SECRET)
2626
2727
# Search for a track
28-
search = sp.get_track("Saturn by SZA", limit=1)
28+
search = sp.get_track("Saturn - SZA", limit=1)
2929
3030
# Get the track's metadata and lyrics
3131
metadata = search[0]
@@ -56,14 +56,18 @@ Like tracks, you can also create an album poster, follow these steps below.
5656
sp = spotify.Spotify(CLIENT_ID, CLIENT_SECRET)
5757
5858
# Search for an album
59-
search = sp.get_album("Charm by Clairo", limit=1)
59+
search = sp.get_album("Charm - Clairo", limit=1)
6060
6161
# Get the album's metadata
6262
metadata = search[0]
6363
6464
# Generate the album poster
6565
ps.album(metadata)
6666
67+
.. tip::
68+
69+
Use a hyphen (-) between the track/album and the artist for more accurate results.
70+
6771
.. seealso::
6872

6973
For more details, see the :ref:`reference` section on using BeatPrints.

poetry.lock

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ lrclibapi = "^0.3.1"
2020
fonttools = "^4.54.1"
2121
questionary = "^2.0.1"
2222
rich = "^13.9.4"
23+
toml = "^0.10.2"
2324

2425
[tool.poetry.scripts]
2526
beatprints = 'cli.prompt:main'

0 commit comments

Comments
 (0)