mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Add ui includes to setup.py to address #7
This commit is contained in:
parent
18111d2d50
commit
65bdf9c0b7
@ -32,7 +32,7 @@ the following rule in C{/etc/udev/rules.d/90-local.rules} ::
|
|||||||
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="plugdev"
|
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c", MODE="660", GROUP="plugdev"
|
||||||
You may have to adjust the GROUP and the location of the rules file to suit your distribution.
|
You may have to adjust the GROUP and the location of the rules file to suit your distribution.
|
||||||
"""
|
"""
|
||||||
__version__ = "0.3.0a3"
|
__version__ = "0.3.0a4"
|
||||||
__docformat__ = "epytext"
|
__docformat__ = "epytext"
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
TEMPORARY_FILENAME_TEMPLATE = "libprs500_"+__version__+"_temp"
|
TEMPORARY_FILENAME_TEMPLATE = "libprs500_"+__version__+"_temp"
|
||||||
|
@ -50,7 +50,7 @@ def import_ui(name):
|
|||||||
uifile = pkg_resources.resource_stream(__name__, name)
|
uifile = pkg_resources.resource_stream(__name__, name)
|
||||||
code_string = StringIO.StringIO()
|
code_string = StringIO.StringIO()
|
||||||
winfo = compiler.UICompiler().compileUi(uifile, code_string)
|
winfo = compiler.UICompiler().compileUi(uifile, code_string)
|
||||||
ui = pkg_resources.resource_filename(__name__, name)
|
#ui = pkg_resources.resource_filename(__name__, name)
|
||||||
exec code_string.getvalue()
|
exec code_string.getvalue()
|
||||||
return locals()[winfo["uiclass"]]
|
return locals()[winfo["uiclass"]]
|
||||||
|
|
||||||
|
25
setup.py
25
setup.py
@ -35,6 +35,7 @@ if sys.hexversion < 0x2050000:
|
|||||||
print >> sys.stderr, "If you are using easy_install, try easy_install-2.5"
|
print >> sys.stderr, "If you are using easy_install, try easy_install-2.5"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='libprs500',
|
name='libprs500',
|
||||||
packages = find_packages(),
|
packages = find_packages(),
|
||||||
@ -42,8 +43,12 @@ setup(
|
|||||||
author='Kovid Goyal',
|
author='Kovid Goyal',
|
||||||
author_email='kovid@kovidgoyal.net',
|
author_email='kovid@kovidgoyal.net',
|
||||||
url = 'http://libprs500.kovidgoyal.net',
|
url = 'http://libprs500.kovidgoyal.net',
|
||||||
|
package_data = { 'libprs500.gui' : ['*.ui'] },
|
||||||
entry_points = {
|
entry_points = {
|
||||||
'console_scripts': [ 'prs500 = libprs500.cli.main:main', 'lrf-meta = libprs500.lrf.meta:main' ],
|
'console_scripts': [ \
|
||||||
|
'prs500 = libprs500.cli.main:main', \
|
||||||
|
'lrf-meta = libprs500.lrf.meta:main' \
|
||||||
|
],
|
||||||
'gui_scripts' : [ 'prs500-gui = libprs500.gui.main:main']
|
'gui_scripts' : [ 'prs500-gui = libprs500.gui.main:main']
|
||||||
},
|
},
|
||||||
zip_safe = True,
|
zip_safe = True,
|
||||||
@ -51,16 +56,24 @@ setup(
|
|||||||
dependency_links=["http://sourceforge.net/project/showfiles.php?group_id=6473",
|
dependency_links=["http://sourceforge.net/project/showfiles.php?group_id=6473",
|
||||||
"http://easynews.dl.sourceforge.net/sourceforge/pyusb/pyusb-0.3.5.tar.gz",
|
"http://easynews.dl.sourceforge.net/sourceforge/pyusb/pyusb-0.3.5.tar.gz",
|
||||||
],
|
],
|
||||||
description='Library to interface with the Sony Portable Reader 500 over USB. Also has a GUI with library management features.',
|
description =
|
||||||
|
"""
|
||||||
|
Library to interface with the Sony Portable Reader 500
|
||||||
|
over USB. Also has a GUI with library management features.
|
||||||
|
""",
|
||||||
long_description =
|
long_description =
|
||||||
"""
|
"""
|
||||||
libprs500 is library to interface with the `SONY Portable Reader`_ over USB_.
|
libprs500 is library to interface with the
|
||||||
|
`SONY Portable Reader`_ over USB_.
|
||||||
It provides methods to list the contents of the file system on the device,
|
It provides methods to list the contents of the file system on the device,
|
||||||
as well as copy files from and to the device.
|
as well as copy files from and to the device.
|
||||||
It also provides a command line and a graphical user interface via the commands prs500 and
|
It also provides a command line and a graphical user interface via
|
||||||
prs500-gui. The graphical user interface is designed to manage an ebook library and allows for easy
|
the commands prs500 and
|
||||||
|
prs500-gui. The graphical user interface is designed to
|
||||||
|
manage an ebook library and allows for easy
|
||||||
syncing between the library and the ebook reader.
|
syncing between the library and the ebook reader.
|
||||||
In addition libprs500 has a utility to read/write the metadata from LRF files (unencrypted books in the SONY BBeB format). A command line
|
In addition libprs500 has a utility to read/write the metadata
|
||||||
|
from LRF files (unencrypted books in the SONY BBeB format). A command line
|
||||||
interface to this is provided via the command lrf-meta.
|
interface to this is provided via the command lrf-meta.
|
||||||
|
|
||||||
For SVN access: svn co https://svn.kovidgoyal.net/code/prs-500
|
For SVN access: svn co https://svn.kovidgoyal.net/code/prs-500
|
||||||
|
Loading…
x
Reference in New Issue
Block a user