Skip to content

Commit a8806ba

Browse files
author
Toni Ruža
committed
Merge pull request #64 from nowsecure/pypi-release
PyPI release
2 parents 0d261b6 + 958bfa1 commit a8806ba

File tree

9 files changed

+89
-9
lines changed

9 files changed

+89
-9
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,8 @@ output/*/index.html
4343
# Sphinx
4444
docs/_build
4545

46+
# PyCharm
47+
.idea
48+
4649
# Filebrowser examples database
4750
examples/filebrowser/filebrowser.sqlite

DESCRIPTION.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
=============
2+
datagrid_gtk3
3+
=============
4+
5+
.. image:: https://semaphoreci.com/api/v1/projects/bd20f827-7591-4c58-87bb-e9235fdb9a0a/422070/shields_badge.svg
6+
:target: https://semaphoreci.com/nowsecure/datagrid-gtk3
7+
8+
.. image:: https://coveralls.io/repos/nowsecure/datagrid-gtk3/badge.svg
9+
:target: https://coveralls.io/r/nowsecure/datagrid-gtk3
10+
11+
12+
SYNOPSIS
13+
========
14+
15+
MVC framework for working with the Gtk3 TreeView widget.
16+
Includes classes for file browsing and displaying SQLite databases.
17+
18+
19+
MOTIVATION
20+
==========
21+
22+
Created on the account of the reoccurring need to display and interact with
23+
contents of SQLite databases in Gtk applications.

HISTORY.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
.. :changelog:
22
33
History
4-
-------
4+
=======
55

66
0.1.2 (2015-04-28)
7-
---------------------
7+
------------------
88

99
* Initial public release.

docs/index.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to datagrid-gtk3's documentation!
7-
======================================
6+
.. include:: ../DESCRIPTION.rst
87

9-
Contents:
8+
Contents
9+
========
1010

1111
.. toctree::
1212
:maxdepth: 2
1313

14-
readme
14+
screenshots
1515
installation
16+
usage
1617
contributing
1718
authors
1819
history

docs/readme.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/screenshots.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
Screenshots
3+
===========
4+
5+
"Chinook" example
6+
-----------------
7+
8+
.. figure:: screenshots/table_view.png
9+
:alt: Table view
10+
11+
Displaying a table from an SQLite database with text filtering.
12+
13+
.. figure:: screenshots/date_ranges.png
14+
:alt: Date ranges.
15+
16+
Displaying a table from an SQLite database with date range filtering.
17+
18+
19+
"Filebrowser" example
20+
---------------------
21+
22+
.. figure:: screenshots/icon_view.png
23+
:alt: Icon view
24+
25+
Browsing the file system in icon view mode with thumbnails.
26+
27+
28+
"Selectable" example
29+
--------------------
30+
31+
.. figure:: screenshots/row_selection.png
32+
:alt: Row selection
33+
34+
Persistent row selection in SQLite databases.

docs/usage.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Usage
3+
=====
4+
5+
The basic usage scenario looks like this:
6+
7+
.. code-block:: python
8+
9+
win = Gtk.Window()
10+
11+
data_source = SQLiteDataSource(db_path, table_name)
12+
datagrid_container = DataGridContainer(win)
13+
controller = DataGridController(datagrid_container, data_source)
14+
datagrid_container.grid_vbox.reparent(win)
15+
16+
win.show()
17+
18+
19+
For more advanced usages see the example applications in the "examples" folder.

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# wheel==0.23.0
1+
wheel>=0.23.0
22
python-dateutil>=2.4.2
33
sqlalchemy>=0.9
44
Pillow>=2.7.0

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
SETUP_DIR = os.path.dirname(os.path.realpath(__file__))
1010
EGG_RE = re.compile('#egg=([^#@\n]+)')
1111

12-
readme = open(os.path.join(SETUP_DIR, 'README.rst')).read()
12+
readme = open(os.path.join(SETUP_DIR, 'DESCRIPTION.rst')).read()
1313
history = open(
1414
os.path.join(
1515
SETUP_DIR, 'HISTORY.rst')).read().replace('.. :changelog:', '')
@@ -72,6 +72,7 @@ def recurse_data_files(path):
7272
setup(
7373
name='datagrid_gtk3',
7474
version='0.1.2',
75+
license='MIT',
7576
description='MVC framework for working with the GTK3 TreeView widget.',
7677
long_description=readme + '\n\n' + history,
7778
author='NowSecure',

0 commit comments

Comments
 (0)