diff --git a/beets/__init__.py b/beets/__init__.py index 64ba2e589..e15f5a87a 100644 --- a/beets/__init__.py +++ b/beets/__init__.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from sys import stderr import confuse diff --git a/beets/__main__.py b/beets/__main__.py index 3473c6319..afb2ddd10 100644 --- a/beets/__main__.py +++ b/beets/__main__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2017, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """The __main__ module lets you run the beets CLI interface by typing `python -m beets`. """ diff --git a/beets/autotag/__init__.py b/beets/autotag/__init__.py index 84d3f4fe4..bdb2ee903 100644 --- a/beets/autotag/__init__.py +++ b/beets/autotag/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Facilities for automatically determining files' correct metadata.""" from __future__ import annotations diff --git a/beets/autotag/hooks.py b/beets/autotag/hooks.py index f23a84849..16063ef9a 100644 --- a/beets/autotag/hooks.py +++ b/beets/autotag/hooks.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Glue between metadata sources and the matching logic.""" from __future__ import annotations diff --git a/beets/autotag/match.py b/beets/autotag/match.py index a64f36f39..a4775f352 100644 --- a/beets/autotag/match.py +++ b/beets/autotag/match.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Matches existing metadata with canonical information to identify releases and tracks. """ diff --git a/beets/dbcore/__init__.py b/beets/dbcore/__init__.py index 441d5f446..e978f7684 100644 --- a/beets/dbcore/__init__.py +++ b/beets/dbcore/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """DBCore is an abstract database package that forms the basis for beets' Library. """ diff --git a/beets/dbcore/db.py b/beets/dbcore/db.py index d57278431..78c443239 100755 --- a/beets/dbcore/db.py +++ b/beets/dbcore/db.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """The central Model and Database constructs for DBCore.""" from __future__ import annotations diff --git a/beets/dbcore/query.py b/beets/dbcore/query.py index 4ff58d84b..d480b0150 100644 --- a/beets/dbcore/query.py +++ b/beets/dbcore/query.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """The Query type hierarchy for DBCore.""" from __future__ import annotations diff --git a/beets/dbcore/queryparse.py b/beets/dbcore/queryparse.py index 5a8e788a2..0dbdd7e4d 100644 --- a/beets/dbcore/queryparse.py +++ b/beets/dbcore/queryparse.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Parsing of strings into DBCore queries.""" from __future__ import annotations diff --git a/beets/dbcore/sort.py b/beets/dbcore/sort.py index 1b0419b47..65079b22b 100644 --- a/beets/dbcore/sort.py +++ b/beets/dbcore/sort.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. """Module for representing sorting criteria for database queries.""" from __future__ import annotations diff --git a/beets/dbcore/types.py b/beets/dbcore/types.py index ddf7333e5..ef9152e70 100644 --- a/beets/dbcore/types.py +++ b/beets/dbcore/types.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Representation of type information for DBCore model fields.""" from __future__ import annotations diff --git a/beets/importer/__init__.py b/beets/importer/__init__.py index 28ae470ee..b18222419 100644 --- a/beets/importer/__init__.py +++ b/beets/importer/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Provides the basic, interface-agnostic workflow for importing and autotagging music files. """ diff --git a/beets/importer/session.py b/beets/importer/session.py index 67aeab363..86e901f44 100644 --- a/beets/importer/session.py +++ b/beets/importer/session.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. from __future__ import annotations import os diff --git a/beets/importer/stages.py b/beets/importer/stages.py index a3b034d7e..c66a54cea 100644 --- a/beets/importer/stages.py +++ b/beets/importer/stages.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations import contextvars diff --git a/beets/importer/state.py b/beets/importer/state.py index e4feca74a..a90c69193 100644 --- a/beets/importer/state.py +++ b/beets/importer/state.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations import logging diff --git a/beets/importer/tasks.py b/beets/importer/tasks.py index dd4a74b94..143d90e2b 100644 --- a/beets/importer/tasks.py +++ b/beets/importer/tasks.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations import logging diff --git a/beets/logging.py b/beets/logging.py index eb3d24922..cea54bb09 100644 --- a/beets/logging.py +++ b/beets/logging.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A drop-in replacement for the standard-library `logging` module. Provides everything the "logging" module does. In addition, beets' logger diff --git a/beets/mediafile.py b/beets/mediafile.py index df735afff..92cbabaf1 100644 --- a/beets/mediafile.py +++ b/beets/mediafile.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import mediafile from .util.deprecation import deprecate_for_maintainers diff --git a/beets/plugins.py b/beets/plugins.py index 9a58e9cb5..9e57120df 100644 --- a/beets/plugins.py +++ b/beets/plugins.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Support for beets plugins.""" from __future__ import annotations diff --git a/beets/test/__init__.py b/beets/test/__init__.py index 2af37583f..3a208024a 100644 --- a/beets/test/__init__.py +++ b/beets/test/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2024, Lars Kruse -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This module contains components of beets' test environment, which may be of use for testing procedures of external libraries or programs. For example the 'TestHelper' class may be useful for creating an diff --git a/beets/test/_common.py b/beets/test/_common.py index 6b7d2ce29..e01bf20c3 100644 --- a/beets/test/_common.py +++ b/beets/test/_common.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Some common functionality for beets' test cases.""" from __future__ import annotations diff --git a/beets/test/helper.py b/beets/test/helper.py index dd56eea8a..3af472764 100644 --- a/beets/test/helper.py +++ b/beets/test/helper.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This module includes various helpers that provide fixtures, capture information or mock the environment. diff --git a/beets/ui/__init__.py b/beets/ui/__init__.py index b5ce2e1da..cdb61e7b6 100644 --- a/beets/ui/__init__.py +++ b/beets/ui/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This module contains all of the core logic for beets' command-line interface. To invoke the CLI, just call beets.ui.main(). The actual CLI commands are implemented in the ui.commands module. diff --git a/beets/ui/commands/__init__.py b/beets/ui/commands/__init__.py index e1d0389a3..e32c2dd29 100644 --- a/beets/ui/commands/__init__.py +++ b/beets/ui/commands/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This module provides the default commands for beets' command-line interface. """ diff --git a/beets/ui/commands/completion_base.sh b/beets/ui/commands/completion_base.sh index e83f9d2c5..d81923b6d 100644 --- a/beets/ui/commands/completion_base.sh +++ b/beets/ui/commands/completion_base.sh @@ -1,19 +1,3 @@ -# This file is part of beets. -# Copyright (c) 2014, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - - # Completion for the `beet` command # ================================= # diff --git a/beets/util/__init__.py b/beets/util/__init__.py index db17ac05b..a5092bdee 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Miscellaneous utility functions.""" from __future__ import annotations diff --git a/beets/util/artresizer.py b/beets/util/artresizer.py index d1a67999a..0556ebf16 100644 --- a/beets/util/artresizer.py +++ b/beets/util/artresizer.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Abstraction layer to resize images using PIL, ImageMagick, or a public resizing proxy if neither is available. """ diff --git a/beets/util/extension.py b/beets/util/extension.py index 7d13c300f..98d82ceaa 100644 --- a/beets/util/extension.py +++ b/beets/util/extension.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A tool that finds an extension for files without one""" import os diff --git a/beets/util/functemplate.py b/beets/util/functemplate.py index 738caaac7..a3541ab34 100644 --- a/beets/util/functemplate.py +++ b/beets/util/functemplate.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This module implements a string formatter based on the standard PEP 292 string.Template class extended with function calls. Variables, as with string.Template, are indicated with $ and functions are delimited diff --git a/beets/util/hidden.py b/beets/util/hidden.py index 0a71c91fd..a12b3fd96 100644 --- a/beets/util/hidden.py +++ b/beets/util/hidden.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# Copyright 2024, Arav K. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Simple library to work out if a file is hidden on different platforms.""" import ctypes diff --git a/beets/util/id_extractors.py b/beets/util/id_extractors.py index 6f758a5ad..7e3de0de4 100644 --- a/beets/util/id_extractors.py +++ b/beets/util/id_extractors.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Helpers around the extraction of album/track ID's from metadata sources.""" from __future__ import annotations diff --git a/beets/util/m3u.py b/beets/util/m3u.py index 43d3420cd..0e154f0a4 100644 --- a/beets/util/m3u.py +++ b/beets/util/m3u.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2022, J0J0 Todos. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Provides utilities to read, write and manipulate m3u playlist files.""" import traceback diff --git a/beets/util/pipeline.py b/beets/util/pipeline.py index f26128800..a7ace7e5f 100644 --- a/beets/util/pipeline.py +++ b/beets/util/pipeline.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Simple but robust implementation of generator/coroutine-based pipelines in Python. The pipelines may be run either sequentially (single-threaded) or in parallel (one thread per pipeline stage). diff --git a/beetsplug/_utils/art.py b/beetsplug/_utils/art.py index d4a8f1b67..a2053f00c 100644 --- a/beetsplug/_utils/art.py +++ b/beetsplug/_utils/art.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """High-level utilities for manipulating image files associated with music and items' embedded album art. """ diff --git a/beetsplug/_utils/vfs.py b/beetsplug/_utils/vfs.py index 6294b644c..740e901b4 100644 --- a/beetsplug/_utils/vfs.py +++ b/beetsplug/_utils/vfs.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A simple utility for constructing filesystem-like trees from beets libraries. """ diff --git a/beetsplug/absubmit.py b/beetsplug/absubmit.py index be257e635..189792209 100644 --- a/beetsplug/absubmit.py +++ b/beetsplug/absubmit.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Pieter Mulder. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Calculate acoustic information and submit to AcousticBrainz.""" import errno diff --git a/beetsplug/acousticbrainz.py b/beetsplug/acousticbrainz.py index f077b1d07..611d193c3 100644 --- a/beetsplug/acousticbrainz.py +++ b/beetsplug/acousticbrainz.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2015-2016, Ohm Patel. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Fetch various AcousticBrainz metadata using MBID.""" from collections import defaultdict diff --git a/beetsplug/advancedrewrite.py b/beetsplug/advancedrewrite.py index 1088f9bc7..66ba4674f 100644 --- a/beetsplug/advancedrewrite.py +++ b/beetsplug/advancedrewrite.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2023, Max Rumpf. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Plugin to rewrite fields based on a given query.""" import re diff --git a/beetsplug/albumtypes.py b/beetsplug/albumtypes.py index fce3a49c4..c3768b280 100644 --- a/beetsplug/albumtypes.py +++ b/beetsplug/albumtypes.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2021, Edgars Supe. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds an album template field for formatted album types.""" from __future__ import annotations diff --git a/beetsplug/aura.py b/beetsplug/aura.py index f7208da20..170e413d8 100644 --- a/beetsplug/aura.py +++ b/beetsplug/aura.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2020, Callum Brown. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """An AURA server using Flask.""" from __future__ import annotations diff --git a/beetsplug/autobpm.py b/beetsplug/autobpm.py index a4ac4e9b5..0e0e3a88b 100644 --- a/beetsplug/autobpm.py +++ b/beetsplug/autobpm.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Uses Librosa to calculate the `bpm` field.""" from __future__ import annotations diff --git a/beetsplug/badfiles.py b/beetsplug/badfiles.py index beec8eae3..08febb006 100644 --- a/beetsplug/badfiles.py +++ b/beetsplug/badfiles.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, François-Xavier Thomas. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Use command-line tools to check for audio file corruption.""" import errno diff --git a/beetsplug/bareasc.py b/beetsplug/bareasc.py index 251e40530..9d6810f77 100644 --- a/beetsplug/bareasc.py +++ b/beetsplug/bareasc.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Philippe Mongeau. -# Copyright 2021, Graham R. Cobb. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and ascociated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. # # This module is adapted from Fuzzy in accordance to the licence of # that module diff --git a/beetsplug/beatport.py b/beetsplug/beatport.py index 13ba89dc2..71944fec9 100644 --- a/beetsplug/beatport.py +++ b/beetsplug/beatport.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds Beatport release and track search support to the autotagger""" from __future__ import annotations diff --git a/beetsplug/bench.py b/beetsplug/bench.py index 9df32af43..d1f71c7ad 100644 --- a/beetsplug/bench.py +++ b/beetsplug/bench.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Some simple performance benchmarks for beets.""" import cProfile diff --git a/beetsplug/bpd/__init__.py b/beetsplug/bpd/__init__.py index c781de3d3..aa98f0c7a 100644 --- a/beetsplug/bpd/__init__.py +++ b/beetsplug/bpd/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A clone of the Music Player Daemon (MPD) that plays music from a Beets library. Attempts to implement a compatible protocol to allow use of the wide range of MPD clients. diff --git a/beetsplug/bpd/gstplayer.py b/beetsplug/bpd/gstplayer.py index 4b53057b1..392233895 100644 --- a/beetsplug/bpd/gstplayer.py +++ b/beetsplug/bpd/gstplayer.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A wrapper for the GStreamer Python bindings that exposes a simple music player. """ diff --git a/beetsplug/bpm.py b/beetsplug/bpm.py index e00482145..8604df440 100644 --- a/beetsplug/bpm.py +++ b/beetsplug/bpm.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, aroquen -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Determine BPM by pressing a key to the rhythm.""" import time diff --git a/beetsplug/bpsync.py b/beetsplug/bpsync.py index c13ade036..828c97b01 100644 --- a/beetsplug/bpsync.py +++ b/beetsplug/bpsync.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Rahul Ahuja. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Update library's tags using Beatport.""" from beets import library, ui, util diff --git a/beetsplug/bucket.py b/beetsplug/bucket.py index d9b95d882..82fa6898a 100644 --- a/beetsplug/bucket.py +++ b/beetsplug/bucket.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Provides the %bucket{} function for path formatting.""" import re diff --git a/beetsplug/chroma.py b/beetsplug/chroma.py index 1b5ba6c3e..4e4576c60 100644 --- a/beetsplug/chroma.py +++ b/beetsplug/chroma.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds Chromaprint/Acoustid acoustic fingerprinting support to the autotagger. Requires the pyacoustid library. """ diff --git a/beetsplug/convert.py b/beetsplug/convert.py index b83229b74..0738ba1e1 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Jakob Schnitzer. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Converts tracks or albums to external directory""" from __future__ import annotations diff --git a/beetsplug/deezer.py b/beetsplug/deezer.py index 49b570aaa..dac725ba5 100644 --- a/beetsplug/deezer.py +++ b/beetsplug/deezer.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Rahul Ahuja. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds Deezer release and track search support to the autotagger""" from __future__ import annotations diff --git a/beetsplug/discogs/__init__.py b/beetsplug/discogs/__init__.py index 286f90e30..0a5584a27 100644 --- a/beetsplug/discogs/__init__.py +++ b/beetsplug/discogs/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds Discogs album search support to the autotagger. Requires the python3-discogs-client library. """ diff --git a/beetsplug/discogs/states.py b/beetsplug/discogs/states.py index 9324b5024..474c46077 100644 --- a/beetsplug/discogs/states.py +++ b/beetsplug/discogs/states.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Sarunas Nejus, Henry Oberholtzer. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Dataclasses for managing artist credits and tracklists from Discogs.""" from __future__ import annotations diff --git a/beetsplug/discogs/types.py b/beetsplug/discogs/types.py index 14ef138b9..b3e69c6aa 100644 --- a/beetsplug/discogs/types.py +++ b/beetsplug/discogs/types.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Sarunas Nejus, Henry Oberholtzer. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/beetsplug/duplicates.py b/beetsplug/duplicates.py index 7e6e05fe6..6ce02703d 100644 --- a/beetsplug/duplicates.py +++ b/beetsplug/duplicates.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Pedro Silva. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """List duplicate tracks or albums.""" import os diff --git a/beetsplug/edit.py b/beetsplug/edit.py index 2c9920b81..43ffcb53c 100644 --- a/beetsplug/edit.py +++ b/beetsplug/edit.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016 -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Open metadata information in a text editor to let the user edit it.""" import codecs diff --git a/beetsplug/embedart.py b/beetsplug/embedart.py index 09d6b714f..596121968 100644 --- a/beetsplug/embedart.py +++ b/beetsplug/embedart.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Allows beets to embed album art into file metadata.""" import os.path diff --git a/beetsplug/export.py b/beetsplug/export.py index abcf842a7..67f58d510 100644 --- a/beetsplug/export.py +++ b/beetsplug/export.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Exports data from beets""" import codecs diff --git a/beetsplug/fetchart.py b/beetsplug/fetchart.py index 2bef8d650..05f8a99f2 100644 --- a/beetsplug/fetchart.py +++ b/beetsplug/fetchart.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Fetches album art.""" from __future__ import annotations diff --git a/beetsplug/filefilter.py b/beetsplug/filefilter.py index d4ee04ede..0c8cf041f 100644 --- a/beetsplug/filefilter.py +++ b/beetsplug/filefilter.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Malte Ried. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Filter imported files using a regular expression.""" import re diff --git a/beetsplug/fish.py b/beetsplug/fish.py index ff8eb3d57..8175bced2 100644 --- a/beetsplug/fish.py +++ b/beetsplug/fish.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2015, winters jean-marie. -# Copyright 2020, Justin Mayer -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """This plugin generates tab completions for Beets commands for the Fish shell , including completions for Beets commands, plugin commands, and option flags. Also generated are completions for all the album diff --git a/beetsplug/freedesktop.py b/beetsplug/freedesktop.py index 50bbf18e5..a84bb45ff 100644 --- a/beetsplug/freedesktop.py +++ b/beetsplug/freedesktop.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Matt Lichtenberg. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Creates freedesktop.org-compliant .directory files on an album level.""" from beets import ui diff --git a/beetsplug/fromfilename.py b/beetsplug/fromfilename.py index 526bd3a35..201e92356 100644 --- a/beetsplug/fromfilename.py +++ b/beetsplug/fromfilename.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Jan-Erik Dahlin -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """If the title is empty, try to extract it from the filename (possibly also extract track and artist) """ diff --git a/beetsplug/ftintitle.py b/beetsplug/ftintitle.py index 57ac602de..60328c91f 100644 --- a/beetsplug/ftintitle.py +++ b/beetsplug/ftintitle.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Verrus, -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Moves "featured" artists to the title from the artist field.""" from __future__ import annotations diff --git a/beetsplug/fuzzy.py b/beetsplug/fuzzy.py index d2b87de2c..5af35a9a8 100644 --- a/beetsplug/fuzzy.py +++ b/beetsplug/fuzzy.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Philippe Mongeau. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Provides a fuzzy matching query.""" import difflib diff --git a/beetsplug/hook.py b/beetsplug/hook.py index b8869eca4..278824ec3 100644 --- a/beetsplug/hook.py +++ b/beetsplug/hook.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2015, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Allows custom commands to be run when an event is emitted by beets""" from __future__ import annotations diff --git a/beetsplug/ihate.py b/beetsplug/ihate.py index 2efeca8d1..b0da0661d 100644 --- a/beetsplug/ihate.py +++ b/beetsplug/ihate.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Blemjhoo Tezoulbr . -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Warns you about things you hate (or even blocks import).""" from beets.importer import Action diff --git a/beetsplug/importfeeds.py b/beetsplug/importfeeds.py index e45452783..04f97ca77 100644 --- a/beetsplug/importfeeds.py +++ b/beetsplug/importfeeds.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Write paths of imported files in various formats to ease later import in a music player. Also allow printing the new file locations to stdout in case one wants to manually add music to a player by its path. diff --git a/beetsplug/info.py b/beetsplug/info.py index 6b71a167e..b3ddf8c51 100644 --- a/beetsplug/info.py +++ b/beetsplug/info.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Shows file metadata.""" import os diff --git a/beetsplug/inline.py b/beetsplug/inline.py index 5b9efa38e..4cf99d142 100644 --- a/beetsplug/inline.py +++ b/beetsplug/inline.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Allows inline path template customization code in the config file.""" import itertools diff --git a/beetsplug/ipfs.py b/beetsplug/ipfs.py index 00eb4d3c3..46cc3a7ad 100644 --- a/beetsplug/ipfs.py +++ b/beetsplug/ipfs.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds support for ipfs. Requires go-ipfs and a running ipfs daemon""" import os diff --git a/beetsplug/keyfinder.py b/beetsplug/keyfinder.py index 001f02417..b86b4e2a4 100644 --- a/beetsplug/keyfinder.py +++ b/beetsplug/keyfinder.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Uses the `KeyFinder` program to add the `initial_key` field.""" import os.path diff --git a/beetsplug/kodiupdate.py b/beetsplug/kodiupdate.py index 3c77b0463..33929df21 100644 --- a/beetsplug/kodiupdate.py +++ b/beetsplug/kodiupdate.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2017, Pauli Kettunen. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Updates a Kodi library whenever the beets library is changed. This is based on the Plex Update plugin. diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 85728edf8..bd245dcf0 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Gets genres for imported music based on Last.fm tags. Uses a provided whitelist file to determine which tags are valid genres. diff --git a/beetsplug/lastgenre/client.py b/beetsplug/lastgenre/client.py index d7118ee08..25f9a5459 100644 --- a/beetsplug/lastgenre/client.py +++ b/beetsplug/lastgenre/client.py @@ -1,19 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# Copyright 2026, J0J0 Todos. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Last.fm API client for genre lookups.""" from __future__ import annotations diff --git a/beetsplug/lastgenre/utils.py b/beetsplug/lastgenre/utils.py index bd73f6aca..60fc8853e 100644 --- a/beetsplug/lastgenre/utils.py +++ b/beetsplug/lastgenre/utils.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2026, J0J0 Todos. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Lastgenre plugin shared utilities and types.""" from __future__ import annotations diff --git a/beetsplug/lastimport.py b/beetsplug/lastimport.py index ebba50373..b07c7c6b1 100644 --- a/beetsplug/lastimport.py +++ b/beetsplug/lastimport.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Rafael Bodill https://github.com/rafi -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations from typing import TYPE_CHECKING diff --git a/beetsplug/limit.py b/beetsplug/limit.py index aae99a717..52f73aad4 100644 --- a/beetsplug/limit.py +++ b/beetsplug/limit.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds head/tail functionality to list/ls. 1. Implemented as `lslimit` command with `--head` and `--tail` options. This is diff --git a/beetsplug/loadext.py b/beetsplug/loadext.py index f20580217..28a62fd00 100644 --- a/beetsplug/loadext.py +++ b/beetsplug/loadext.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Jack Wilsdon -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Load SQLite extensions.""" import sqlite3 diff --git a/beetsplug/lyrics.py b/beetsplug/lyrics.py index 0e7c986cb..cd4771936 100644 --- a/beetsplug/lyrics.py +++ b/beetsplug/lyrics.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Fetches, embeds, and displays lyrics.""" from __future__ import annotations diff --git a/beetsplug/mbcollection.py b/beetsplug/mbcollection.py index 7897fccb0..1823b0e9a 100644 --- a/beetsplug/mbcollection.py +++ b/beetsplug/mbcollection.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright (c) 2011, Jeffrey Aylesworth -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from __future__ import annotations import re diff --git a/beetsplug/mbpseudo.py b/beetsplug/mbpseudo.py index 1620f99ff..9581c788c 100644 --- a/beetsplug/mbpseudo.py +++ b/beetsplug/mbpseudo.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Alexis Sarda-Espinosa. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds pseudo-releases from MusicBrainz as candidates during import.""" from __future__ import annotations diff --git a/beetsplug/mbsubmit.py b/beetsplug/mbsubmit.py index fe3e1fae9..7f1a00e46 100644 --- a/beetsplug/mbsubmit.py +++ b/beetsplug/mbsubmit.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson and Diego Moreda. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Aid in submitting information to MusicBrainz. This plugin allows the user to print track information in a format that is diff --git a/beetsplug/mbsync.py b/beetsplug/mbsync.py index 609b43829..ecdbe0b7d 100644 --- a/beetsplug/mbsync.py +++ b/beetsplug/mbsync.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Jakob Schnitzer. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Synchronise library metadata with metadata source backends.""" from collections import defaultdict diff --git a/beetsplug/metasync/__init__.py b/beetsplug/metasync/__init__.py index 156466a48..52d4b54fc 100644 --- a/beetsplug/metasync/__init__.py +++ b/beetsplug/metasync/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Heinz Wiesinger. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Synchronize information from music player libraries""" from __future__ import annotations diff --git a/beetsplug/metasync/amarok.py b/beetsplug/metasync/amarok.py index f092dd59c..2bd64dbbf 100644 --- a/beetsplug/metasync/amarok.py +++ b/beetsplug/metasync/amarok.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Heinz Wiesinger. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Synchronize information from amarok's library via dbus""" from datetime import datetime diff --git a/beetsplug/metasync/itunes.py b/beetsplug/metasync/itunes.py index 88582622d..7238c1d66 100644 --- a/beetsplug/metasync/itunes.py +++ b/beetsplug/metasync/itunes.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Tom Jaspers. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Synchronize information from iTunes's library""" import os diff --git a/beetsplug/missing.py b/beetsplug/missing.py index a5819d9e7..0b5665c10 100644 --- a/beetsplug/missing.py +++ b/beetsplug/missing.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Pedro Silva. -# Copyright 2017, Quentin Young. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """List missing tracks.""" from __future__ import annotations diff --git a/beetsplug/mpdstats.py b/beetsplug/mpdstats.py index 66317a9ab..3df20659c 100644 --- a/beetsplug/mpdstats.py +++ b/beetsplug/mpdstats.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Peter Schnebel and Johann Klähn. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import os import time from typing import ClassVar diff --git a/beetsplug/mpdupdate.py b/beetsplug/mpdupdate.py index d700bbaeb..7f6687bae 100644 --- a/beetsplug/mpdupdate.py +++ b/beetsplug/mpdupdate.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Updates an MPD index whenever the library is changed. Put something like the following in your config.yaml to configure: diff --git a/beetsplug/musicbrainz.py b/beetsplug/musicbrainz.py index ea236ffde..5498f257d 100644 --- a/beetsplug/musicbrainz.py +++ b/beetsplug/musicbrainz.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Searches for albums in the MusicBrainz database.""" from __future__ import annotations diff --git a/beetsplug/parentwork.py b/beetsplug/parentwork.py index c61ec972c..4d3f6749e 100644 --- a/beetsplug/parentwork.py +++ b/beetsplug/parentwork.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2017, Dorian Soergel. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Gets parent work, its disambiguation and id, composer, composer sort name and work composition date """ diff --git a/beetsplug/play.py b/beetsplug/play.py index e23e721dd..2cacba98d 100644 --- a/beetsplug/play.py +++ b/beetsplug/play.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, David Hamp-Gonsalves -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Send the results of a query to the configured music player as a playlist.""" import random diff --git a/beetsplug/playlist.py b/beetsplug/playlist.py index 8231e7f7f..3edc5aadb 100644 --- a/beetsplug/playlist.py +++ b/beetsplug/playlist.py @@ -1,15 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. from __future__ import annotations import os diff --git a/beetsplug/random.py b/beetsplug/random.py index 8f35329d0..20565689f 100644 --- a/beetsplug/random.py +++ b/beetsplug/random.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Philippe Mongeau. -# Copyright 2025, Sebastian Mohr. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations import random diff --git a/beetsplug/replaygain.py b/beetsplug/replaygain.py index 8868f7b32..ca4390cca 100644 --- a/beetsplug/replaygain.py +++ b/beetsplug/replaygain.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte, Yevgeny Bezman, and Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from __future__ import annotations import collections diff --git a/beetsplug/rewrite.py b/beetsplug/rewrite.py index 06c938f50..bd4c8429b 100644 --- a/beetsplug/rewrite.py +++ b/beetsplug/rewrite.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Uses user-specified rewriting rules to canonicalize names for path formats. """ diff --git a/beetsplug/scrub.py b/beetsplug/scrub.py index 7d3aa2c5a..63d9f8d1f 100644 --- a/beetsplug/scrub.py +++ b/beetsplug/scrub.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Cleans extraneous metadata from files' tags via a command or automatically whenever tags are written. """ diff --git a/beetsplug/smartplaylist.py b/beetsplug/smartplaylist.py index a11494bdb..9b0ad6199 100644 --- a/beetsplug/smartplaylist.py +++ b/beetsplug/smartplaylist.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Dang Mai . -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Generates smart playlists based on beets queries.""" from __future__ import annotations diff --git a/beetsplug/sonosupdate.py b/beetsplug/sonosupdate.py index af3410ffa..4a4d36c5a 100644 --- a/beetsplug/sonosupdate.py +++ b/beetsplug/sonosupdate.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2018, Tobias Sauerwein. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Updates a Sonos library whenever the beets library is changed. This is based on the Kodi Update plugin. """ diff --git a/beetsplug/spotify.py b/beetsplug/spotify.py index 445c0cfde..d7e1bcf53 100644 --- a/beetsplug/spotify.py +++ b/beetsplug/spotify.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Rahul Ahuja. -# Copyright 2022, Alok Saboo. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Adds Spotify release and track search support to the autotagger. Also includes Spotify playlist construction. diff --git a/beetsplug/subsonicplaylist.py b/beetsplug/subsonicplaylist.py index b905b1481..976cd5b2c 100644 --- a/beetsplug/subsonicplaylist.py +++ b/beetsplug/subsonicplaylist.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Joris Jensen -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import random import string from hashlib import md5 diff --git a/beetsplug/subsonicupdate.py b/beetsplug/subsonicupdate.py index 1e663b3d0..bd40c39bd 100644 --- a/beetsplug/subsonicupdate.py +++ b/beetsplug/subsonicupdate.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Updates Subsonic library on Beets import Your Beets configuration file should contain a "subsonic" section like the following: diff --git a/beetsplug/substitute.py b/beetsplug/substitute.py index 63427bcf4..a68594df1 100644 --- a/beetsplug/substitute.py +++ b/beetsplug/substitute.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2023, Daniele Ferone. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """The substitute plugin module. Uses user-specified substitution rules to canonicalize names for path formats. diff --git a/beetsplug/the.py b/beetsplug/the.py index b59b9775c..d40cafe68 100644 --- a/beetsplug/the.py +++ b/beetsplug/the.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Blemjhoo Tezoulbr . -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Moves patterns in path formats (suitable for moving articles).""" import re diff --git a/beetsplug/thumbnails.py b/beetsplug/thumbnails.py index 0d750162b..7c028c339 100644 --- a/beetsplug/thumbnails.py +++ b/beetsplug/thumbnails.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Bruno Cauet -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Create freedesktop.org-compliant thumbnails for album folders This plugin is POSIX-only. diff --git a/beetsplug/titlecase.py b/beetsplug/titlecase.py index dbeafc566..ca06df1ab 100644 --- a/beetsplug/titlecase.py +++ b/beetsplug/titlecase.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Henry Oberholtzer -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Apply NYT manual of style title case rules, to text. Title case logic is derived from the python-titlecase library. Provides a template function and a tag modification function.""" diff --git a/beetsplug/types.py b/beetsplug/types.py index 561ce6828..a01cb8275 100644 --- a/beetsplug/types.py +++ b/beetsplug/types.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from confuse import ConfigValueError from beets.dbcore import types diff --git a/beetsplug/unimported.py b/beetsplug/unimported.py index 20ae195a7..83476ec11 100644 --- a/beetsplug/unimported.py +++ b/beetsplug/unimported.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Joris Jensen -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """ List all files in the library folder which are not listed in the beets library database, including art files diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index 5cf4c6f7a..fcd089e24 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """A Web interface to beets.""" import base64 diff --git a/beetsplug/zero.py b/beetsplug/zero.py index ff956ae2a..c01661cca 100644 --- a/beetsplug/zero.py +++ b/beetsplug/zero.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Blemjhoo Tezoulbr . -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Clears tag fields in media files.""" import re diff --git a/test/autotag/test_hooks.py b/test/autotag/test_hooks.py index 51b2ab470..f693ef4af 100644 --- a/test/autotag/test_hooks.py +++ b/test/autotag/test_hooks.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for autotagging functionality.""" import operator diff --git a/test/dbcore/test_sort.py b/test/dbcore/test_sort.py index ee8a6920e..f8541a735 100644 --- a/test/dbcore/test_sort.py +++ b/test/dbcore/test_sort.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Various tests for querying the library database.""" import os diff --git a/test/plugins/test_acousticbrainz.py b/test/plugins/test_acousticbrainz.py index 2c4f0d9d6..f81b69bc7 100644 --- a/test/plugins/test_acousticbrainz.py +++ b/test/plugins/test_acousticbrainz.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Nathan Dwek. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'acousticbrainz' plugin.""" import json diff --git a/test/plugins/test_advancedrewrite.py b/test/plugins/test_advancedrewrite.py index e5ecb7b73..8a1656651 100644 --- a/test/plugins/test_advancedrewrite.py +++ b/test/plugins/test_advancedrewrite.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2023, Max Rumpf. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test the advancedrewrite plugin for various configurations.""" import pytest diff --git a/test/plugins/test_albumtypes.py b/test/plugins/test_albumtypes.py index 371bf0415..bf3552dd3 100644 --- a/test/plugins/test_albumtypes.py +++ b/test/plugins/test_albumtypes.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2021, Edgars Supe. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'albumtypes' plugin.""" from __future__ import annotations diff --git a/test/plugins/test_art.py b/test/plugins/test_art.py index 7259a25c4..a787c9034 100644 --- a/test/plugins/test_art.py +++ b/test/plugins/test_art.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the album art fetchers.""" from __future__ import annotations diff --git a/test/plugins/test_badfiles.py b/test/plugins/test_badfiles.py index 8b88f7204..b9ac3ce1d 100644 --- a/test/plugins/test_badfiles.py +++ b/test/plugins/test_badfiles.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2026, Eyup Akman. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'badfiles' plugin.""" from types import SimpleNamespace diff --git a/test/plugins/test_bareasc.py b/test/plugins/test_bareasc.py index a661ae7aa..e69de29bb 100644 --- a/test/plugins/test_bareasc.py +++ b/test/plugins/test_bareasc.py @@ -1,76 +0,0 @@ -# This file is part of beets. -# Copyright 2021, Graham R. Cobb. - -"""Tests for the 'bareasc' plugin.""" - -from beets import logging -from beets.test.helper import IOMixin, PluginTestCase - - -class BareascPluginTest(IOMixin, PluginTestCase): - """Test bare ASCII query matching.""" - - plugin = "bareasc" - - def setUp(self): - """Set up test environment for bare ASCII query matching.""" - super().setUp() - self.log = logging.getLogger("beets.web") - self.config["bareasc"]["prefix"] = "#" - - # Add library elements. Note that self.lib.add overrides any "id=" - # and assigns the next free id number. - self.add_item(title="with accents", album_id=2, artist="Antonín Dvořák") - self.add_item(title="without accents", artist="Antonín Dvorak") - self.add_item(title="with umlaut", album_id=2, artist="Brüggen") - self.add_item(title="without umlaut or e", artist="Bruggen") - self.add_item(title="without umlaut with e", artist="Brueggen") - - def test_bareasc_search(self): - test_cases = [ - ( - "dvorak", - ["without accents"], - ), # Normal search, no accents, not using bare-ASCII match. - ( - "dvořák", - ["with accents"], - ), # Normal search, with accents, not using bare-ASCII match. - ( - "#dvorak", - ["without accents", "with accents"], - ), # Bare-ASCII search, no accents. - ( - "#dvořák", - ["without accents", "with accents"], - ), # Bare-ASCII search, with accents. - ( - "#dvořäk", - ["without accents", "with accents"], - ), # Bare-ASCII search, with incorrect accent. - ( - "#Bruggen", - ["without umlaut or e", "with umlaut"], - ), # Bare-ASCII search, with no umlaut. - ( - "#Brüggen", - ["without umlaut or e", "with umlaut"], - ), # Bare-ASCII search, with umlaut. - ] - - for query, expected_titles in test_cases: - with self.subTest(query=query, expected_titles=expected_titles): - items = self.lib.items(query) - assert [item.title for item in items] == expected_titles - - def test_bareasc_list_output(self): - """Bare-ASCII version of list command - check output.""" - self.run_command("bareasc", "with accents") - - assert "Antonin Dvorak" in self.io.getoutput() - - def test_bareasc_format_output(self): - """Bare-ASCII version of list -f command - check output.""" - self.run_command("bareasc", "with accents", "-f", "$artist:: $title") - - assert "Antonin Dvorak:: with accents\n" == self.io.getoutput() diff --git a/test/plugins/test_beatport.py b/test/plugins/test_beatport.py index feafda440..460cc8ea8 100644 --- a/test/plugins/test_beatport.py +++ b/test/plugins/test_beatport.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'beatport' plugin.""" import unittest diff --git a/test/plugins/test_bpd.py b/test/plugins/test_bpd.py index 23d472bbc..8d35e6ca2 100644 --- a/test/plugins/test_bpd.py +++ b/test/plugins/test_bpd.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for BPD's implementation of the MPD protocol.""" import multiprocessing as mp diff --git a/test/plugins/test_bucket.py b/test/plugins/test_bucket.py index c371231d5..7286867ca 100644 --- a/test/plugins/test_bucket.py +++ b/test/plugins/test_bucket.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'bucket' plugin.""" from datetime import datetime diff --git a/test/plugins/test_chroma.py b/test/plugins/test_chroma.py index 4e4221868..b4cb85784 100644 --- a/test/plugins/test_chroma.py +++ b/test/plugins/test_chroma.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from unittest.mock import MagicMock, patch import pytest diff --git a/test/plugins/test_convert.py b/test/plugins/test_convert.py index b6fcc7231..95a9c6329 100644 --- a/test/plugins/test_convert.py +++ b/test/plugins/test_convert.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. from __future__ import annotations import fnmatch diff --git a/test/plugins/test_discogs.py b/test/plugins/test_discogs.py index 27b8f6672..d90a2e68f 100644 --- a/test/plugins/test_discogs.py +++ b/test/plugins/test_discogs.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for discogs plugin.""" from unittest.mock import Mock, patch diff --git a/test/plugins/test_duplicates.py b/test/plugins/test_duplicates.py index e80ef5a66..640439828 100644 --- a/test/plugins/test_duplicates.py +++ b/test/plugins/test_duplicates.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import pytest from beets.test.helper import IOMixin, PluginMixin, TestHelper diff --git a/test/plugins/test_edit.py b/test/plugins/test_edit.py index 1670c776c..d0ebc0d2b 100644 --- a/test/plugins/test_edit.py +++ b/test/plugins/test_edit.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson and Diego Moreda. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - import codecs from typing import ClassVar from unittest.mock import patch diff --git a/test/plugins/test_embedart.py b/test/plugins/test_embedart.py index 25e9e04fa..3e3d04ca3 100644 --- a/test/plugins/test_embedart.py +++ b/test/plugins/test_embedart.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from __future__ import annotations import os diff --git a/test/plugins/test_export.py b/test/plugins/test_export.py index b3e87cb7f..ee6fe0659 100644 --- a/test/plugins/test_export.py +++ b/test/plugins/test_export.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Carl Suster -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test the beets.export utilities associated with the export plugin.""" import json diff --git a/test/plugins/test_fetchart.py b/test/plugins/test_fetchart.py index 75444a54d..a66619efb 100644 --- a/test/plugins/test_fetchart.py +++ b/test/plugins/test_fetchart.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import ctypes import os import sys diff --git a/test/plugins/test_filefilter.py b/test/plugins/test_filefilter.py index 546c18802..452a73647 100644 --- a/test/plugins/test_filefilter.py +++ b/test/plugins/test_filefilter.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Malte Ried. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the `filefilter` plugin.""" from beets.test.helper import ImportHelper, PluginMixin diff --git a/test/plugins/test_fromfilename.py b/test/plugins/test_fromfilename.py index 35c1812d4..21e826d0e 100644 --- a/test/plugins/test_fromfilename.py +++ b/test/plugins/test_fromfilename.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the fromfilename plugin.""" import pytest diff --git a/test/plugins/test_ftintitle.py b/test/plugins/test_ftintitle.py index cccbc66a2..2a579c6f0 100644 --- a/test/plugins/test_ftintitle.py +++ b/test/plugins/test_ftintitle.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'ftintitle' plugin.""" from __future__ import annotations diff --git a/test/plugins/test_fuzzy.py b/test/plugins/test_fuzzy.py index dc1b093bc..769a70a46 100644 --- a/test/plugins/test_fuzzy.py +++ b/test/plugins/test_fuzzy.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the fuzzy query plugin.""" import pytest diff --git a/test/plugins/test_hook.py b/test/plugins/test_hook.py index c3bf98954..53f4c8c00 100644 --- a/test/plugins/test_hook.py +++ b/test/plugins/test_hook.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2015, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from __future__ import annotations import os diff --git a/test/plugins/test_importadded.py b/test/plugins/test_importadded.py index 352471f9b..f2dad0173 100644 --- a/test/plugins/test_importadded.py +++ b/test/plugins/test_importadded.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Stig Inge Lea Bjornsen. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Tests for the `importadded` plugin.""" import os diff --git a/test/plugins/test_importsource.py b/test/plugins/test_importsource.py index 7306558a1..ece9970d3 100644 --- a/test/plugins/test_importsource.py +++ b/test/plugins/test_importsource.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Stig Inge Lea Bjornsen. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Tests for the `importsource` plugin.""" import os diff --git a/test/plugins/test_info.py b/test/plugins/test_info.py index 3ad4d0884..e1fa4b745 100644 --- a/test/plugins/test_info.py +++ b/test/plugins/test_info.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from mediafile import MediaFile from beets.test.helper import IOMixin, PluginTestCase diff --git a/test/plugins/test_inline.py b/test/plugins/test_inline.py index 8a62c7d41..c728585b4 100644 --- a/test/plugins/test_inline.py +++ b/test/plugins/test_inline.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Gabe Push. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from beets import config, plugins from beets.test.helper import PluginTestCase from beetsplug.inline import InlinePlugin diff --git a/test/plugins/test_ipfs.py b/test/plugins/test_ipfs.py index 4ac638062..b12e8289c 100644 --- a/test/plugins/test_ipfs.py +++ b/test/plugins/test_ipfs.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import os from unittest.mock import Mock, patch diff --git a/test/plugins/test_keyfinder.py b/test/plugins/test_keyfinder.py index b627e3959..84833dcb7 100644 --- a/test/plugins/test_keyfinder.py +++ b/test/plugins/test_keyfinder.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from unittest.mock import patch from beets import util diff --git a/test/plugins/test_lastgenre.py b/test/plugins/test_lastgenre.py index 750274320..3ec5cb5ea 100644 --- a/test/plugins/test_lastgenre.py +++ b/test/plugins/test_lastgenre.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'lastgenre' plugin.""" import re diff --git a/test/plugins/test_limit.py b/test/plugins/test_limit.py index 8f227d41e..cb38b0af4 100644 --- a/test/plugins/test_limit.py +++ b/test/plugins/test_limit.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'limit' plugin.""" from beets.test.helper import IOMixin, PluginTestCase diff --git a/test/plugins/test_lyrics.py b/test/plugins/test_lyrics.py index 125104377..9eb1c3558 100644 --- a/test/plugins/test_lyrics.py +++ b/test/plugins/test_lyrics.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'lyrics' plugin.""" from __future__ import annotations diff --git a/test/plugins/test_mbsubmit.py b/test/plugins/test_mbsubmit.py index 48426fd7d..2a050f73b 100644 --- a/test/plugins/test_mbsubmit.py +++ b/test/plugins/test_mbsubmit.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson and Diego Moreda. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from beets.test.helper import ( AutotagImportTestCase, PluginMixin, diff --git a/test/plugins/test_mbsync.py b/test/plugins/test_mbsync.py index 8ef6a77e5..d42338e45 100644 --- a/test/plugins/test_mbsync.py +++ b/test/plugins/test_mbsync.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - from unittest.mock import Mock, patch from beets.autotag import AlbumInfo, TrackInfo diff --git a/test/plugins/test_mpdstats.py b/test/plugins/test_mpdstats.py index acdebc1fb..98ebbd24d 100644 --- a/test/plugins/test_mpdstats.py +++ b/test/plugins/test_mpdstats.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016 -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from typing import Any, ClassVar from unittest.mock import ANY, Mock, call, patch diff --git a/test/plugins/test_musicbrainz.py b/test/plugins/test_musicbrainz.py index 1aded1db8..6f776802e 100644 --- a/test/plugins/test_musicbrainz.py +++ b/test/plugins/test_musicbrainz.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for MusicBrainz API wrapper.""" from __future__ import annotations diff --git a/test/plugins/test_parentwork.py b/test/plugins/test_parentwork.py index 2218e9fd6..982b43a03 100644 --- a/test/plugins/test_parentwork.py +++ b/test/plugins/test_parentwork.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2017, Dorian Soergel -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'parentwork' plugin.""" import pytest diff --git a/test/plugins/test_play.py b/test/plugins/test_play.py index 35815be06..b108e5bb9 100644 --- a/test/plugins/test_play.py +++ b/test/plugins/test_play.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Jesse Weinstein -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the play plugin""" import os diff --git a/test/plugins/test_playlist.py b/test/plugins/test_playlist.py index ab3853786..02c8cf6aa 100644 --- a/test/plugins/test_playlist.py +++ b/test/plugins/test_playlist.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import os from shlex import quote diff --git a/test/plugins/test_plugin_mediafield.py b/test/plugins/test_plugin_mediafield.py index 84565b47b..9b1e0318a 100644 --- a/test/plugins/test_plugin_mediafield.py +++ b/test/plugins/test_plugin_mediafield.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests the facility that lets plugins add custom field to MediaFile.""" import os diff --git a/test/plugins/test_random.py b/test/plugins/test_random.py index 9df6cf022..a66a7d410 100644 --- a/test/plugins/test_random.py +++ b/test/plugins/test_random.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2019, Carl Suster -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test the beets.random utilities associated with the random plugin.""" import math diff --git a/test/plugins/test_replaygain.py b/test/plugins/test_replaygain.py index 7b7737afd..f0232d234 100644 --- a/test/plugins/test_replaygain.py +++ b/test/plugins/test_replaygain.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - from abc import ABC, abstractmethod from typing import Any, ClassVar diff --git a/test/plugins/test_smartplaylist.py b/test/plugins/test_smartplaylist.py index e1d21d7b9..6b1a2563b 100644 --- a/test/plugins/test_smartplaylist.py +++ b/test/plugins/test_smartplaylist.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Bruno Cauet. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - # TODO: Tests in this fire are very bad. Stop using Mocks in this module. import os diff --git a/test/plugins/test_substitute.py b/test/plugins/test_substitute.py index 6c43ab680..3c711a8a2 100644 --- a/test/plugins/test_substitute.py +++ b/test/plugins/test_substitute.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2024, Nicholas Boyd Isacsson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test the substitute plugin regex functionality.""" from beets.test.helper import PluginTestCase diff --git a/test/plugins/test_thumbnails.py b/test/plugins/test_thumbnails.py index d01014113..a0d659384 100644 --- a/test/plugins/test_thumbnails.py +++ b/test/plugins/test_thumbnails.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Bruno Cauet -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import os.path from shutil import rmtree from tempfile import mkdtemp diff --git a/test/plugins/test_titlecase.py b/test/plugins/test_titlecase.py index c098550a8..c12767c51 100644 --- a/test/plugins/test_titlecase.py +++ b/test/plugins/test_titlecase.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2025, Henry Oberholtzer -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'titlecase' plugin""" from unittest.mock import patch diff --git a/test/plugins/test_types_plugin.py b/test/plugins/test_types_plugin.py index 24fb577f7..4d35cfa76 100644 --- a/test/plugins/test_types_plugin.py +++ b/test/plugins/test_types_plugin.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import time from datetime import datetime diff --git a/test/plugins/utils/test_vfs.py b/test/plugins/utils/test_vfs.py index 9505075f9..a102ec2cb 100644 --- a/test/plugins/utils/test_vfs.py +++ b/test/plugins/utils/test_vfs.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the virtual filesystem builder..""" from beets.test import _common diff --git a/test/test_art_resize.py b/test/test_art_resize.py index 56add6af8..c37b88fa4 100644 --- a/test/test_art_resize.py +++ b/test/test_art_resize.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2020, David Swarbrick. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for image resizing based on filesize.""" import os diff --git a/test/test_datequery.py b/test/test_datequery.py index d73fca45f..171080938 100644 --- a/test/test_datequery.py +++ b/test/test_datequery.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test for dbcore's date-based queries.""" import time diff --git a/test/test_dbcore.py b/test/test_dbcore.py index 283a3c6c2..6695323d4 100644 --- a/test/test_dbcore.py +++ b/test/test_dbcore.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the DBCore database abstraction.""" import os diff --git a/test/test_files.py b/test/test_files.py index 9b525bc68..926373045 100644 --- a/test/test_files.py +++ b/test/test_files.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test file manipulation functionality of Item.""" import os diff --git a/test/test_hidden.py b/test/test_hidden.py index bd974b1cb..1c71dd3eb 100644 --- a/test/test_hidden.py +++ b/test/test_hidden.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Fabrice Laporte. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the 'hidden' utility.""" import ctypes diff --git a/test/test_importer.py b/test/test_importer.py index 55bae97ad..872af765c 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - """Tests for the general importer functionality.""" from __future__ import annotations diff --git a/test/test_library.py b/test/test_library.py index b30f370fe..c42c4fe0a 100644 --- a/test/test_library.py +++ b/test/test_library.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for non-query database functions of Item.""" from __future__ import annotations diff --git a/test/test_m3ufile.py b/test/test_m3ufile.py index 12686d824..fdb32fb32 100644 --- a/test/test_m3ufile.py +++ b/test/test_m3ufile.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# Copyright 2022, J0J0 Todos. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. """Testsuite for the M3UFile class.""" import sys diff --git a/test/test_metasync.py b/test/test_metasync.py index aeb38545b..b7e26bdb7 100644 --- a/test/test_metasync.py +++ b/test/test_metasync.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Tom Jaspers. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import os import platform import time diff --git a/test/test_pipeline.py b/test/test_pipeline.py index 5007ad826..0416b9596 100644 --- a/test/test_pipeline.py +++ b/test/test_pipeline.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test the "pipeline.py" restricted parallel programming library.""" import unittest diff --git a/test/test_plugins.py b/test/test_plugins.py index c376f1d73..1fa658c61 100644 --- a/test/test_plugins.py +++ b/test/test_plugins.py @@ -1,18 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Thomas Scholtes. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - - import importlib import itertools import logging diff --git a/test/test_query.py b/test/test_query.py index f6fb7b7d6..fbb1aa860 100644 --- a/test/test_query.py +++ b/test/test_query.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Various tests for querying the library database.""" import logging diff --git a/test/test_template.py b/test/test_template.py index 75d0e5711..243c03740 100644 --- a/test/test_template.py +++ b/test/test_template.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for template engine.""" import unittest diff --git a/test/test_util.py b/test/test_util.py index 71a41db18..10a28007b 100644 --- a/test/test_util.py +++ b/test/test_util.py @@ -1,16 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. """Tests for base utils from the beets.util package.""" import os diff --git a/test/testall.py b/test/testall.py index af83dea88..9a75f1a5b 100755 --- a/test/testall.py +++ b/test/testall.py @@ -1,19 +1,5 @@ #!/usr/bin/env python3 -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - import os import sys diff --git a/test/ui/test_ui.py b/test/ui/test_ui.py index 2416a2bdf..79378c41d 100644 --- a/test/ui/test_ui.py +++ b/test/ui/test_ui.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests for the command-line interface.""" import os diff --git a/test/ui/test_ui_importer.py b/test/ui/test_ui_importer.py index 77156a955..da3b20a75 100644 --- a/test/ui/test_ui_importer.py +++ b/test/ui/test_ui_importer.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Tests the TerminalImportSession. The tests are the same as in the test_importer module. But here the test importer inherits from diff --git a/test/ui/test_ui_init.py b/test/ui/test_ui_init.py index 4ac168d2b..abb5c4f98 100644 --- a/test/ui/test_ui_init.py +++ b/test/ui/test_ui_init.py @@ -1,17 +1,3 @@ -# This file is part of beets. -# Copyright 2016, Adrian Sampson. -# -# Permission is hereby granted, free of charge, to any person obtaining -# a copy of this software and associated documentation files (the -# "Software"), to deal in the Software without restriction, including -# without limitation the rights to use, copy, modify, merge, publish, -# distribute, sublicense, and/or sell copies of the Software, and to -# permit persons to whom the Software is furnished to do so, subject to -# the following conditions: -# -# The above copyright notice and this permission notice shall be -# included in all copies or substantial portions of the Software. - """Test module for file ui/__init__.py""" import os