kopia lustrzana https://github.com/projecthorus/horus-gui
Move from setup.py to pyproject.toml
Signed-off-by: Daniel Ekman <knegge@gmail.com>pull/53/head
rodzic
85aee10a97
commit
2fbcfe3523
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
45
setup.py
45
setup.py
|
@ -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",]},
|
||||
)
|
Ładowanie…
Reference in New Issue