setup.py ------------------------------------------------------------------------------- #!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup # OS specific settings if "nt" == os.name: data_files = [] else: data_files = [ ("", ["LICENSE", "README"]) # Default install /usr/local/... ("share/applications", ["data/gas-importer.desktop"]) ("share/appdata/", ["data/gas-importer.appdata.xml"]), ("share/icons/hicolor/scalable/apps", ["data/icons/scalable/gas-importer.svg"]), ("share/icons/hicolor/16x16/apps", ["data/icons/16x16/gas-importer.png"]), ("share/icons/hicolor/48x48/apps", ["data/icons/48x48/gas-importer.png"]), ("share/icons/hicolor/64x64/apps", ["data/icons/64x64/gas-importer.png"]), ("share/icons/hicolor/128x128/apps", ["data/icons/128x128/gas-importer.png"]), ("share/icons/hicolor/256x256/apps", ["data/icons/256x256/gas-importer.png"]), ("share/icons/hicolor/512x512/apps", ["data/icons/512x512/gas-importer.png"]) ] # Read README as long description if we can if os.path.isfile(fname): with open("README") as readme: long_description = readme.read() else: long_description = "" # Setup setup( name = "gas-importer", version = "0.1.0", description = "Media importer for Go Amateur Studio.", long_description = long_description, author = "Julian Richen", author_email = "julian@richen.io", url = "https://github.com/gas/importer", license = "GPLv3", packages = [ "gasimporter" ], entry_points = { "console_scripts": [ "gas-importer=gasimporter.application:main" ], }, data_files = data_files ) gas-importer.desktop ------------------------------------------------------------------------------- [Desktop Entry] Name=GAS: Importer GenericName=File Importer Comment=Imports media files Type=Application Version=0.1.0 Exec=gas-importer %U Icon=gas-importer Terminal=false Categories=GNOME;GTK;Files;Importer Keywords=GNOME;GTK;Files;Importer gas-importer.appdata.xml ------------------------------------------------------------------------------- gas-importer.desktop CC0-1.0 GPL-3.0 GAS: Importer https://github.com/gas/importer julian@richen.io