Rename sqlcipher3.

This commit is contained in:
Charles Leifer 2019-06-03 09:06:39 -05:00
parent 526466c0ab
commit eb380d67c1
4 changed files with 14 additions and 14 deletions

View file

@ -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`.
<small>Original code (c) Gerhard Häring</small>

View file

@ -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 *

View file

@ -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 <gh@ghaering.de>
#
@ -25,7 +25,7 @@ import datetime
import time
import collections.abc
from pysqlcipherx._sqlite3 import *
from sqlcipher3._sqlite3 import *
paramstyle = "qmark"

View file

@ -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(