Closed kloczek closed 1 year ago
@kloczek, please try 0.5.4. At this point, rdflib-sqlalchemy is not supporting SQLAlchemy version 2 or later.
OK. Nevertheless pytest still is filing.
Just tested 0.5.4 + master and looks like it works +/- one warning
==================================================================================== test session starts ====================================================================================
platform linux -- Python 3.9.18, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/tkloczko/rpmbuild/BUILD/rdflib-sqlalchemy-0.5.4
configfile: pytest.ini
testpaths: test
plugins: timeout-2.3.1, asyncio-0.23.6, mock-3.14.0, metadata-3.1.1, pytest_httpserver-1.0.10, html-4.1.1
asyncio: mode=strict
collected 16 items / 4 skipped
test/test_aggregate_graphs.py .. [ 12%]
test/test_sqlalchemy.py ........... [ 81%]
test/test_store_performance.py .. [ 93%]
test/test_type_to_term_combination.py . [100%]
===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.9/site-packages/_pytest/compat.py:287
/usr/lib/python3.9/site-packages/_pytest/compat.py:287: UserWarning: Code: _pytestfixturefunction is not defined in namespace SDO
return getattr(object, name, default)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
SKIPPED [1] test/test_sqlalchemy_mysql.py:20: MySQLdb not found, skipping MySQL tests
SKIPPED [1] test/test_sqlalchemy_postgresql.py:10: psycopg2 not installed, skipping PgSQL tests
SKIPPED [1] test/test_sqlalchemy_postgresql_pg8000.py:11: pg8000 not installed, skipping PgSQL tests
SKIPPED [1] test/test_sqlalchemy_sqlite.py:13: SQLite not under test
========================================================================= 16 passed, 4 skipped, 1 warning in 13.86s =========================================================================
Above is with my patch which removes use six
and drops python<=3.7 support.
Would you accept that as PR? 🤔
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account.
python3 -sBm build -w --no-isolation
build
with--no-isolation
I'm using during all processes only locally installed modulescut off from access to the public network
(pytest is executed with-m "not network"
)There are some warnings as well.
Here is pytest output:
Here is list of installed modules in build env