Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ auth.json
*.db
.coverage
.vscode/
__pycache__/
*.pyc
.venv/
uv.lock
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# scrobbledb

A modernization of [Jacob Kaplan-Moss’s](https://github.com/jacobian/)
project
[lastfm-to-sqlite](https://github.com/jacobian/lastfm-to-sqlite).

Uses the [pylast](https://github.com/pylast/pylast) module underneath
the covers.

111 changes: 0 additions & 111 deletions lastfm_to_sqlite/cli.py

This file was deleted.

53 changes: 34 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,26 +1,41 @@
[tool.poetry]
name = "lastfm-to-sqlite"
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "scrobbledb"
version = "1.0.0"
description = "Save data from last.fm/libre.fm to a SQLite database"
authors = ["Jacob Kaplan-Moss <jacob@jacobian.org>"]
license = "wtfpl"
authors = [
{name = "Jacob Kaplan-Moss", email = "jacob@jacobian.org"},
{name = "Brian M. Dennis", email = "bmd@pirateninja.dev"}
]
license = {text = "Apache-2.0"}
readme = "README.md"
repository = "https://github.com/jacobian/lastfm-to-sqlite/"
requires-python = ">=3.6"
dependencies = [
"pylast>=3.1.0",
"sqlite-utils>=1.12.1",
"click>=7.0",
"python-dateutil>=2.8.1",
"platformdirs>=2.4.0",
"rich>=10.11.0",
]

[tool.poetry.scripts]
lastfm-to-sqlite = "lastfm_to_sqlite.cli:cli"
[project.optional-dependencies]
dev = [
"pytest>=5.2.2",
"pytest-cov>=2.8.1",
]

[tool.poetry.dependencies]
python = "^3.6"
pylast = "^3.1.0"
sqlite-utils = "^1.12.1"
click = "^7.0"
python-dateutil = "^2.8.1"
[project.scripts]
scrobbledb = "scrobbledb.cli:cli"

[tool.poetry.dev-dependencies]
pytest = "^5.2.2"
pytest-cov = "^2.8.1"
[project.urls]
Repository = "https://github.com/jacobian/lastfm-to-sqlite/"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[dependency-groups]
dev = [
"pytest>=7.0.1",
"pytest-cov>=4.0.0",
]
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = --cov=lastfm_to_sqlite/ --cov-report=term
testpaths = tests
File renamed without changes.
7 changes: 7 additions & 0 deletions src/scrobbledb/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Allow scrobbledb to be executable through `python -m scrobbledb`.
"""
from .cli import cli

if __name__ == "__main__":
cli()
Loading