From 96fa4d38290b51dd77240bd06bab2bc5bff16539 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 14 Dec 2023 18:26:57 +0300 Subject: [PATCH] Release 1.1.0.post1: Tested with Pytho 3.12 --- INSTALL.txt | 4 +--- README.txt | 2 +- m_lib/__init__.py | 7 +++++-- requirements.txt | 1 - setup.py | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 requirements.txt diff --git a/INSTALL.txt b/INSTALL.txt index 57f6e52..80560ba 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,4 +1,4 @@ -m_lib.defenc requires Python 2.6 (that means pip >= 9, < 10), 2.7 or 3.4+. +m_lib.defenc requires Python 2.7 or 3.4+. Installation script setup.py requires setuptools. @@ -16,8 +16,6 @@ Installation using pip: pip install m_lib.defenc - For Python 2.6 the command is easy_install. - Installation from sources: To install the library from sources system-wide run run the following diff --git a/README.txt b/README.txt index d2cb968..6c84a56 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ Broytman Library for Python. Author: Oleg Broytman . -Copyright (C) 1996-2018 PhiloSoft Design. +Copyright (C) 1996-2023 PhiloSoft Design. License: GPL. Content of the namespace package: diff --git a/m_lib/__init__.py b/m_lib/__init__.py index 943eda8..e968439 100644 --- a/m_lib/__init__.py +++ b/m_lib/__init__.py @@ -1,5 +1,8 @@ -"""Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design""" +"""Broytman Library for Python, Copyright (C) 1996-2023 PhiloSoft Design""" from pkgutil import extend_path +import sys + __path__ = extend_path(__path__, __name__) -__import__('pkg_resources').declare_namespace(__name__) +if sys.version_info < (3, 7): + __import__('pkg_resources').declare_namespace(__name__) diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 5d2aba7..0000000 --- a/requirements.txt +++ /dev/null @@ -1 +0,0 @@ ---install-option=-O2 diff --git a/setup.py b/setup.py index e55f8b3..4a4190d 100755 --- a/setup.py +++ b/setup.py @@ -4,9 +4,9 @@ from setuptools import setup setup( name = "m_lib.defenc", - version = "1.1.0", + version = "1.1.0.post1", description = "Get default encoding", - long_description = "Get default encoding. A part of Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design", + long_description = "Get default encoding. A part of Broytman Library for Python, Copyright (C) 1996-2023 PhiloSoft Design", long_description_content_type="text/plain", author = "Oleg Broytman", author_email = "phd@phdru.name", @@ -23,7 +23,6 @@ setup( 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.4', @@ -34,11 +33,12 @@ setup( 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', ], platforms = "Any", packages = ["m_lib"], namespace_packages = ["m_lib"], - python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', ) -- 2.39.2