codemation / pydbantic

A single model for shaping, creating, accessing, storing data within a Database
https://pydbantic.readthedocs.io/en/latest/
Apache License 2.0
223 stars 16 forks source link

Bump version of asyncpg? #70

Closed farridav closed 9 months ago

farridav commented 9 months ago

Any chance we can bump the version of asyncpg being used? im struggling to use this great project on python 3.11, but can do so with a later version of asyncpg (^0.27.0) the issue i see is:

  ...
  running build_ext
  building 'asyncpg.pgproto.pgproto' extension
  creating build/temp.linux-x86_64-cpython-311
  creating build/temp.linux-x86_64-cpython-311/asyncpg
  creating build/temp.linux-x86_64-cpython-311/asyncpg/pgproto
  gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/tmp/tmpb0xzlt_k/.venv/include -I/path/to/.pyenv/versions/3.11.4/include/python3.11 -c asyncpg/pgproto/pgproto.c -o build/temp.linux-x86_64-cpython-311/asyncpg/pgproto/pgproto.o -O2 -fsigned-char -Wall -Wsign-compare -Wconversion
  asyncpg/pgproto/pgproto.c:223:12: fatal error: longintrepr.h: No such file or directory
    223 |   #include "longintrepr.h"
        |            ^~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1

though if im able to use a later version of asyncpg, it works without issue ..

Thanks for the great work

codemation commented 9 months ago

Hi @farridav - Bumping asyncpg should feasible, I'll get a PR up and release ASAP.

codemation commented 9 months ago

Fixed here