Skip to content

Commit 8647812

Browse files
aquilamacedosavon-noir
authored andcommitted
fix: replace deprecated distutils with setuptools
Update setup.py from 'distutils' to 'setuptools' due to 'distutils' being deprecated in Python 3.12 Details: https://peps.python.org/pep-0632/
1 parent 00193b3 commit 8647812

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ pre-commit
55
pytest
66
pytest-cov
77
flake8
8+
setuptools

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# -*- coding: utf-8 -*-
22
import sys
3-
from distutils.core import setup
3+
try:
4+
from setuptools import setup
5+
except ImportError:
6+
from distutils.core import setup
7+
48

59
if sys.version_info >= (3, 0):
610
with open("README.rst", encoding="utf-8") as rfile:

0 commit comments

Comments
 (0)