From: Oleg Broytman Date: Sun, 16 Apr 2017 11:54:05 +0000 (+0300) Subject: Release 3.1: the library becomes a namespace package X-Git-Tag: 3.1.0~10 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7fc90c4a7e01c8882446f2c96e7b321ea883d6f2;p=m_lib.git Release 3.1: the library becomes a namespace package --- 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 )