From 59a9b9ddd140652029d5220c82f6dc86ea6b5a4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Mon, 22 Dec 2014 17:45:09 +0100 Subject: [PATCH 1/1] eggification --- Products/__init__.py | 5 +++++ __init__.py => Products/iso_3166_1/__init__.py | 0 .../_sources}/iso_3166-1_list_en.xml | 0 .../_sources}/iso_3166-1_list_fr.xml | 0 .../iso_3166_1/_sources}/make.py | 0 .../iso_3166_1/configure.zcml | 0 en.py => Products/iso_3166_1/en.py | 0 fr.py => Products/iso_3166_1/fr.py | 0 .../iso_3166_1/iso_3166_1.py | 0 .../locales}/en/LC_MESSAGES/iso_3166_1.mo | Bin .../locales}/en/LC_MESSAGES/iso_3166_1.po | 0 .../locales}/fr/LC_MESSAGES/iso_3166_1.mo | Bin .../locales}/fr/LC_MESSAGES/iso_3166_1.po | 0 setup.py | 17 +++++++++++++++++ 14 files changed, 22 insertions(+) create mode 100644 Products/__init__.py rename __init__.py => Products/iso_3166_1/__init__.py (100%) rename {_sources => Products/iso_3166_1/_sources}/iso_3166-1_list_en.xml (100%) rename {_sources => Products/iso_3166_1/_sources}/iso_3166-1_list_fr.xml (100%) rename {_sources => Products/iso_3166_1/_sources}/make.py (100%) rename configure.zcml => Products/iso_3166_1/configure.zcml (100%) rename en.py => Products/iso_3166_1/en.py (100%) rename fr.py => Products/iso_3166_1/fr.py (100%) rename iso_3166_1.py => Products/iso_3166_1/iso_3166_1.py (100%) rename {locales => Products/iso_3166_1/locales}/en/LC_MESSAGES/iso_3166_1.mo (100%) rename {locales => Products/iso_3166_1/locales}/en/LC_MESSAGES/iso_3166_1.po (100%) rename {locales => Products/iso_3166_1/locales}/fr/LC_MESSAGES/iso_3166_1.mo (100%) rename {locales => Products/iso_3166_1/locales}/fr/LC_MESSAGES/iso_3166_1.po (100%) create mode 100644 setup.py diff --git a/Products/__init__.py b/Products/__init__.py new file mode 100644 index 0000000..d407605 --- /dev/null +++ b/Products/__init__.py @@ -0,0 +1,5 @@ +try: + __import__('pkg_resources').declare_namespace(__name__) +except ImportError: + from pkgutil import extend_path + __path__ = extend_path(__path__, __name__) diff --git a/__init__.py b/Products/iso_3166_1/__init__.py similarity index 100% rename from __init__.py rename to Products/iso_3166_1/__init__.py diff --git a/_sources/iso_3166-1_list_en.xml b/Products/iso_3166_1/_sources/iso_3166-1_list_en.xml similarity index 100% rename from _sources/iso_3166-1_list_en.xml rename to Products/iso_3166_1/_sources/iso_3166-1_list_en.xml diff --git a/_sources/iso_3166-1_list_fr.xml b/Products/iso_3166_1/_sources/iso_3166-1_list_fr.xml similarity index 100% rename from _sources/iso_3166-1_list_fr.xml rename to Products/iso_3166_1/_sources/iso_3166-1_list_fr.xml diff --git a/_sources/make.py b/Products/iso_3166_1/_sources/make.py similarity index 100% rename from _sources/make.py rename to Products/iso_3166_1/_sources/make.py diff --git a/configure.zcml b/Products/iso_3166_1/configure.zcml similarity index 100% rename from configure.zcml rename to Products/iso_3166_1/configure.zcml diff --git a/en.py b/Products/iso_3166_1/en.py similarity index 100% rename from en.py rename to Products/iso_3166_1/en.py diff --git a/fr.py b/Products/iso_3166_1/fr.py similarity index 100% rename from fr.py rename to Products/iso_3166_1/fr.py diff --git a/iso_3166_1.py b/Products/iso_3166_1/iso_3166_1.py similarity index 100% rename from iso_3166_1.py rename to Products/iso_3166_1/iso_3166_1.py diff --git a/locales/en/LC_MESSAGES/iso_3166_1.mo b/Products/iso_3166_1/locales/en/LC_MESSAGES/iso_3166_1.mo similarity index 100% rename from locales/en/LC_MESSAGES/iso_3166_1.mo rename to Products/iso_3166_1/locales/en/LC_MESSAGES/iso_3166_1.mo diff --git a/locales/en/LC_MESSAGES/iso_3166_1.po b/Products/iso_3166_1/locales/en/LC_MESSAGES/iso_3166_1.po similarity index 100% rename from locales/en/LC_MESSAGES/iso_3166_1.po rename to Products/iso_3166_1/locales/en/LC_MESSAGES/iso_3166_1.po diff --git a/locales/fr/LC_MESSAGES/iso_3166_1.mo b/Products/iso_3166_1/locales/fr/LC_MESSAGES/iso_3166_1.mo similarity index 100% rename from locales/fr/LC_MESSAGES/iso_3166_1.mo rename to Products/iso_3166_1/locales/fr/LC_MESSAGES/iso_3166_1.mo diff --git a/locales/fr/LC_MESSAGES/iso_3166_1.po b/Products/iso_3166_1/locales/fr/LC_MESSAGES/iso_3166_1.po similarity index 100% rename from locales/fr/LC_MESSAGES/iso_3166_1.po rename to Products/iso_3166_1/locales/fr/LC_MESSAGES/iso_3166_1.po diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..dc88d05 --- /dev/null +++ b/setup.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from setuptools import setup, find_packages + + +setup(name='Products.iso_3166_1', + version='3.0', + description='iso 3166-1 country codes for Zope', + url='http://plinn.org', + author="Benoît Pin – MINES ParisTech – Armines", + author_email="benoit.pin@mines-paristech.fr", + license="GPL", + packages=find_packages(), + include_package_data=True, + namespace_packages=['Products'], + zip_safe=False, + install_requires=[] #TODO + ) -- 2.20.1