Skip to content

Commit

Permalink
mv rose rose_core
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Apr 16, 2024
1 parent b8dced7 commit c8f0b97
Show file tree
Hide file tree
Showing 35 changed files with 176 additions and 167 deletions.
2 changes: 1 addition & 1 deletion bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ message="$2"
# Fail if the branch is dirty.
git diff --exit-code

echo "$version" > "$ROSE_ROOT/rose/.version"
echo "$version" > "$ROSE_ROOT/rose_core/.version"
git add .
git commit -am "[Release] v$version - $message"
git tag "$version" HEAD -m "v$version"
Expand Down
8 changes: 4 additions & 4 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import pytest
from click.testing import CliRunner

from rose.cache import CACHE_SCHEMA_PATH, process_string_for_fts, update_cache
from rose.common import VERSION
from rose.config import Config
from rose.templates import PathTemplateConfig
from rose_core.cache import CACHE_SCHEMA_PATH, process_string_for_fts, update_cache
from rose_core.common import VERSION
from rose_core.config import Config
from rose_core.templates import PathTemplateConfig

logger = logging.getLogger(__name__)

Expand Down
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
];
dev-cli = pkgs.writeShellScriptBin "rose" ''
cd $ROSE_ROOT
python -m rose "$@"
python -m rose_cli "$@"
'';
in
{
Expand Down Expand Up @@ -78,7 +78,7 @@
packages = rec {
rose = python.pkgs.buildPythonPackage {
pname = "rose";
version = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile ./rose/.version);
version = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile ./rose_core/.version);
src = ./.;
propagatedBuildInputs = prod-deps;
doCheck = false;
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions rose/__main__.py → rose_core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import click

from rose.cli import cli
from rose.common import RoseExpectedError
from rose_core.cli import cli
from rose_core.common import RoseExpectedError


def main() -> None:
Expand Down
2 changes: 1 addition & 1 deletion rose/audiotags.py → rose_core/audiotags.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import mutagen.oggopus
import mutagen.oggvorbis

from rose.common import Artist, ArtistMapping, RoseError, RoseExpectedError, uniq
from rose_core.common import Artist, ArtistMapping, RoseError, RoseExpectedError, uniq

if typing.TYPE_CHECKING:
pass
Expand Down
4 changes: 2 additions & 2 deletions rose/audiotags_test.py → rose_core/audiotags_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import pytest

from conftest import TEST_TAGGER
from rose.audiotags import (
from rose_core.audiotags import (
AudioTags,
UnsupportedTagValueTypeError,
_split_tag,
format_artist_string,
parse_artist_string,
)
from rose.common import Artist, ArtistMapping
from rose_core.common import Artist, ArtistMapping


@pytest.mark.parametrize(
Expand Down
8 changes: 4 additions & 4 deletions rose/cache.py → rose_core/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
import tomllib
import uuid6

from rose.audiotags import SUPPORTED_AUDIO_EXTENSIONS, AudioTags
from rose.common import (
from rose_core.audiotags import SUPPORTED_AUDIO_EXTENSIONS, AudioTags
from rose_core.common import (
VERSION,
Artist,
ArtistMapping,
Expand All @@ -60,8 +60,8 @@
sha256_dataclass,
uniq,
)
from rose.config import Config
from rose.templates import artistsfmt, eval_release_template, eval_track_template
from rose_core.config import Config
from rose_core.templates import artistsfmt, eval_release_template, eval_track_template

logger = logging.getLogger(__name__)

Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions rose/cache_test.py → rose_core/cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import tomllib

from conftest import TEST_COLLAGE_1, TEST_PLAYLIST_1, TEST_RELEASE_1, TEST_RELEASE_2, TEST_RELEASE_3
from rose.audiotags import AudioTags
from rose.cache import (
from rose_core.audiotags import AudioTags
from rose_core.cache import (
CACHE_SCHEMA_PATH,
STORED_DATA_FILE_REGEX,
CachedCollage,
Expand Down Expand Up @@ -47,8 +47,8 @@
update_cache_evict_nonexistent_releases,
update_cache_for_releases,
)
from rose.common import VERSION, Artist, ArtistMapping
from rose.config import Config
from rose_core.common import VERSION, Artist, ArtistMapping
from rose_core.config import Config


def test_schema(config: Config) -> None:
Expand Down
Loading

0 comments on commit c8f0b97

Please sign in to comment.