diff --git a/README.md b/README.md index ecc4a74..e9f45b3 100755 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ developer to make changes to the source code while retaining the installation entry points so it can be used like a normal install. ```console -(venv) $ pip install -e . +(venv) $ pip install . ``` ### Run diff --git a/pyproject.toml b/pyproject.toml index 0134b59..614e094 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,3 +18,38 @@ horusdemodlib = "^0.3.13" [build-system] requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api" + +[project] +authors = [ + {name = "Mark Jessop", email = "vk5qi@rfhead.net"}, +] +requires-python = "<4.0,>=3.6" +dependencies = [ + "requests<3.0.0,>=2.32.0", + "crcmod<2.0,>=1.7", + "PyQt6<7.0.0,>=6.9.0", + "pyqtgraph<1.0.0,>=0.13.7", + "pyaudio<1.0.0,>=0.2.14", + "horusdemodlib<1.0.0,>=0.3.15", + "PyQt6", + "audioop-lts; python_version>='3.13'", + "crcmod", + "horusdemodlib>=0.3.12", + "numpy", + "pyaudio", + "pyqtgraph", + "requests", +] +name = "horusgui" +version = "0.4.1" +description = "Project Horus GUI Telemetry Decdoer" +keywords = ["horus telemetry radio"] +readme = "README.md" +classifiers = [ + "Intended Audience :: Developers", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", +] + +[project.scripts] +horus-gui = "horusgui.gui:main" diff --git a/setup.py b/setup.py deleted file mode 100755 index c0d03d2..0000000 --- a/setup.py +++ /dev/null @@ -1,45 +0,0 @@ -import os -import re -from setuptools import setup, find_packages - -regexp = re.compile(r".*__version__ = [\'\"](.*?)[\'\"]", re.S) - -init_file = os.path.join(os.path.dirname(__file__), "horusgui", "__init__.py") -with open(init_file, "r") as f: - module_content = f.read() - match = regexp.match(module_content) - if match: - version = match.group(1) - else: - raise RuntimeError(f"Cannot find __version__ in {init_file}") - - -with open("README.md", "r") as f: - readme = f.read() - - -with open("requirements.txt", "r") as f: - requirements = [] - for line in f.read().split("\n"): - line = line.strip() - if line and not line.startswith("#"): - requirements.append(line) - - -if __name__ == "__main__": - setup( - name="horusgui", - description="Project Horus GUI Telemetry Decdoer", - long_description=readme, - version=version, - install_requires=requirements, - keywords=["horus telemetry radio"], - package_dir={"": "."}, - packages=find_packages("."), - classifiers=[ - "Intended Audience :: Developers", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - ], - entry_points={"console_scripts": ["horus-gui=horusgui.gui",]}, - )