Skip to content

Commit

Permalink
Merge pull request #37 from pganssle/prepare-0.6.0
Browse files Browse the repository at this point in the history
Prepare 0.6.0
  • Loading branch information
pganssle authored Nov 27, 2022
2 parents 0741388 + fb5e623 commit 1a07c8f
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 19 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: FedericoCarboni/setup-ffmpeg@v1
id: setup-ffmpeg
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Version 0.6.0
=============

- Now available: rendered feeds! This adds alternate feeds for files generated from the files as they exist on disk using ``ffmpeg`` (the generated files go into a media cache on disk and are generated when the RSS feed is downloaded). The available types of feed are:

- Single file: In single file mode, all input files are merged into one big file, with chapter information if it's available (defaulting to considering each separate file a chapter).
- Chapters: If chapter information is available, each chapter is a separate entry in the feed.
- Segmented: This assumes that you want files broken up into duration ~60 minutes, and tries to accommodate that as best as possible. The segmenting algorithm recombines the existing files along chapter or file boundaries in such a way as to minimize the overall deviation from "60 minutes per file". It is slightly biased towards longer files, so it will prefer to create 1 90 minute file rather than 2 45 minute files, etc.

A side-effect of this change is that file metadata is stored in the database now, which will take some time to add when first loading a large number of audiobooks. This also enables us to have chapter information in the RSS feeds.

- Added a test server script for easy manual debugging and testing.

- Changed config directory specification. You can now set the environment variable ``AF_CONFIG_DIR`` to specify exactly where your configuration comes from. Whether or not the current working directory is in the search path is also now context dependent.

- Removed ``schema.yml`` in favor of defining the schema types in ``object_handler.py``

- Updated the ``audio-feeder install`` script to use ``importlib.resources`` and made sure that it can be run a second time to update the install base.

- "Updating database" status now cleared if the database update fails.

- Updated books pagination to consistently use a zero-based index.

Empty file added changelog.d/.keepdir
Empty file.
7 changes: 0 additions & 7 deletions changelog.d/add_rendered_feeds.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/add_test_server.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/config_dir.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/schema_types.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/update_installer.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/update_status.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/zero_index.rst

This file was deleted.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors = [{name = "Paul Ganssle"}]
description = """
audio-feeder provides a server that serves your audiobooks and other audio
content as RSS feeds, with rich metadata, and provides a web frontent for navigation."""
license = {file = "LICENSE"}
license = {text = "Apache 2.0"}
requires-python = ">= 3.9"
dependencies = [
"Flask>=0.11.1",
Expand Down Expand Up @@ -40,14 +40,15 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dynamic = ["version"]
dynamic = ["version", "readme"]

[project.scripts]
audio-feeder = "audio_feeder.cli:cli"

[tool.setuptools]
packages = {find = {where = ["src"]}}
package-data = { audio_feeder=["data/**/*"] }
license-files = ["LICENSE"]

[tool.setuptools.dynamic]
version = {attr = "audio_feeder.__version__.VERSION"}
Expand Down
8 changes: 4 additions & 4 deletions src/audio_feeder/__version__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION_MAJOR = 0
VERSION_MINOR = 5
VERSION_PATCH = 0
VERSION_MAJOR: int = 0
VERSION_MINOR: int = 6
VERSION_PATCH: int = 0

VERSION_TUPLE = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)

VERSION = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_PATCH}"
VERSION: str = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_PATCH}"

0 comments on commit 1a07c8f

Please sign in to comment.