Skip to content

Commit

Permalink
整理命名为 vistopia、添加 pyproject.toml 方便安装
Browse files Browse the repository at this point in the history
  • Loading branch information
chazeon committed May 11, 2024
1 parent 06f69d0 commit 8554ca6
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# python-vistopian
# python-vistopia

看理想命令行客户端 / 下载器

Expand Down
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[project]
name = "vistopia"
authors = [{ name = "Chenxing Luo", email = "chenxing.luo@gmail.com" }]
readme = "README.md"
license = { file = "LICENSE" }
dynamic = ["version"]
dependencies = ["requests", "mutagen", "click", "tabulate", "wcwidth"]
requires-python = ">=3.6"

[project.scripts]
vistopian = "vistopia:main.main"

[project.urls]
Repository = "https://github.com/chazeon/python-vistopia.git"

[tool.setuptools.packages.find]
include = ["vistopia"]
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
addopts = --cov vistopian --doctest-modules --cov-report=xml --cov-report=term
addopts = --cov vistopia --doctest-modules --cov-report=xml --cov-report=term
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

TESTS_DIR = Path(__file__).parent
sys.path.insert(0, str(TESTS_DIR.parent))
sys.path.insert(0, str(TESTS_DIR.parent / "vistopian"))
from vistopian.main import main
sys.path.insert(0, str(TESTS_DIR.parent / "vistopia"))
from vistopia.main import main


def test_cli_list_show_content(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

TESTS_DIR = Path(__file__).parent
sys.path.insert(0, str(TESTS_DIR.parent))
from vistopian.visitor import Visitor
from vistopia.visitor import Visitor


@pytest.fixture
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions vistopian/main.py → vistopia/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from tabulate import tabulate
from os import environ

from visitor import Visitor
from utils import range_expand
from .visitor import Visitor
from .utils import range_expand

logger = getLogger(__name__)

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8554ca6

Please sign in to comment.