Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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