Skip to content

Commit

Permalink
Remove dependency on distutils, was removed in Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Photonios committed Feb 7, 2024
1 parent 143752b commit 52a6b94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import distutils.cmd
import os
import subprocess

from setuptools import find_packages, setup
from setuptools import Command, find_packages, setup

exec(open("psqlextra/_version.py").read())


class BaseCommand(distutils.cmd.Command):
class BaseCommand(Command):
user_options = []

def initialize_options(self):
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ deps =
psycopg28: psycopg2[binary]~=2.8
psycopg29: psycopg2[binary]~=2.9
psycopg31: psycopg[binary]~=3.1
setuptools
.[test]
setenv =
DJANGO_SETTINGS_MODULE=settings
Expand Down

0 comments on commit 52a6b94

Please sign in to comment.