diff --git a/index.py b/index.py index a4ba61f..6ae4dac 100644 --- a/index.py +++ b/index.py @@ -1,10 +1,10 @@ import os import re import importlib.util -from lib.translation import Translation +from pirateweather_translations.translation import Translation # The directory containing language template files -lang_dir = os.path.join(os.path.dirname(__file__), "lib", "lang") +lang_dir = os.path.join(os.path.dirname(__file__), "pirateweather_translations", "lang") exports = {} diff --git a/lib/lang/ar.py b/pirateweather_translations/lang/ar.py similarity index 100% rename from lib/lang/ar.py rename to pirateweather_translations/lang/ar.py diff --git a/lib/lang/az.py b/pirateweather_translations/lang/az.py similarity index 100% rename from lib/lang/az.py rename to pirateweather_translations/lang/az.py diff --git a/lib/lang/be.py b/pirateweather_translations/lang/be.py similarity index 100% rename from lib/lang/be.py rename to pirateweather_translations/lang/be.py diff --git a/lib/lang/bg.py b/pirateweather_translations/lang/bg.py similarity index 100% rename from lib/lang/bg.py rename to pirateweather_translations/lang/bg.py diff --git a/lib/lang/bn.py b/pirateweather_translations/lang/bn.py similarity index 100% rename from lib/lang/bn.py rename to pirateweather_translations/lang/bn.py diff --git a/lib/lang/bs.py b/pirateweather_translations/lang/bs.py similarity index 100% rename from lib/lang/bs.py rename to pirateweather_translations/lang/bs.py diff --git a/lib/lang/ca.py b/pirateweather_translations/lang/ca.py similarity index 100% rename from lib/lang/ca.py rename to pirateweather_translations/lang/ca.py diff --git a/lib/lang/cs.py b/pirateweather_translations/lang/cs.py similarity index 100% rename from lib/lang/cs.py rename to pirateweather_translations/lang/cs.py diff --git a/lib/lang/cy.py b/pirateweather_translations/lang/cy.py similarity index 100% rename from lib/lang/cy.py rename to pirateweather_translations/lang/cy.py diff --git a/lib/lang/da.py b/pirateweather_translations/lang/da.py similarity index 100% rename from lib/lang/da.py rename to pirateweather_translations/lang/da.py diff --git a/lib/lang/de.py b/pirateweather_translations/lang/de.py similarity index 100% rename from lib/lang/de.py rename to pirateweather_translations/lang/de.py diff --git a/lib/lang/el.py b/pirateweather_translations/lang/el.py similarity index 100% rename from lib/lang/el.py rename to pirateweather_translations/lang/el.py diff --git a/lib/lang/en.py b/pirateweather_translations/lang/en.py similarity index 100% rename from lib/lang/en.py rename to pirateweather_translations/lang/en.py diff --git a/lib/lang/eo.py b/pirateweather_translations/lang/eo.py similarity index 100% rename from lib/lang/eo.py rename to pirateweather_translations/lang/eo.py diff --git a/lib/lang/es.py b/pirateweather_translations/lang/es.py similarity index 100% rename from lib/lang/es.py rename to pirateweather_translations/lang/es.py diff --git a/lib/lang/et.py b/pirateweather_translations/lang/et.py similarity index 100% rename from lib/lang/et.py rename to pirateweather_translations/lang/et.py diff --git a/lib/lang/fa.py b/pirateweather_translations/lang/fa.py similarity index 100% rename from lib/lang/fa.py rename to pirateweather_translations/lang/fa.py diff --git a/lib/lang/fi.py b/pirateweather_translations/lang/fi.py similarity index 100% rename from lib/lang/fi.py rename to pirateweather_translations/lang/fi.py diff --git a/lib/lang/fr.py b/pirateweather_translations/lang/fr.py similarity index 100% rename from lib/lang/fr.py rename to pirateweather_translations/lang/fr.py diff --git a/lib/lang/ga.py b/pirateweather_translations/lang/ga.py similarity index 100% rename from lib/lang/ga.py rename to pirateweather_translations/lang/ga.py diff --git a/lib/lang/gd.py b/pirateweather_translations/lang/gd.py similarity index 100% rename from lib/lang/gd.py rename to pirateweather_translations/lang/gd.py diff --git a/lib/lang/he.py b/pirateweather_translations/lang/he.py similarity index 100% rename from lib/lang/he.py rename to pirateweather_translations/lang/he.py diff --git a/lib/lang/hi.py b/pirateweather_translations/lang/hi.py similarity index 100% rename from lib/lang/hi.py rename to pirateweather_translations/lang/hi.py diff --git a/lib/lang/hr.py b/pirateweather_translations/lang/hr.py similarity index 100% rename from lib/lang/hr.py rename to pirateweather_translations/lang/hr.py diff --git a/lib/lang/hu.py b/pirateweather_translations/lang/hu.py similarity index 100% rename from lib/lang/hu.py rename to pirateweather_translations/lang/hu.py diff --git a/lib/lang/id.py b/pirateweather_translations/lang/id.py similarity index 100% rename from lib/lang/id.py rename to pirateweather_translations/lang/id.py diff --git a/lib/lang/is.py b/pirateweather_translations/lang/is.py similarity index 100% rename from lib/lang/is.py rename to pirateweather_translations/lang/is.py diff --git a/lib/lang/it.py b/pirateweather_translations/lang/it.py similarity index 100% rename from lib/lang/it.py rename to pirateweather_translations/lang/it.py diff --git a/lib/lang/ja.py b/pirateweather_translations/lang/ja.py similarity index 100% rename from lib/lang/ja.py rename to pirateweather_translations/lang/ja.py diff --git a/lib/lang/ka.py b/pirateweather_translations/lang/ka.py similarity index 100% rename from lib/lang/ka.py rename to pirateweather_translations/lang/ka.py diff --git a/lib/lang/kn.py b/pirateweather_translations/lang/kn.py similarity index 100% rename from lib/lang/kn.py rename to pirateweather_translations/lang/kn.py diff --git a/lib/lang/ko.py b/pirateweather_translations/lang/ko.py similarity index 100% rename from lib/lang/ko.py rename to pirateweather_translations/lang/ko.py diff --git a/lib/lang/kw.py b/pirateweather_translations/lang/kw.py similarity index 100% rename from lib/lang/kw.py rename to pirateweather_translations/lang/kw.py diff --git a/lib/lang/lv.py b/pirateweather_translations/lang/lv.py similarity index 100% rename from lib/lang/lv.py rename to pirateweather_translations/lang/lv.py diff --git a/lib/lang/ml.py b/pirateweather_translations/lang/ml.py similarity index 100% rename from lib/lang/ml.py rename to pirateweather_translations/lang/ml.py diff --git a/lib/lang/mr.py b/pirateweather_translations/lang/mr.py similarity index 100% rename from lib/lang/mr.py rename to pirateweather_translations/lang/mr.py diff --git a/lib/lang/nl.py b/pirateweather_translations/lang/nl.py similarity index 100% rename from lib/lang/nl.py rename to pirateweather_translations/lang/nl.py diff --git a/lib/lang/no.py b/pirateweather_translations/lang/no.py similarity index 100% rename from lib/lang/no.py rename to pirateweather_translations/lang/no.py diff --git a/lib/lang/pa.py b/pirateweather_translations/lang/pa.py similarity index 100% rename from lib/lang/pa.py rename to pirateweather_translations/lang/pa.py diff --git a/lib/lang/pl.py b/pirateweather_translations/lang/pl.py similarity index 100% rename from lib/lang/pl.py rename to pirateweather_translations/lang/pl.py diff --git a/lib/lang/pt.py b/pirateweather_translations/lang/pt.py similarity index 100% rename from lib/lang/pt.py rename to pirateweather_translations/lang/pt.py diff --git a/lib/lang/ro.py b/pirateweather_translations/lang/ro.py similarity index 100% rename from lib/lang/ro.py rename to pirateweather_translations/lang/ro.py diff --git a/lib/lang/ru.py b/pirateweather_translations/lang/ru.py similarity index 100% rename from lib/lang/ru.py rename to pirateweather_translations/lang/ru.py diff --git a/lib/lang/sk.py b/pirateweather_translations/lang/sk.py similarity index 100% rename from lib/lang/sk.py rename to pirateweather_translations/lang/sk.py diff --git a/lib/lang/sl.py b/pirateweather_translations/lang/sl.py similarity index 100% rename from lib/lang/sl.py rename to pirateweather_translations/lang/sl.py diff --git a/lib/lang/sr.py b/pirateweather_translations/lang/sr.py similarity index 100% rename from lib/lang/sr.py rename to pirateweather_translations/lang/sr.py diff --git a/lib/lang/sv.py b/pirateweather_translations/lang/sv.py similarity index 100% rename from lib/lang/sv.py rename to pirateweather_translations/lang/sv.py diff --git a/lib/lang/ta.py b/pirateweather_translations/lang/ta.py similarity index 100% rename from lib/lang/ta.py rename to pirateweather_translations/lang/ta.py diff --git a/lib/lang/te.py b/pirateweather_translations/lang/te.py similarity index 100% rename from lib/lang/te.py rename to pirateweather_translations/lang/te.py diff --git a/lib/lang/tet.py b/pirateweather_translations/lang/tet.py similarity index 100% rename from lib/lang/tet.py rename to pirateweather_translations/lang/tet.py diff --git a/lib/lang/tr.py b/pirateweather_translations/lang/tr.py similarity index 100% rename from lib/lang/tr.py rename to pirateweather_translations/lang/tr.py diff --git a/lib/lang/uk.py b/pirateweather_translations/lang/uk.py similarity index 100% rename from lib/lang/uk.py rename to pirateweather_translations/lang/uk.py diff --git a/lib/lang/ur.py b/pirateweather_translations/lang/ur.py similarity index 100% rename from lib/lang/ur.py rename to pirateweather_translations/lang/ur.py diff --git a/lib/lang/vi.py b/pirateweather_translations/lang/vi.py similarity index 100% rename from lib/lang/vi.py rename to pirateweather_translations/lang/vi.py diff --git a/lib/lang/x-pig-latin.py b/pirateweather_translations/lang/x-pig-latin.py similarity index 100% rename from lib/lang/x-pig-latin.py rename to pirateweather_translations/lang/x-pig-latin.py diff --git a/lib/lang/zh-tw.py b/pirateweather_translations/lang/zh-tw.py similarity index 100% rename from lib/lang/zh-tw.py rename to pirateweather_translations/lang/zh-tw.py diff --git a/lib/lang/zh.py b/pirateweather_translations/lang/zh.py similarity index 100% rename from lib/lang/zh.py rename to pirateweather_translations/lang/zh.py diff --git a/lib/translation.py b/pirateweather_translations/translation.py similarity index 100% rename from lib/translation.py rename to pirateweather_translations/translation.py diff --git a/setup.py b/setup.py index f42ec5f..f3ca292 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from setuptools import find_packages, setup -__version__ = "0.0.3" +__version__ = "0.0.4" with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md")) as f: @@ -22,7 +22,8 @@ keywords="weather API pirateweather translations", url=repo_url, download_url=f"{repo_url}/archive/{__version__}.tar.gz", - packages=find_packages(), + packages=find_packages(where="pirateweather_translations"), + package_dir={"": "pirateweather_translations"}, long_description=open("README.md").read(), long_description_content_type="text/markdown", ) diff --git a/test.py b/test.py index 70803ae..b036d0d 100644 --- a/test.py +++ b/test.py @@ -2,7 +2,7 @@ import os import re import importlib.util -from lib.translation import Translation +from pirateweather_translations.translation import Translation @pytest.fixture