From 1986e395d7ee37b465f595e4c35940a713fb2ef5 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Fri, 27 May 2022 17:04:46 +0200 Subject: [PATCH] Add setup.py --- .../org.smolnet.cast.desktop | 0 dpkg.lst | 5 ---- install.sh | 2 +- src/main.py => scripts/cast | 0 setup.py | 29 +++++++++++++++++++ stdeb.cfg | 3 ++ 6 files changed, 33 insertions(+), 6 deletions(-) rename src/cast.desktop => data/org.smolnet.cast.desktop (100%) delete mode 100644 dpkg.lst rename src/main.py => scripts/cast (100%) create mode 100644 setup.py create mode 100644 stdeb.cfg diff --git a/src/cast.desktop b/data/org.smolnet.cast.desktop similarity index 100% rename from src/cast.desktop rename to data/org.smolnet.cast.desktop diff --git a/dpkg.lst b/dpkg.lst deleted file mode 100644 index 33100c2..0000000 --- a/dpkg.lst +++ /dev/null @@ -1,5 +0,0 @@ -python3-bs4 -python3-wxgtk4.0 -python3-feedparser -python3-vlc -python3-pychromecast diff --git a/install.sh b/install.sh index c9c61bd..9fedc71 100755 --- a/install.sh +++ b/install.sh @@ -17,5 +17,5 @@ sudo chmod +x /usr/local/bin/cast sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3/dist-packages/ sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3.9/ sudo cp -a src/{Channel,ChannelProvider,Items,Utils} /usr/lib/python3.10/ -sudo cp src/cast.desktop /usr/share/applications/ +sudo cp data/org.smolnet.cast.desktop /usr/share/applications/ exit 0 diff --git a/src/main.py b/scripts/cast similarity index 100% rename from src/main.py rename to scripts/cast diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..26616d2 --- /dev/null +++ b/setup.py @@ -0,0 +1,29 @@ +import setuptools + +with open("README.md", "r", encoding="utf-8") as fh: + long_description = fh.read() + +setuptools.setup( + name="cast", + version="0.0.1", + author="Micke Nordin", + author_email="hej@mic.ke", + data_files = [('share/applications', ['data/org.smolnet.cast.desktop']),], + description="A Public Service video player.", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://code.smolnet.org/micke/cast", + project_urls={ + "Bug Tracker": "https://code.smolnet.org/micke/cast/issues", + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GPL-3.0", + "Operating System :: OS Independent", + ], + package_dir={"": "src"}, + packages=setuptools.find_packages(where="src"), + python_requires=">=3.9", + scripts=["scripts/cast"], +) + diff --git a/stdeb.cfg b/stdeb.cfg new file mode 100644 index 0000000..c027932 --- /dev/null +++ b/stdeb.cfg @@ -0,0 +1,3 @@ +[DEFAULT] +Depends3: python3-bs4, python3-wxgtk4.0, python3-feedparser, python3-vlc, python3-pychromecast +Debian-Version: 1