Replace setup.cfg with setup.py, install icon and .desktop

This commit is contained in:
Teemu Ikonen 2021-07-31 20:38:36 +03:00
parent a628160328
commit f9aae7e629
2 changed files with 43 additions and 39 deletions

View File

@ -1,39 +0,0 @@
[metadata]
name = satellite-tpikonen
version = 0.1.0
author = Teemu Ikonen
author_email = tpikonen@mailbox.org
description = Navigation satellite (GPS/GNSS) application
license = GPL3
long_description = file: README.md
long_description_content_type = text/markdown
url = https://codeberg.org/tpikonen/satellite
platforms = Linux, Gnome
project_urls =
Bug Tracker = https://codeberg.org/tpikonen/satellite/issues
classifiers =
Development Status :: 3 - Alpha
Environment :: X11 Applications :: GTK
Intended Audience :: End Users/Desktop
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Operating System :: POSIX :: Linux
Programming Language :: Python :: 3
Topic :: Desktop Environment :: Gnome
Topic :: Scientific/Engineering :: GIS
Topic :: Utilities
[options]
package_dir =
= ./
packages = find:
python_requires = >=3.7
[options.packages.find]
where = ./
[options.package_data]
* = *.ui
[options.entry_points]
gui_scripts =
satellite=satellite.__main__:main

43
setup.py Normal file
View File

@ -0,0 +1,43 @@
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="satellite-tpikonen",
version="0.1.0",
author="Teemu Ikonen",
author_email="tpikonen@mailbox.org",
description="Navigation satellite (GPS/GNSS) application",
license="GPL3",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://codeberg.org/tpikonen/satellite",
platforms=["Linux", "Gnome"],
project_urls={
"Bug Tracker": "https://codeberg.org/tpikonen/satellite/issues",
},
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: X11 Applications :: GTK",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Topic :: Desktop Environment :: Gnome",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Utilities",
],
package_dir={"": "./"},
packages=setuptools.find_packages(where="./"),
python_requires=">=3.6",
package_data={
"": ["*.ui"],
},
data_files=[('share/applications', ['data/satellite.desktop']),
('share/icons/hicolor/scalable/apps', ['data/satellite.svg'])],
zip_safe=False,
entry_points={
"gui_scripts": "satellite=satellite.__main__:main",
}
)