Commit graph

13088 commits

Author SHA1 Message Date
freddiewanah
c64d3e3f24 fix logic issue 2024-04-11 19:04:50 +02:00
Dr-Blank
640c9613c0
add changelog for bug fix 2024-04-11 13:01:04 -04:00
freddiewanah
dba24a7d96 reformat with black 2024-04-11 18:44:32 +02:00
freddiewanah
52271bc093 update changelog 2024-04-10 15:57:37 +02:00
freddiewanah
a3b5101d1a resort the import library 2024-04-10 15:40:40 +02:00
freddiewanah
96c9a9531f update lint issues 2024-04-10 15:21:57 +02:00
freddiewanah
672a348852 fix a typo when during the refactoring. 2024-04-10 15:11:29 +02:00
freddiewanah
9a843e5d6b Refactor to merge similar test methods 2024-04-09 17:02:08 +02:00
freddiewanah
67d14a2e12 remove extra setups in the test class 2024-04-09 16:46:35 +02:00
freddiewanah
e0de6e1b89 refactor the test methods to avoid suboptimal asserts. 2024-04-08 21:39:25 +08:00
freddiewanah
dcad94d2c6 refactor the test methods to avoid sleepy test or should consider comment the sleep command 2024-04-08 19:16:51 +08:00
freddiewanah
3045550368 remove redundant prints 2024-04-08 19:14:42 +08:00
Serene
6077b7a3a1
Merge pull request #5153 from Dr-Blank/barcode-support 2024-03-24 17:41:29 +10:00
Dr-Blank
c88953805b
bugfix: ignore subdirectories of ignored
directories in unimported plugin
2024-03-22 18:20:47 -04:00
Aidan Epstein
f622bd8a4b Add a copystat call in beet's util move, to copy permissions. 2024-03-22 12:44:23 -07:00
Dr-Blank
0e7d35fd69
tests for barcode field 2024-03-18 13:23:10 -04:00
Dr-Blank
812fbca9da
Add barcode field to AlbumInfo and update related files 2024-03-18 13:22:04 -04:00
Dr-Blank
f0fb1565dd
regression test for the bugfix
- generic method to check if operation was performed
 - add test of deinterlace operation
 - add test for multiple operations performed if required (fails on master)
