Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setuptools #44

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ instance) can be added to this.

## How to use it

Depends on PyQt5, available with pip. Then run like:
Install using:

```
pip install PyQt5
python main.py
pip install --user -U git+https://github.com/xqemu/xqemu-manager.git#egg=xqemu-manager
```

Then run `python -m xqemu-manager`
3 changes: 3 additions & 0 deletions __main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env python
from . import main
main.main()
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from PyQt5.QtWidgets import QApplication, QDialog, QFileDialog, QMainWindow, QMessageBox
from PyQt5.uic import loadUiType
from PyQt5 import QtCore, QtGui
from qmp import QEMUMonitorProtocol
from .qmp import QEMUMonitorProtocol
import sys
import os, os.path
import json
Expand All @@ -16,8 +16,8 @@
SETTINGS_FILE = './settings.json'

# Load UI files
settings_class, _ = loadUiType('settings.ui')
mainwindow_class, _ = loadUiType('mainwindow.ui')
settings_class, _ = loadUiType(os.path.join(os.path.dirname(__file__), 'settings.ui'))
mainwindow_class, _ = loadUiType(os.path.join(os.path.dirname(__file__), 'mainwindow.ui'))

class SettingsManager(object):
def __init__(self):
Expand Down
28 changes: 28 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env python

import setuptools

with open("README.md", "r") as fh:
long_description = fh.read()

setuptools.setup(
name="XQEMU-Manager",
version="0-dev",
maintainer="XQEMU maintainers",
description="Simple graphical user interface to manage XQEMU",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/xqemu/xqemu-manager",
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: OS Independent",
"Intended Audience :: End Users/Desktop",
"Topic :: Games/Entertainment",
"Topic :: System :: Emulators",
),
install_requires=['PyQt5'],
packages=['xqemu-manager'],
package_dir={'xqemu-manager': ''},
package_data={'xqemu-manager': ['*.ui']},
)