Skip to content

Commit

Permalink
0.5.3
Browse files Browse the repository at this point in the history
Also builds python 3.12 wheels.
  • Loading branch information
coleifer committed Aug 21, 2024
1 parent 2f50b05 commit 48bc983
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
python-version: [3.7, 3.8, 3.9, "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand All @@ -16,8 +16,9 @@ jobs:
- name: package deps
run: |
sudo apt-get install libsqlcipher-dev
pip install setuptools
python setup.py build_ext -i
- name: runtests
env:
PYTHONPATH: '.:$PYTHONPATH'
run: python test/
run: python tests/
4 changes: 4 additions & 0 deletions build-scripts/_build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ PY310="/opt/python/cp310-cp310/bin"
PY311="/opt/python/cp311-cp311/bin"
"${PY311}/python" setup.py build_static

PY312="/opt/python/cp312-cp312/bin"
"${PY312}/python" setup.py build_static

# Replace the package name defined in setup.py so we can push this to PyPI
# without stomping on the source dist.
sed -i "s|name=PACKAGE_NAME,|name='sqlcipher3-binary',|g" setup.py
Expand All @@ -71,6 +74,7 @@ sed -i "s|name=PACKAGE_NAME,|name='sqlcipher3-binary',|g" setup.py
"${PY39}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
"${PY310}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
"${PY311}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse
"${PY312}/pip" wheel /io/sqlcipher3 -w /io/wheelhouse

for whl in /io/wheelhouse/*.whl; do
auditwheel repair "$whl" -w /io/wheelhouse/
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ cp "sqlcipher/sqlite3.c" sqlcipher3/
cp "sqlcipher/sqlite3.h" sqlcipher3/

# Create the wheels and strip symbols to produce manylinux wheels.
docker run -it -v $(pwd):/io quay.io/pypa/manylinux_2_24_x86_64 /io/_build_wheels.sh
docker run -it -v $(pwd):/io quay.io/pypa/manylinux2014_x86_64 /io/_build_wheels.sh

sudo rm ./wheelhouse/*-linux_*
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# If you need to change anything, it should be enough to change setup.cfg.

PACKAGE_NAME = 'sqlcipher3'
VERSION = '0.5.2'
VERSION = '0.5.3'

# define sqlite sources
sources = [os.path.join('src', source)
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions test/__main__.py → tests/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import sys
import unittest

from test.backup import suite as backup_suite
from test.dbapi import suite as dbapi_suite
from test.factory import suite as factory_suite
from test.hooks import suite as hooks_suite
from test.regression import suite as regression_suite
from test.transactions import suite as transactions_suite
from test.ttypes import suite as types_suite
from test.userfunctions import suite as userfunctions_suite
from tests.backup import suite as backup_suite
from tests.dbapi import suite as dbapi_suite
from tests.factory import suite as factory_suite
from tests.hooks import suite as hooks_suite
from tests.regression import suite as regression_suite
from tests.transactions import suite as transactions_suite
from tests.ttypes import suite as types_suite
from tests.userfunctions import suite as userfunctions_suite


def test(verbosity=1, failfast=False):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 48bc983

Please sign in to comment.