From 7fc90c4a7e01c8882446f2c96e7b321ea883d6f2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 16 Apr 2017 14:54:05 +0300 Subject: [PATCH] Release 3.1: the library becomes a namespace package --- README.txt | 2 +- m_lib/__init__.py | 6 +++++- setup.py | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.txt b/README.txt index e1cb476..b1c2749 100644 --- a/README.txt +++ b/README.txt @@ -1,4 +1,4 @@ -Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design +Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design Author: Oleg Broytman License: GPL diff --git a/m_lib/__init__.py b/m_lib/__init__.py index 541bfc8..bdbd21e 100644 --- a/m_lib/__init__.py +++ b/m_lib/__init__.py @@ -1 +1,5 @@ -"""Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design""" +"""Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design""" + +from pkgutil import extend_path +__path__ = extend_path(__path__, __name__) +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup.py b/setup.py index fd400ed..b33a49b 100755 --- a/setup.py +++ b/setup.py @@ -16,9 +16,9 @@ if is_setuptools: } setup(name = "m_lib", - version = "3.0.2", + version = "3.1.0", description = "Broytman Library for Python", - long_description = "Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design", + long_description = "Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design", author = "Oleg Broytman", author_email = "phd@phdru.name", url = "http://phdru.name/Software/Python/#m_lib", @@ -43,5 +43,6 @@ setup(name = "m_lib", "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", "m_lib.pbar", "m_lib.rus", ], + namespace_packages = ["m_lib"], **kw ) -- 2.39.5