From b15181b80c12617177cdfaf0f1f93a97f692b5ea Mon Sep 17 00:00:00 2001 From: laggykiller Date: Mon, 10 Feb 2025 02:48:56 +0800 Subject: [PATCH] Fix build action --- .github/workflows/pythonpackage.yml | 5 ++++- tests/__main__.py | 2 +- tests/dbapi.py | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index c26570c..9cfc38b 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -55,6 +55,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: sdist path: dist/sqlcipher3-wheels-*.tar.gz build-wheels: @@ -167,6 +168,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: wheels-${{ matrix.runs-on }} path: ./wheelhouse/*.whl upload-pypi: @@ -176,7 +178,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: artifact + name: wheels-* + merge-multiple: true path: dist - uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/tests/__main__.py b/tests/__main__.py index 7f37f12..94e5464 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -3,7 +3,7 @@ import sys import unittest from os.path import dirname -sys.path.append(dirname(dirname(__file__))) +sys.path.insert(0, dirname(dirname(__file__))) from tests.backup import suite as backup_suite from tests.dbapi import suite as dbapi_suite diff --git a/tests/dbapi.py b/tests/dbapi.py index b31c0fc..a21e09d 100644 --- a/tests/dbapi.py +++ b/tests/dbapi.py @@ -1,7 +1,7 @@ #-*- coding: iso-8859-1 -*- # pysqlite2/test/dbapi.py: tests for DB-API compliance # -# Copyright (C) 2004-2010 Gerhard Häring +# Copyright (C) 2004-2010 Gerhard H�ring # # This file is part of pysqlite. # @@ -26,7 +26,7 @@ import unittest from sqlcipher3 import dbapi2 as sqlite #from test.support import TESTFN, unlink -TESTFN = '/tmp/pysqlite3_test' +TESTFN = 'pysqlite3_test' from os import unlink