2024-12-29 19:23:53 +01:00
|
|
|
#!/usr/bin/python3
|
|
|
|
|
|
|
|
import setuptools
|
2025-01-31 21:25:46 +01:00
|
|
|
import os
|
2024-12-29 19:23:53 +01:00
|
|
|
from pathlib import Path
|
2025-01-31 21:25:46 +01:00
|
|
|
import shutil
|
2024-12-29 19:23:53 +01:00
|
|
|
|
|
|
|
this_directory = Path(__file__).parent
|
2025-01-31 21:25:46 +01:00
|
|
|
desktop_entry_path = os.path.expanduser("~/.local/share/applications")
|
|
|
|
icon_path = os.path.expanduser("~/.local/share/icons/hicolor/scalable/apps")
|
|
|
|
|
|
|
|
os.makedirs(icon_path, exist_ok=True)
|
|
|
|
|
|
|
|
shutil.copy(f"{this_directory}/wobuzz.desktop", f"{desktop_entry_path}/wobuzz.desktop") # install desktop entry
|
|
|
|
shutil.copy(f"{this_directory}/wobuzz/icon.svg", f"{icon_path}/wobuzz.svg") # install icon
|
|
|
|
|
|
|
|
# use readme file as long description
|
2024-12-29 19:23:53 +01:00
|
|
|
long_description = (this_directory / "README.md").read_text()
|
|
|
|
|
|
|
|
setuptools.setup(
|
|
|
|
name="Wobuzz",
|
2025-02-21 17:42:38 +01:00
|
|
|
version="0.1a2",
|
2024-12-29 19:23:53 +01:00
|
|
|
description="An audio player made by The Wobbler",
|
|
|
|
long_description=long_description,
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
url="https://teapot.informationsanarchistik.de/Wobbl/Wobuzz",
|
|
|
|
author="The Wobbler",
|
|
|
|
author_email="emil@i21k.de",
|
2025-02-21 17:59:27 +01:00
|
|
|
license="GNU GPLv3",
|
2025-01-25 14:05:10 +01:00
|
|
|
packages=setuptools.find_packages(include=["wobuzz", "wobuzz.*"]),
|
2025-01-31 22:57:35 +01:00
|
|
|
package_data={"": ["*.txt", "*.svg"]},
|
2024-12-29 19:23:53 +01:00
|
|
|
install_requires=[
|
|
|
|
"PyQt6",
|
2025-01-25 11:56:47 +01:00
|
|
|
"tinytag",
|
|
|
|
"pydub",
|
|
|
|
"pygame",
|
2025-01-31 22:57:35 +01:00
|
|
|
"wobbl_tools @ git+https://teapot.informationsanarchistik.de/Wobbl/wobbl_tools@9b7e796877781f77f6df93475750c15a0ca51dd9#egg=wobbl_tools"
|
2024-12-29 19:23:53 +01:00
|
|
|
],
|
|
|
|
entry_points={
|
2025-01-25 14:05:10 +01:00
|
|
|
"console_scripts": ["wobuzz=wobuzz.command_line:main"],
|
2024-12-29 19:23:53 +01:00
|
|
|
}
|
|
|
|
)
|