Skip to content

Commit

Permalink
re-synch with pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
stonebig committed Jun 16, 2014
1 parent 189f766 commit 1c7b60c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Changelog

* create a github project 'sqlite_bro', from 'sqlite_py_manager' baresql example

* discover how to publish on Pypi
* discover how to publish on Pypi (hard)



Expand Down
Binary file modified docs/sqlite_bro.GIF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
[metadata]
description-file = README.rst

14 changes: 6 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,23 @@ def get_long_description():
version=get_version(),
description="a graphic SQLite Client in 1 Python file",
long_description=get_long_description(),
keywords='sqlite',
keywords=['sqlite', 'gui'],
author='stonebig',
author_email='',
url='https://github.com/stonebig/baresql/blob/master/examples',
url='https://github.com/stonebig/sqlite_bro',
license='MIT license',
py_modules=['sqlite_bro'],
namespace_packages=[],
#namespace_packages=[],
include_package_data=True,
zip_safe=False,
install_requires=[
# Nothing
],
#zip_safe=False,
#install_requires=[],
entry_points={
'console_scripts': [
'sqlite_bro = sqlite_bro:_main',
],
},
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Education',
'License :: OSI Approved :: MIT License',
Expand Down
29 changes: 15 additions & 14 deletions sqlite_bro.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class App:
def __init__(self):
"""create a tkk graphic interface with a main window tk_win"""
self.__version__ = '0.7.0'
self._title= "2014-06-15a : my first Pypi !"
self._title= "2014-06-15b : my first Pypi !"
self.conn = None # Baresql database object
self.database_file = ""
self.tk_win = Tk()
Expand Down Expand Up @@ -100,26 +100,27 @@ def create_toolbar(self):

# list of (image, action, tooltip) :
to_show = [
('refresh_img', self.actualize_db, "Actualize Databases"),
('run_img', self.run_tab, "Run Script Selection"),
('deltab_img', lambda x=self: x.n.del_tab(), "Delete current tab"),
('refresh_img', self.actualize_db, "Actualize databases"),
('run_img', self.run_tab, "Run script selection"),
('deltab_img', lambda x=self: x.n.del_tab(),
"Delete current script"),
('deltabresult_img', lambda x=self: x.n.remove_treeviews(
x.n.notebook.select()), "Clear tab Result"),
x.n.notebook.select()), "Clear script result"),
('newtab_img', lambda x=self: x.n.new_query_tab("___", ""),
"Create a New Tab"),
"Create a new script"),
('csvin_img', lambda x=self: import_csvtb([x.conn, x.actualize_db]),
"Import a CSV file into a Table"),
"Import a CSV file into a table"),
('csvex_img', lambda x=self: export_csvtb([x.conn, x.db_tree]),
"Export Selected Table to a CSV file"),
"Export selected table to a CSV file"),
('dbdef_img', self.savdb_script,
"Save main Database as a SQL Script"),
"Save main database as a SQL script"),
('qryex_img', lambda x=self: export_csvqr([x.conn, x.n]),
"Export Selected Query to a CSV file"),
"Export script selection to a CSV file"),
('exe_img', self.exsav_script,
"Run Script+Output to a file (First 200 rec. per Qry)"),
('sqlin_img', self.load_script, "Load a SQL Script File"),
('sqlsav_img', self.sav_script, "Save a SQL Script in a File"),
('chgsz_img', self.chg_fontsize, "Modify Font Size")]
"Run script+output to a file (First 200 rec. per Qry)"),
('sqlin_img', self.load_script, "Load a SQL script file"),
('sqlsav_img', self.sav_script, "Save a SQL script in a file"),
('chgsz_img', self.chg_fontsize, "Modify font size")]

for img, action, tip in to_show:
b = Button(self.toolbar, image=self.tk_icon[img], command=action)
Expand Down

0 comments on commit 1c7b60c

Please sign in to comment.