Every song is decoded by the ffmpeg CLI and streamed over RAOP, so ALAC and AIFF play too (only FairPlay is refused). pyatv has no pause or seek for RAOP, so both restart the stream at the heard position. The picker lists every AirPlay device on the network, greyed with the reason when LinTunes can't stream to it (video-only TVs, PIN pairing). Casting and AirPlay are mutually exclusive; the visualizer tile shows the AirPlay glyph and a click there stops it. Needs: pip install -e . (adds pyatv).
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
import re
|
|
from pathlib import Path
|
|
|
|
from setuptools import setup, find_packages
|
|
|
|
# Single source of truth for the version is lintunes/__init__.py; read it
|
|
# textually so setup.py doesn't import the package (and its Qt deps).
|
|
_init = (Path(__file__).parent / "lintunes" / "__init__.py").read_text()
|
|
_version = re.search(r'^__version__ = "([^"]+)"', _init, re.MULTILINE)[1]
|
|
|
|
setup(
|
|
name="lintunes",
|
|
version=_version,
|
|
packages=find_packages(),
|
|
# The web-mix templates (player.js/css, the player sprite GIF and
|
|
# the placeholder image) must ride along in an installed copy.
|
|
# The andTunes APK LinTunes installs, and the default button artwork
|
|
# sync ships to the device.
|
|
package_data={
|
|
"lintunes": ["sounds/*.wav"],
|
|
"lintunes.export": ["templates/*"],
|
|
"lintunes.android": ["andTunes.apk", "andTunes.json"],
|
|
"lintunes.andtunes": ["buttons/*.png"],
|
|
"lintunes.kaleidostrobe": ["tables.npz"],
|
|
},
|
|
install_requires=[
|
|
"PyQt6>=6.8.0", # QAudioBufferOutput (visualizer) needs Qt 6.8+
|
|
"mutagen>=1.46",
|
|
"numpy>=1.24",
|
|
"requests>=2.28",
|
|
"pychromecast>=14.0.10",
|
|
"pyatv>=0.18.0", # AirPlay (RAOP) streaming; decodes via the ffmpeg CLI
|
|
],
|
|
data_files=[
|
|
("share/applications", ["packaging/lintunes.desktop"]),
|
|
],
|
|
entry_points={
|
|
"console_scripts": [
|
|
"lintunes=lintunes.main:main",
|
|
],
|
|
},
|
|
python_requires=">=3.11",
|
|
)
|