Update some paths

This commit is contained in:
Sumner Evans
2020-09-19 09:58:18 -06:00
parent aec54f8a1d
commit 74e792c270
2 changed files with 10 additions and 10 deletions

View File

@@ -27,7 +27,7 @@ tasks:
python setup.py check -mrs python setup.py check -mrs
black --check . black --check .
flake8 flake8
mypy sublime tests/**/*.py mypy sublime_music tests/**/*.py
cicd/custom_style_check.py cicd/custom_style_check.py
- test: | - test: |

View File

@@ -8,19 +8,19 @@ with open(here.joinpath("README.rst"), encoding="utf-8") as f:
long_description = f.read() long_description = f.read()
# Find the version # Find the version
with open(here.joinpath("sublime", "__init__.py")) as f: with open(here.joinpath("sublime_music", "__init__.py")) as f:
for line in f: for line in f:
if line.startswith("__version__"): if line.startswith("__version__"):
version = eval(line.split()[-1]) version = eval(line.split()[-1])
break break
package_data_dirs = [ package_data_dirs = [
here.joinpath("sublime", "adapters", "icons"), here.joinpath("sublime_music", "adapters", "icons"),
here.joinpath("sublime", "adapters", "images"), here.joinpath("sublime_music", "adapters", "images"),
here.joinpath("sublime", "adapters", "subsonic", "icons"), here.joinpath("sublime_music", "adapters", "subsonic", "icons"),
here.joinpath("sublime", "dbus", "mpris_specs"), here.joinpath("sublime_music", "dbus", "mpris_specs"),
here.joinpath("sublime", "ui", "icons"), here.joinpath("sublime_music", "ui", "icons"),
here.joinpath("sublime", "ui", "images"), here.joinpath("sublime_music", "ui", "images"),
] ]
package_data_files = [] package_data_files = []
for data_dir in package_data_dirs: for data_dir in package_data_dirs:
@@ -28,7 +28,7 @@ for data_dir in package_data_dirs:
package_data_files.append(str(file)) package_data_files.append(str(file))
setup( setup(
name="sublime-music", name="sublime_music",
version=version, version=version,
url="https://gitlab.com/sublime-music/sublime-music", url="https://gitlab.com/sublime-music/sublime-music",
description="A native GTK *sonic client.", description="A native GTK *sonic client.",
@@ -51,7 +51,7 @@ setup(
], ],
keywords="airsonic subsonic libresonic gonic music", keywords="airsonic subsonic libresonic gonic music",
packages=find_packages(exclude=["tests"]), packages=find_packages(exclude=["tests"]),
package_data={"sublime": ["ui/app_styles.css", *package_data_files]}, package_data={"sublime_music": ["ui/app_styles.css", *package_data_files]},
install_requires=[ install_requires=[
"bleach", "bleach",
"dataclasses-json", "dataclasses-json",