Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable use with Python versions 3.9-12 #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.egg-info/
.*.swp
*.pyc
.idea/
build/
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ to `semantic versioning`_.
.. _Keep a Changelog: http://keepachangelog.com/
.. _semantic versioning: http://semver.org/

`Release 15.1`_ (2023-04-25)
----------------------------

Enable use with Python version 3.9 - 3.12: path for site-packages is found via
sysconfig instead of distutils.

`Release 15.0.1`_ (2021-06-11)
------------------------------

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
humanfriendly >= 9.1
humanfriendly >= 10.0
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

# Standard library modules.
import codecs
import distutils.sysconfig
import sysconfig
import os
import re
import sys
Expand Down Expand Up @@ -81,7 +81,7 @@ def find_pth_directory():
directory without hard coding its location.
"""
return ('/' if 'bdist_wheel' in sys.argv
else os.path.relpath(distutils.sysconfig.get_python_lib(), sys.prefix))
else os.path.relpath(sysconfig.get_path("purelib"), sys.prefix))


setup(name='coloredlogs',
Expand Down Expand Up @@ -123,6 +123,10 @@ def find_pth_directory():
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Communications',
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# directory.

[tox]
envlist = py27, py35, py36, py37, py38, py39, pypy, pypy3
envlist = py27, py35, py36, py37, py38, py39, p310, py311, py312, pypy, pypy3

[testenv]
deps = -rrequirements-tests.txt
Expand Down