--- /dev/null
+global-include *.py *.txt
+include MANIFEST.in Makefile mk-distr
--- /dev/null
+
+.PHONY: distr
+distr:
+ ./mk-distr
+
+.PHONY: clean
+clean:
+ find . -name '*.py[co]' -type f -delete
--- /dev/null
+Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design
+Author: Oleg Broytman <phd@phdru.name>
+License: GPL
+
+Content of the namespace pakage:
+
+defenc.py - get default encoding.
--- /dev/null
+"""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__)
--- /dev/null
+#! /usr/bin/env python
+"""Get default encoding"""
+
+from __future__ import print_function
+import sys
+
+try:
+ import locale
+ use_locale = True
+except ImportError:
+ use_locale = False
+
+__all__ = ['default_encoding']
+
+if use_locale:
+ # Get the default charset.
+ try:
+ lcAll = locale.getdefaultlocale()
+ except locale.Error as err:
+ print("WARNING:", err, file=sys.stderr)
+ lcAll = []
+
+ if len(lcAll) == 2 and lcAll[0] is not None:
+ default_encoding = lcAll[1]
+ else:
+ try:
+ default_encoding = locale.getpreferredencoding()
+ except locale.Error as err:
+ print("WARNING:", err, file=sys.stderr)
+ default_encoding = sys.getdefaultencoding()
+else:
+ default_encoding = sys.getdefaultencoding()
+
+default_encoding = default_encoding.lower()
+
+if __name__ == "__main__":
+ print(default_encoding)
--- /dev/null
+#! /bin/sh
+
+umask 022 &&
+
+git archive --format=tar --prefix=m_lib.defenc/ "${1:-HEAD}" |
+ (cd "$HOME/tmp" && exec tar xf -) &&
+
+cd "$HOME/tmp/m_lib.defenc" &&
+python setup.py sdist --formats=bztar &&
+cd dist && mv m_lib.defenc-*.tar.bz2 ../.. && cd ../.. && exec rm -rf m_lib.defenc
--- /dev/null
+--trusted-host phdru.name
+--find-links=http://phdru.name/Software/Python/
+--install-option=-O2
--- /dev/null
+[easy_install]
+find_links = http://phdru.name/Software/Python/
+optimize = 2
+
+[egg_info]
+tag_build =
+tag_date = 0
+tag_svn_revision = 0
+
--- /dev/null
+#! /usr/bin/env python
+
+try:
+ from setuptools import setup
+ is_setuptools = True
+except ImportError:
+ from distutils.core import setup
+ is_setuptools = False
+
+setup(name = "m_lib.defenc",
+ version = "1.0.0",
+ description = "Broytman Library for Python",
+ 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",
+ license = "GPL",
+ keywords=[''],
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
+ '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',
+ 'Topic :: Software Development :: Libraries',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ],
+ platforms = "All",
+ packages = ["m_lib"],
+ namespace_packages = ["m_lib"],
+)
--- /dev/null
+#! /bin/sh
+exec "$HOME"/admin/prog/git-scripts/update