From: Oleg Broytman Date: Thu, 14 Dec 2023 15:31:58 +0000 (+0300) Subject: Build: Remove duplicate `requirements.txt` X-Git-Url: https://git.phdru.name/?p=m_lib.full.git;a=commitdiff_plain;h=HEAD;hp=8974a6245829dda47633c4b567dcf5d42077a0ef Build: Remove duplicate `requirements.txt` --- diff --git a/INSTALL.txt b/INSTALL.txt index 37b96b6..e07ff86 100644 --- a/INSTALL.txt +++ b/INSTALL.txt @@ -1,4 +1,4 @@ -m_lib.full requires Python 2.6 (that means pip >= 9, < 10), 2.7 or 3.4+. +m_lib.full requires Python 2.7 or 3.4+. Installation script setup.py requires setuptools. @@ -16,8 +16,6 @@ Installation using pip: pip install m_lib.full - 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 b736eeb..71b4a25 100644 --- a/README.txt +++ b/README.txt @@ -1,7 +1,11 @@ Broytman Library for Python. Author: Oleg Broytman . -Copyright (C) 1996-2018 PhiloSoft Design. +Copyright (C) 1996-2023 PhiloSoft Design. License: GPL. This a full namespace meta-package that installs all parts of m_lib library (currently m_lib and m_lib.defenc). + +:: + + pip install m_lib.full diff --git a/devscripts/release b/devscripts/release index c5753b2..d94c27f 100755 --- a/devscripts/release +++ b/devscripts/release @@ -12,5 +12,5 @@ python setup.py sdist && find build -name '*.py[co]' -delete && python setup.py bdist_wheel --universal && -twine upload --skip-existing dist/* && +twine upload --disable-progress-bar --skip-existing dist/* && exec rm -rf build dist m_lib.full.egg-info diff --git a/devscripts/requirements/requirements.txt b/devscripts/requirements/requirements.txt deleted file mode 100644 index 731a639..0000000 --- a/devscripts/requirements/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ ---install-option=-O2 - -m_lib>=3.1 -m_lib.defenc>=1.0 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 index d9de3b6..252eb0a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,2 @@ ---install-option=-O2 - -m_lib -m_lib.defenc +m_lib >= 3.1.0.post2 +m_lib.defenc >= 1.1.0.post1 diff --git a/setup.py b/setup.py index 7ce033d..1c21cfd 100755 --- a/setup.py +++ b/setup.py @@ -4,9 +4,9 @@ from setuptools import setup setup( name = "m_lib.full", - version = "1.0.1", + version = "1.0.1.post2", description = "m_lib full meta-package", - long_description = "Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design", + long_description = "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,19 +23,23 @@ 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', 'Programming Language :: Python :: 3.5', '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', '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.*', - install_requires=['m_lib>=3.1', 'm_lib.defenc>=1.0'], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + install_requires=['m_lib>=3.1.0.post1', 'm_lib.defenc>=1.1'], )