Skip to content

Commit

Permalink
Bump version v22.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tefra committed May 8, 2022
1 parent e50961c commit aca0d74
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 38 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,3 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
pre-commit:
name: Pre-commit Hooks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.2
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

22.5 (May 8, 2022)
------------------
- Fixed google auth flow `#32 <https://github.com/tefra/pytuber/issues/32>`_.

20.1 (Jan 13, 2019)
-------------------
- Create application directory before use `#25 <https://github.com/tefra/pytuber/issues/25>`_.
Expand Down
10 changes: 2 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,17 @@
#
import os
import sys
from importlib import metadata

sys.path.insert(0, os.path.abspath("."))


def get_version():
from pytuber import version

return version


# -- Project information -----------------------------------------------------

project = "pytuber"
copyright = "2019, Christodoulos Tsoulloftas"
author = "Christodoulos Tsoulloftas"

version = release = get_version()
version = release = metadata.version("xsdata")


# -- General configuration ---------------------------------------------------
Expand Down
5 changes: 1 addition & 4 deletions pytuber/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
from pytuber.cli import cli
from pytuber.version import version

__all__ = ["version", "cli"]
__version__ = "22.5"
6 changes: 3 additions & 3 deletions pytuber/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
import click
import click_completion

from pytuber import __version__
from pytuber.core import commands as core
from pytuber.lastfm import commands as lastfm
from pytuber.storage import Registry
from pytuber.utils import init_registry
from pytuber.version import version

click_completion.init(complete_options=True)


@click.group()
@click.version_option(version=version)
@click.version_option(version=__version__)
@click.pass_context
def cli(ctx: click.Context):
"""Create and upload music playlists to youtube."""
Expand All @@ -22,7 +22,7 @@ def cli(ctx: click.Context):
print("Application Directory not found! Creating one at", appdir)
os.makedirs(appdir)
cfg = os.path.join(appdir, "storage.db")
init_registry(cfg, version)
init_registry(cfg, __version__)

ctx.call_on_close(lambda: Registry.persist(cfg))

Expand Down
2 changes: 1 addition & 1 deletion pytuber/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "20.1"
version = "22.5"
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pytuber
version = 21.1
version = attr: pytuber.__version__
description = Manage youtube music playlists
long_description = file: README.rst
long_description_content_type = text/x-rst
Expand Down Expand Up @@ -44,7 +44,7 @@ include_package_data = True

[options.entry_points]
console_scripts =
pytuber=pytuber:cli
pytuber=pytuber.cli:cli

[options.extras_require]
dev =
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_add.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.commands.cmd_add import create_playlist
from pytuber.core.commands.cmd_add import parse_jspf
from pytuber.core.commands.cmd_add import parse_m3u
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_autocomplete.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from tests.utils import CommandTestCase


Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_clean.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import TrackManager
from tests.utils import CommandTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_fetch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import TrackManager
from pytuber.core.services import YouService
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_list.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from tests.utils import CommandTestCase
from tests.utils import PlaylistFixture
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_push.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import TrackManager
from pytuber.core.services import YouService
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_quota.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.services import YouService
from tests.utils import CommandTestCase
from tests.utils import ConfigFixture
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_remove.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from tests.utils import CommandTestCase

Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from google.oauth2.credentials import Credentials

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import ConfigManager
from pytuber.core.models import Provider
from pytuber.core.services import YouService
Expand Down
2 changes: 1 addition & 1 deletion tests/core/commands/test_cmd_show.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import TrackManager
from tests.utils import CommandTestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/lastfm/commands/test_cmd_add.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import mock

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import Provider
from pytuber.lastfm.models import PlaylistType
Expand Down
2 changes: 1 addition & 1 deletion tests/lastfm/commands/test_cmd_fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pydrag

from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import PlaylistManager
from pytuber.core.models import Provider
from pytuber.core.models import TrackManager
Expand Down
2 changes: 1 addition & 1 deletion tests/lastfm/commands/test_cmd_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from pytuber import cli
from pytuber.cli import cli
from pytuber.core.models import ConfigManager
from pytuber.core.models import Provider
from tests.utils import CommandTestCase
Expand Down

0 comments on commit aca0d74

Please sign in to comment.