Skip to content

Commit 1a07c8f

Browse files
authored
Merge pull request #37 from pganssle/prepare-0.6.0
Prepare 0.6.0
2 parents 0741388 + fb5e623 commit 1a07c8f

12 files changed

+32
-19
lines changed

.github/workflows/publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
uses: actions/setup-python@v2
2525
with:
2626
python-version: '3.x'
27+
- uses: FedericoCarboni/setup-ffmpeg@v1
28+
id: setup-ffmpeg
2729
- name: Install dependencies
2830
run: |
2931
python -m pip install --upgrade pip

CHANGELOG.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Version 0.6.0
2+
=============
3+
4+
- 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:
5+
6+
- 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).
7+
- Chapters: If chapter information is available, each chapter is a separate entry in the feed.
8+
- 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.
9+
10+
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.
11+
12+
- Added a test server script for easy manual debugging and testing.
13+
14+
- 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.
15+
16+
- Removed ``schema.yml`` in favor of defining the schema types in ``object_handler.py``
17+
18+
- 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.
19+
20+
- "Updating database" status now cleared if the database update fails.
21+
22+
- Updated books pagination to consistently use a zero-based index.
23+

changelog.d/.keepdir

Whitespace-only changes.

changelog.d/add_rendered_feeds.rst

-7
This file was deleted.

changelog.d/add_test_server.rst

-1
This file was deleted.

changelog.d/config_dir.rst

-1
This file was deleted.

changelog.d/schema_types.rst

-1
This file was deleted.

changelog.d/update_installer.rst

-1
This file was deleted.

changelog.d/update_status.rst

-1
This file was deleted.

changelog.d/zero_index.rst

-1
This file was deleted.

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ authors = [{name = "Paul Ganssle"}]
1111
description = """
1212
audio-feeder provides a server that serves your audiobooks and other audio
1313
content as RSS feeds, with rich metadata, and provides a web frontent for navigation."""
14-
license = {file = "LICENSE"}
14+
license = {text = "Apache 2.0"}
1515
requires-python = ">= 3.9"
1616
dependencies = [
1717
"Flask>=0.11.1",
@@ -40,14 +40,15 @@ classifiers = [
4040
"Programming Language :: Python :: 3.10",
4141
"Programming Language :: Python :: 3.11",
4242
]
43-
dynamic = ["version"]
43+
dynamic = ["version", "readme"]
4444

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

4848
[tool.setuptools]
4949
packages = {find = {where = ["src"]}}
5050
package-data = { audio_feeder=["data/**/*"] }
51+
license-files = ["LICENSE"]
5152

5253
[tool.setuptools.dynamic]
5354
version = {attr = "audio_feeder.__version__.VERSION"}

src/audio_feeder/__version__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
VERSION_MAJOR = 0
2-
VERSION_MINOR = 5
3-
VERSION_PATCH = 0
1+
VERSION_MAJOR: int = 0
2+
VERSION_MINOR: int = 6
3+
VERSION_PATCH: int = 0
44

55
VERSION_TUPLE = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
66

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

0 commit comments

Comments
 (0)