2024-03-18 10:32:13 -04:00
Dr-Blank
66b459b8d0
Refactor Candidate class in fetchart.py to improve
validation and resizing logic
2024-03-18 09:17:33 -04:00
J0J0 Todos
b09806e0df
Merge pull request #5134 from InvisibleFunction/fix-media-headers
Fix Media Headers on Import
2024-03-17 00:48:39 +01:00
InvisibleFunction
b9ab0c9867 Run black 2024-03-09 14:28:17 -05:00
InvisibleFunction
33c8ae7a4b Update in response to comments 2024-03-07 09:11:54 -05:00
InvisibleFunction
94e294581b Update Changelog 2024-03-06 09:12:58 -05:00
InvisibleFunction
11932eb732 Fix Media Headers on Import 2024-03-03 10:53:39 -05:00
Serene
3548e35360
Merge pull request #5122 from Bobo1239/master
convert: Correctly identify WAVE format as lossless
2024-03-02 09:05:53 +10:00
Boris-Chengbiao Zhou
47ba590999 convert: Correctly identify WAVE format as lossless
Seems like this entry was added before mediafile gained support for WAVE
files in commit 832f3d. Adjust it to fix detection.
2024-03-01 17:58:26 +01:00
Serene
8720d6413b
Merge pull request #5063 from Maxr1998/fix-advancedrewrite-simple-rules
advancedrewrite: Fix simple rules being overwritten by advanced rules
2024-03-01 16:08:37 +10:00
Serene
fa8b1201c3
Merge pull request #5103 from Josef-Friedrich/remove-unused-functions
Remove unused functions
2024-03-01 15:59:31 +10:00
Serene
35e8eb985f
Merge pull request #5058 from arsaboo/lb
Add initial version of the Listenbrainz plugin
2024-03-01 15:51:50 +10:00
Serene
5317d4492c
Merge pull request #5131 from Serene-Arc/formatting_fix
Pin formatters version
2024-03-01 15:35:03 +10:00
Serene-Arc
35257c7cd0 Exclude flake8 rule for black compatibility 2024-03-01 15:34:50 +10:00
Serene-Arc
96b6cea772 Update versions 2024-03-01 15:21:25 +10:00
Serene-Arc
22d8f89735 Pin formatter version 2024-03-01 15:21:25 +10:00
Serene-Arc
83242fd7cf Apply formatting 2024-03-01 15:21:25 +10:00
J0J0 Todos
dae525741b
Merge pull request #5096 from raspbeguy/alpine 2024-02-21 13:33:46 +01:00
Josef Friedrich
7abaa2da98 Document change in the changelog.rst 2024-02-12 09:56:24 +01:00
Josef Friedrich
77be7a9255 Remove unused functions
The function ex_varassign is never called. The function ex_lvalue
is only called by ex_varassign.
2024-02-10 18:27:54 +01:00
raspbeguy
258e52af5b
Add alpine instructions 2024-02-06 09:19:17 +01:00
Serene
7f1250dd0a
Merge pull request #5084 from sumpfralle/finalize-beets-test-exposure
Finalize beets.test packaging
2024-01-18 13:19:21 +10:00
Lars Kruse
3c2a66e148 build: add missing "beets.test" package
In commit 508d28f66b the package `beets.test` was introduced.
But it was not added to the list of packages in `setup.py`.
Thus, it was not part of a beets installation for now.
2024-01-18 00:13:48 +01:00
Lars Kruse
7b1bee6c38 style: apply alphabetical order to all lists in setup.py 2024-01-18 00:02:33 +01:00
Serene
ddb34de72a
Merge pull request #5081 from mthies-unibi/zsh-completion-fixes
Fixes zsh completion dependency on specific awk/sed/sqlite3 versions and settings
2024-01-17 21:43:21 +10:00
Michael Thies
35af8d363a added changelog entry 2024-01-17 10:36:56 +01:00
Serene
5c964ce77d
Merge pull request #5068 from sumpfralle/reusable-test-code
Allow reuse of test code in other projects
2024-01-16 14:28:31 +10:00
Lars Kruse
508d28f66b tests: move reusable test-related modules into the beets package
External Python packages interfacing beets may want to use an in-memory
beets library instance for testing beets-related code.
The `TestHelper` class is very helpful for this purpose.
Previously `TestHelper` was located in the `test/` directory.
Now it is part of `beets` itself (`beets.test.helper.TestHelper`) and
can be easily imported.
2024-01-15 19:40:57 +01:00
Lars Kruse
2b99c12430 tests: move TerminalImportSessionSetup from tests.test_ui_importer to test.helper
This class is imported by some other test modules.
Thus, it should reside in a module, which is obviously used by other
tests.
2024-01-15 19:40:57 +01:00
Lars Kruse
7707e23456 tests: move reusable components from test.test_importer to test.helper
`ImportHelper` and `AutotagStub` are used in many tests.
Thus, they should reside in a module which is obviously used by multiple
tests.
2024-01-15 19:40:57 +01:00
Lars Kruse
4c2362b361 tests: remove import path mangling while importing 'test._common'
The import path mangling is not relevant (anymore?) for the two
ways of running tests:

* `python3 test/testall.py` (see CONTRIBUTING.rst):
  The `testall.py` script already adds the project path to `sys.path`.
* `tox -e py-cov`: this command is supposed to be run from the project
  path. Thus, the current directory is already the first of location
  in `sys.path`.

The previous mangling of the import path while loading a module could
lead to unwanted side-effects hidden in an unexpected location.
Instead, import path mangling should take place in the script being
called by the user (here: `testall.py`).
2024-01-15 19:40:57 +01:00
Serene
7df14b6b3f
Merge pull request #5080 from sumpfralle/remove-sphinx-version-pin
build: remove version pin for Sphinx
2024-01-15 21:16:50 +10:00
Lars Kruse
3d308f9b6a build: remove version pin for Sphinx
In cf69cad56f the Sphinx version was pinned to "<4.4.0".

The issue at that time (a spurious warning) is described in:
  https://github.com/sphinx-doc/sphinx/issues/10112

The problematic check was removed in Sphinx v4.5:
  https://www.sphinx-doc.org/en/master/changes.html#id334

The issue of spurious warnings was finally fixed in v5.x:
  https://github.com/sphinx-doc/sphinx/pull/10137

Technically it would be suitable to add a negative version pin of Sphinx
for "4.4".
But that version is quite outdated and at least Debian never shipped
Sphinx v4.4 in a stable release.

We force sphinx to be at least v5 in order to fix an unrelated recent
compatibility requirement of `sphinxcontrib.applehelp`.
2024-01-15 12:00:53 +01:00