Fix setup.py to work properly
This commit is contained in:
parent
1960cb2517
commit
88ddc7ce4a
4 changed files with 45 additions and 13 deletions
|
|
@ -22,6 +22,18 @@ To run the application just donwload/clone the code, “cd” into the applicati
|
||||||
|
|
||||||
bc. ./mcg.py
|
bc. ./mcg.py
|
||||||
|
|
||||||
|
h2. Building
|
||||||
|
|
||||||
|
python3 setup.py build
|
||||||
|
|
||||||
|
h2. Packaging
|
||||||
|
|
||||||
|
python3 setup.py sdist
|
||||||
|
|
||||||
|
h2. Installation
|
||||||
|
|
||||||
|
python3 setup.py install
|
||||||
|
|
||||||
h2. Screenshots
|
h2. Screenshots
|
||||||
|
|
||||||
!https://www.coderkun.de/images/mcg-cover.png(Cover)!
|
!https://www.coderkun.de/images/mcg-cover.png(Cover)!
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Encoding=UTF-8
|
Encoding=UTF-8
|
||||||
Name=MPDCoverGrid (GTK)
|
Name=MPDCoverGrid
|
||||||
Comment=Covergrid for the Music Player Daemon (GTK)
|
Comment=Covergrid for the Music Player Daemon
|
||||||
Type=Application
|
Type=Application
|
||||||
Exec=mcgGtk
|
Exec=mcg
|
||||||
Path=
|
Path=
|
||||||
Categories=AudioVideo;
|
Categories=AudioVideo;
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
"""MPDCoverGrid is a client for the Music Player Daemon, focused on albums instead of single tracks."""
|
"""MPDCoverGrid is a client for the Music Player Daemon, focused on albums instead of single tracks."""
|
||||||
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from mcg.application import Application
|
from mcg.application import Application
|
||||||
|
|
@ -11,8 +10,12 @@ from mcg.application import Application
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
# Start application
|
# Start application
|
||||||
app = Application()
|
app = Application()
|
||||||
exit_status = app.run(sys.argv)
|
exit_status = app.run(sys.argv)
|
||||||
sys.exit(exit_status)
|
sys.exit(exit_status)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
33
setup.py
33
setup.py
|
|
@ -2,6 +2,8 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
import os
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -18,24 +20,39 @@ setup(
|
||||||
packages = [
|
packages = [
|
||||||
"mcg"
|
"mcg"
|
||||||
],
|
],
|
||||||
scripts = [],
|
package_dir = {
|
||||||
|
'mcg': 'mcg'
|
||||||
|
},
|
||||||
|
package_data = {
|
||||||
|
'mcg': [
|
||||||
|
'LICENSE',
|
||||||
|
'README.textile'
|
||||||
|
]
|
||||||
|
},
|
||||||
install_requires = [
|
install_requires = [
|
||||||
"python-gobject"
|
"pygobject"
|
||||||
],
|
],
|
||||||
extras_require = {
|
extras_require = {
|
||||||
'keyring support': ["python-keyring"]
|
'keyring support': ["python-keyring"]
|
||||||
},
|
},
|
||||||
entry_points = {
|
entry_points = {
|
||||||
"gui_scripts": [
|
"gui_scripts": [
|
||||||
"frontend = mcg:main"
|
"mcg = mcg.mcg:main"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
data_files = [
|
data_files = [
|
||||||
"data/MPDCoverGridGTK.desktop",
|
(os.path.join('share', 'applications'), [
|
||||||
"data/gschemas.compiled",
|
"data/MPDCoverGridGTK.desktop"
|
||||||
"data/gtk.glade",
|
]),
|
||||||
"data/mcg.css",
|
(os.path.join('share', 'glib-2.0', 'schemas'), [
|
||||||
"data/noise-texture.png"
|
"data/de.coderkun.mcg.gschema.xml"
|
||||||
|
]),
|
||||||
|
(os.path.join('share', 'mcg'), [
|
||||||
|
"data/de.coderkun.mcg.gresource",
|
||||||
|
"data/gtk.glade",
|
||||||
|
"data/mcg.css",
|
||||||
|
"data/noise-texture.png"
|
||||||
|
])
|
||||||
],
|
],
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 3 - Alpha",
|
"Development Status :: 3 - Alpha",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue