diff --git a/.github/workflows/bld_wheels_and_upload.yml b/.github/workflows/bld_wheels_and_upload.yml index 4da64edd..1406ff31 100644 --- a/.github/workflows/bld_wheels_and_upload.yml +++ b/.github/workflows/bld_wheels_and_upload.yml @@ -44,7 +44,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Build wheels - uses: pypa/cibuildwheel@v3.1.4 + uses: pypa/cibuildwheel@v3.4.1 env: CIBW_BUILD: "*-win32" CIBW_SKIP: "cp38-* *t-*" diff --git a/.gitignore b/.gitignore index 25c4507b..a87a02d0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ build dist ibm_db.egg-info *.pyc -config.py libdsnao64c.* *~ *.out diff --git a/MANIFEST.in b/MANIFEST.in index 8dd2ba3a..c3426bad 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,6 +1,5 @@ include ibm_db.h ibm_db.c include CHANGES.md LICENSE README.md -include config.py.sample include ibm_db_dll.pth include _ibm_db_register_dll.py recursive-include ibm_db_tests *.py *.png *.jpg diff --git a/NOTES.md b/NOTES.md index 77df7fc7..a0045dbb 100644 --- a/NOTES.md +++ b/NOTES.md @@ -59,7 +59,7 @@ print('info=%r' % ibm_db.server_info(conn)) Before running the test suite make sure to perform the following -- rename the config.py.sample to config.py +- Update config.json with your database connection details - Replace the following in run_all_tests ``` export IBM_DB_HOME='XXXX.DSN' diff --git a/README.md b/README.md index bee09f02..8e44dbaa 100644 --- a/README.md +++ b/README.md @@ -673,9 +673,8 @@ pip3 install ibm_db --no-build-isolation # Testing Tests displaying Python ibm_db driver code examples are located in the ibm_db_tests -directory. A valid config.py will need to be created to configure your Db2 -settings. A config.py.sample exists that can be copied and modified for your -environment. +directory. A valid config.py will need to be configured for your Db2 +settings. Update the config.json with your database connection details. - Set Environment Variables DB2_USER, DB2_PASSWD accordingly. diff --git a/config.py.sample b/config.py similarity index 100% rename from config.py.sample rename to config.py diff --git a/setup.py b/setup.py index 365547f7..ce4bbd14 100644 --- a/setup.py +++ b/setup.py @@ -495,12 +495,11 @@ def print_exception( e, url): else: library = ['db2'] -package_data = { 'ibm_db_tests': [ 'run_individual_tests', '*.png', '*.jpg', 'config.py.sample']} +package_data = { 'ibm_db_tests': [ 'run_individual_tests', '*.png', '*.jpg']} data_files = [ (get_python_lib(), ['./README.md']), (get_python_lib(), ['./CHANGES.md']), - (get_python_lib(), ['./LICENSE']), - (get_python_lib(), ['./config.py.sample'])] + (get_python_lib(), ['./LICENSE'])] modules = ['ibm_db_dbi', 'testfunctions', 'ibmdb_tests', 'ibm_db_ctx', '_ibm_db_register_dll']