Rename sqlcipher3.
This commit is contained in:
parent
526466c0ab
commit
eb380d67c1
4 changed files with 14 additions and 14 deletions
16
README.md
16
README.md
|
|
@ -1,5 +1,5 @@
|
||||||
pysqlcipherX
|
sqlcipher3
|
||||||
============
|
==========
|
||||||
|
|
||||||
This library takes [pysqlite3](https://github.com/coleifer/pysqlite3) and makes
|
This library takes [pysqlite3](https://github.com/coleifer/pysqlite3) and makes
|
||||||
some small modifications so it is suitable for use with
|
some small modifications so it is suitable for use with
|
||||||
|
|
@ -14,7 +14,7 @@ Additional features:
|
||||||
Building with System SQLCipher
|
Building with System SQLCipher
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
To build `pysqlcipherx` linked against the system SQLCipher, run:
|
To build `sqlcipher3` linked against the system SQLCipher, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ python setup.py build
|
$ python setup.py build
|
||||||
|
|
@ -23,7 +23,7 @@ $ python setup.py build
|
||||||
Building a statically-linked library
|
Building a statically-linked library
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
||||||
To build `pysqlcipherx` statically-linked against a particular version of
|
To build `sqlcipher3` statically-linked against a particular version of
|
||||||
SQLCipher, you need to obtain the SQLCipher source code and copy `sqlite3.c`
|
SQLCipher, you need to obtain the SQLCipher source code and copy `sqlite3.c`
|
||||||
and `sqlite3.h` into the source tree.
|
and `sqlite3.h` into the source tree.
|
||||||
|
|
||||||
|
|
@ -35,13 +35,13 @@ $ cd sqlcipher/
|
||||||
$ ./configure
|
$ ./configure
|
||||||
$ make sqlite3.c
|
$ make sqlite3.c
|
||||||
|
|
||||||
# Copy the sqlcipher amalgamation files into the root of the pysqlcipherx
|
# Copy the sqlcipher amalgamation files into the root of the sqlcipher3
|
||||||
# checkout and run build_static + build:
|
# checkout and run build_static + build:
|
||||||
$ cp sqlcipher/sqlite3.[ch] pysqlcipherx/
|
$ cp sqlcipher/sqlite3.[ch] sqlcipher3/
|
||||||
$ cd pysqlcipherx
|
$ cd sqlcipher3
|
||||||
$ python setup.py build_static build
|
$ python setup.py build_static build
|
||||||
```
|
```
|
||||||
|
|
||||||
You now have a statically-linked, completely self-contained `pysqlcipherx`.
|
You now have a statically-linked, completely self-contained `sqlcipher3`.
|
||||||
|
|
||||||
<small>Original code (c) Gerhard Häring</small>
|
<small>Original code (c) Gerhard Häring</small>
|
||||||
|
|
|
||||||
|
|
@ -20,4 +20,4 @@
|
||||||
# misrepresented as being the original software.
|
# misrepresented as being the original software.
|
||||||
# 3. This notice may not be removed or altered from any source distribution.
|
# 3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
from pysqlcipherx.dbapi2 import *
|
from sqlcipher3.dbapi2 import *
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#-*- coding: ISO-8859-1 -*-
|
#-*- coding: ISO-8859-1 -*-
|
||||||
# pysqlcipherx/dbapi2.py: the DB-API 2.0 interface
|
# sqlcipher3/dbapi2.py: the DB-API 2.0 interface
|
||||||
#
|
#
|
||||||
# Copyright (C) 2004-2005 Gerhard Häring <gh@ghaering.de>
|
# Copyright (C) 2004-2005 Gerhard Häring <gh@ghaering.de>
|
||||||
#
|
#
|
||||||
|
|
@ -25,7 +25,7 @@ import datetime
|
||||||
import time
|
import time
|
||||||
import collections.abc
|
import collections.abc
|
||||||
|
|
||||||
from pysqlcipherx._sqlite3 import *
|
from sqlcipher3._sqlite3 import *
|
||||||
|
|
||||||
paramstyle = "qmark"
|
paramstyle = "qmark"
|
||||||
|
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -11,7 +11,7 @@ from setuptools import Extension
|
||||||
|
|
||||||
# If you need to change anything, it should be enough to change setup.cfg.
|
# If you need to change anything, it should be enough to change setup.cfg.
|
||||||
|
|
||||||
PACKAGE_NAME = 'pysqlcipherx'
|
PACKAGE_NAME = 'sqlcipher3'
|
||||||
VERSION = '0.1.0'
|
VERSION = '0.1.0'
|
||||||
|
|
||||||
# define sqlite sources
|
# define sqlite sources
|
||||||
|
|
@ -54,7 +54,7 @@ class AmalgationLibSqliteBuilder(build_ext):
|
||||||
|
|
||||||
amalgamation_message = ('Sqlcipher amalgamation not found. Please download'
|
amalgamation_message = ('Sqlcipher amalgamation not found. Please download'
|
||||||
' or build the amalgamation and make sure the '
|
' or build the amalgamation and make sure the '
|
||||||
'following files are present in the pysqlcipherx '
|
'following files are present in the sqlcipher3 '
|
||||||
'folder: sqlite3.h, sqlite3.c')
|
'folder: sqlite3.h, sqlite3.c')
|
||||||
|
|
||||||
def check_amalgamation(self):
|
def check_amalgamation(self):
|
||||||
|
|
@ -142,7 +142,7 @@ def get_setup_args():
|
||||||
author_email="coleifer@gmail.com",
|
author_email="coleifer@gmail.com",
|
||||||
license="zlib/libpng",
|
license="zlib/libpng",
|
||||||
platforms="ALL",
|
platforms="ALL",
|
||||||
url="https://github.com/coleifer/pysqlcipherx",
|
url="https://github.com/coleifer/sqlcipher3",
|
||||||
package_dir={PACKAGE_NAME: "lib"},
|
package_dir={PACKAGE_NAME: "lib"},
|
||||||
packages=packages,
|
packages=packages,
|
||||||
ext_modules=[Extension(
|
ext_modules=[Extension(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue