diff --git a/README.md b/README.md index ce16ac8..9a5fa8c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -pysqlcipherX -============ +sqlcipher3 +========== This library takes [pysqlite3](https://github.com/coleifer/pysqlite3) and makes some small modifications so it is suitable for use with @@ -14,7 +14,7 @@ Additional features: 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 @@ -23,7 +23,7 @@ $ python setup.py build 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` and `sqlite3.h` into the source tree. @@ -35,13 +35,13 @@ $ cd sqlcipher/ $ ./configure $ 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: -$ cp sqlcipher/sqlite3.[ch] pysqlcipherx/ -$ cd pysqlcipherx +$ cp sqlcipher/sqlite3.[ch] sqlcipher3/ +$ cd sqlcipher3 $ 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`. Original code (c) Gerhard Häring diff --git a/lib/__init__.py b/lib/__init__.py index df16254..0699b96 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -20,4 +20,4 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -from pysqlcipherx.dbapi2 import * +from sqlcipher3.dbapi2 import * diff --git a/lib/dbapi2.py b/lib/dbapi2.py index b3509f7..dcc6cb6 100644 --- a/lib/dbapi2.py +++ b/lib/dbapi2.py @@ -1,5 +1,5 @@ #-*- 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 # @@ -25,7 +25,7 @@ import datetime import time import collections.abc -from pysqlcipherx._sqlite3 import * +from sqlcipher3._sqlite3 import * paramstyle = "qmark" diff --git a/setup.py b/setup.py index 0d84136..2d2869a 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ from setuptools import Extension # If you need to change anything, it should be enough to change setup.cfg. -PACKAGE_NAME = 'pysqlcipherx' +PACKAGE_NAME = 'sqlcipher3' VERSION = '0.1.0' # define sqlite sources @@ -54,7 +54,7 @@ class AmalgationLibSqliteBuilder(build_ext): amalgamation_message = ('Sqlcipher amalgamation not found. Please download' ' 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') def check_amalgamation(self): @@ -142,7 +142,7 @@ def get_setup_args(): author_email="coleifer@gmail.com", license="zlib/libpng", platforms="ALL", - url="https://github.com/coleifer/pysqlcipherx", + url="https://github.com/coleifer/sqlcipher3", package_dir={PACKAGE_NAME: "lib"}, packages=packages, ext_modules=[Extension(