From 48496b38540974dbd93818e66444966d0951e31f Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 27 Aug 2024 19:34:28 +0100 Subject: [PATCH] Use a geoip tox factor GeoIP requires libGeoIP which tox deps cannot install. Likewise the GeoLiteCountry database which is also required by TestLocationInfo(). The last GeoIP release was in 2014, and libGeoIP has been EOL since 2022, but it is still available in Debian/Ubuntu. --- .github/workflows/build.yml | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afb35ffc..d5e7b51c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,7 +105,7 @@ jobs: - name: Run tests run: | python -m hatchling build -t sdist --hooks-only - python -m tox -e ${{ matrix.toxenv }} + python -m tox -e ${{ matrix.toxenv }}-geoip - name: Report to coveralls uses: coverallsapp/github-action@f350da2c033043742f89e8c0b7b5145a1616da6d # v2.1.2 diff --git a/tox.ini b/tox.ini index 2878d082..90b356cc 100644 --- a/tox.ini +++ b/tox.ini @@ -9,7 +9,7 @@ deps = pyopenssl pytest-xdist pytest-cov - GeoIP + geoip: GeoIP [testenv] usedevelop = true