Skip to content

Commit 45ef162

Browse files
committed
Initial commit.
0 parents  commit 45ef162

File tree

7 files changed

+119
-0
lines changed

7 files changed

+119
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Description
2+
<!--- Describe your changes in detail. -->
3+
4+
5+
6+
## Checklist
7+
<!--- We appreciate your help and want to give you credit. Please take a moment to put an `x` in the boxes below as you complete them. -->
8+
- [ ] I've added this contribution to the `CHANGELOG` file.
9+
- [ ] I've added my name to the `AUTHORS` file (or it's already there).

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea/
2+
/build
3+
/dist
4+
/mycli.egg-info
5+
/src
6+
/test/behave.ini
7+
8+
.vagrant
9+
*.pyc
10+
*.deb
11+
*.swp
12+
.cache/
13+
.coverage
14+
.coverage.*

LICENSE

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Copyright (c) 2018, dbcli
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* Neither the name of dbcli nor the names of its
15+
contributors may be used to endorse or promote products derived from
16+
this software without specific prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include *.txt *.rst *.py
2+
include AUTHORS CHANGELOG LICENSE
3+
include tox.ini
4+
recursive-include test *.py

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
===========
2+
litecli
3+
===========
4+
5+
.. start-body
6+
7+
A command-line client for SQLite databases that has auto-completion and syntax highlighting.
8+
9+
Postgres Equivalent: [http://pgcli.com](http://pgcli.com)
10+
MySQL Equivalent: [http://mycli.net](http://mycli.net)
11+
SQL Server Equivalent: [https://github.com/dbcli/mssql-cli](https://github.com/dbcli/mssql-cli)
12+
13+
.. end-body

litecli/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.0.0'

setup.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
import ast
5+
from io import open
6+
import re
7+
8+
from setuptools import setup
9+
10+
_version_re = re.compile(r'__version__\s+=\s+(.*)')
11+
12+
with open('litecli/__init__.py', 'rb') as f:
13+
version = str(ast.literal_eval(_version_re.search(
14+
f.read().decode('utf-8')).group(1)))
15+
16+
17+
def open_file(filename):
18+
"""Open and read the file *filename*."""
19+
with open(filename) as f:
20+
return f.read()
21+
22+
23+
readme = open_file('README.rst')
24+
25+
setup(
26+
name='litecli',
27+
author='dbcli',
28+
author_email='[email protected]',
29+
version=version,
30+
url='https://github.com/dbcli/litecli',
31+
description='CLI for SQLite Databases with auto-completion and syntax '
32+
'highlighting.',
33+
long_description=readme,
34+
classifiers=[
35+
'Intended Audience :: Developers',
36+
'License :: OSI Approved :: BSD License',
37+
'Operating System :: Unix',
38+
'Programming Language :: Python',
39+
'Programming Language :: Python :: 2',
40+
'Programming Language :: Python :: 2.7',
41+
'Programming Language :: Python :: 3',
42+
'Programming Language :: Python :: 3.4',
43+
'Programming Language :: Python :: 3.5',
44+
'Programming Language :: Python :: 3.6',
45+
'Programming Language :: SQL',
46+
'Topic :: Database',
47+
'Topic :: Database :: Front-Ends',
48+
'Topic :: Software Development',
49+
'Topic :: Software Development :: Libraries :: Python Modules',
50+
]
51+
)

0 commit comments

Comments
 (0)