diff --git a/pyproject.toml b/pyproject.toml index 32afc44b..545b444d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,16 +55,6 @@ homepage = "https://github.com/tatuylonen/wiktextract" [tool.setuptools] zip-safe = false -[tool.setuptools.packages.find] -exclude = [ - "languages", - "overrides", - "tests", - "tools", - "usertools", - "json_schema" -] - [tool.setuptools.package-data] wiktextract = [ "data/*/*", diff --git a/wiktextract/__init__.py b/src/wiktextract/__init__.py similarity index 100% rename from wiktextract/__init__.py rename to src/wiktextract/__init__.py diff --git a/wiktextract/categories.py b/src/wiktextract/categories.py similarity index 100% rename from wiktextract/categories.py rename to src/wiktextract/categories.py diff --git a/wiktextract/clean.py b/src/wiktextract/clean.py similarity index 100% rename from wiktextract/clean.py rename to src/wiktextract/clean.py diff --git a/wiktextract/config.py b/src/wiktextract/config.py similarity index 100% rename from wiktextract/config.py rename to src/wiktextract/config.py diff --git a/wiktextract/data/cs/languages.json b/src/wiktextract/data/cs/languages.json similarity index 100% rename from wiktextract/data/cs/languages.json rename to src/wiktextract/data/cs/languages.json diff --git a/wiktextract/data/de/form_tables.json b/src/wiktextract/data/de/form_tables.json similarity index 100% rename from wiktextract/data/de/form_tables.json rename to src/wiktextract/data/de/form_tables.json diff --git a/wiktextract/data/de/languages.json b/src/wiktextract/data/de/languages.json similarity index 100% rename from wiktextract/data/de/languages.json rename to src/wiktextract/data/de/languages.json diff --git a/wiktextract/data/de/other_subtitles.json b/src/wiktextract/data/de/other_subtitles.json similarity index 100% rename from wiktextract/data/de/other_subtitles.json rename to src/wiktextract/data/de/other_subtitles.json diff --git a/wiktextract/data/de/pos_subtitles.json b/src/wiktextract/data/de/pos_subtitles.json similarity index 100% rename from wiktextract/data/de/pos_subtitles.json rename to src/wiktextract/data/de/pos_subtitles.json diff --git a/wiktextract/data/en/languages.json b/src/wiktextract/data/en/languages.json similarity index 100% rename from wiktextract/data/en/languages.json rename to src/wiktextract/data/en/languages.json diff --git a/wiktextract/data/en/linkage_subtitles.json b/src/wiktextract/data/en/linkage_subtitles.json similarity index 100% rename from wiktextract/data/en/linkage_subtitles.json rename to src/wiktextract/data/en/linkage_subtitles.json diff --git a/wiktextract/data/en/other_subtitles.json b/src/wiktextract/data/en/other_subtitles.json similarity index 100% rename from wiktextract/data/en/other_subtitles.json rename to src/wiktextract/data/en/other_subtitles.json diff --git a/wiktextract/data/en/pos_subtitles.json b/src/wiktextract/data/en/pos_subtitles.json similarity index 100% rename from wiktextract/data/en/pos_subtitles.json rename to src/wiktextract/data/en/pos_subtitles.json diff --git a/wiktextract/data/en/zh_pron_tags.json b/src/wiktextract/data/en/zh_pron_tags.json similarity index 100% rename from wiktextract/data/en/zh_pron_tags.json rename to src/wiktextract/data/en/zh_pron_tags.json diff --git a/wiktextract/data/fr/languages.json b/src/wiktextract/data/fr/languages.json similarity index 100% rename from wiktextract/data/fr/languages.json rename to src/wiktextract/data/fr/languages.json diff --git a/wiktextract/data/fr/linkage_subtitles.json b/src/wiktextract/data/fr/linkage_subtitles.json similarity index 100% rename from wiktextract/data/fr/linkage_subtitles.json rename to src/wiktextract/data/fr/linkage_subtitles.json diff --git a/wiktextract/data/fr/other_subtitles.json b/src/wiktextract/data/fr/other_subtitles.json similarity index 100% rename from wiktextract/data/fr/other_subtitles.json rename to src/wiktextract/data/fr/other_subtitles.json diff --git a/wiktextract/data/fr/pos_subtitles.json b/src/wiktextract/data/fr/pos_subtitles.json similarity index 100% rename from wiktextract/data/fr/pos_subtitles.json rename to src/wiktextract/data/fr/pos_subtitles.json diff --git a/wiktextract/data/sk/languages.json b/src/wiktextract/data/sk/languages.json similarity index 100% rename from wiktextract/data/sk/languages.json rename to src/wiktextract/data/sk/languages.json diff --git a/wiktextract/data/zh/form_of_templates.json b/src/wiktextract/data/zh/form_of_templates.json similarity index 100% rename from wiktextract/data/zh/form_of_templates.json rename to src/wiktextract/data/zh/form_of_templates.json diff --git a/wiktextract/data/zh/languages.json b/src/wiktextract/data/zh/languages.json similarity index 100% rename from wiktextract/data/zh/languages.json rename to src/wiktextract/data/zh/languages.json diff --git a/wiktextract/data/zh/linkage_subtitles.json b/src/wiktextract/data/zh/linkage_subtitles.json similarity index 100% rename from wiktextract/data/zh/linkage_subtitles.json rename to src/wiktextract/data/zh/linkage_subtitles.json diff --git a/wiktextract/data/zh/other_subtitles.json b/src/wiktextract/data/zh/other_subtitles.json similarity index 100% rename from wiktextract/data/zh/other_subtitles.json rename to src/wiktextract/data/zh/other_subtitles.json diff --git a/wiktextract/data/zh/pos_subtitles.json b/src/wiktextract/data/zh/pos_subtitles.json similarity index 100% rename from wiktextract/data/zh/pos_subtitles.json rename to src/wiktextract/data/zh/pos_subtitles.json diff --git a/wiktextract/data/zh/zh_pron_tags.json b/src/wiktextract/data/zh/zh_pron_tags.json similarity index 100% rename from wiktextract/data/zh/zh_pron_tags.json rename to src/wiktextract/data/zh/zh_pron_tags.json diff --git a/wiktextract/datautils.py b/src/wiktextract/datautils.py similarity index 100% rename from wiktextract/datautils.py rename to src/wiktextract/datautils.py diff --git a/wiktextract/english_words.py b/src/wiktextract/english_words.py similarity index 100% rename from wiktextract/english_words.py rename to src/wiktextract/english_words.py diff --git a/wiktextract/extractor/de/gloss.py b/src/wiktextract/extractor/de/gloss.py similarity index 100% rename from wiktextract/extractor/de/gloss.py rename to src/wiktextract/extractor/de/gloss.py diff --git a/wiktextract/extractor/de/page.py b/src/wiktextract/extractor/de/page.py similarity index 100% rename from wiktextract/extractor/de/page.py rename to src/wiktextract/extractor/de/page.py diff --git a/wiktextract/extractor/en/page.py b/src/wiktextract/extractor/en/page.py similarity index 100% rename from wiktextract/extractor/en/page.py rename to src/wiktextract/extractor/en/page.py diff --git a/wiktextract/extractor/en/thesaurus.py b/src/wiktextract/extractor/en/thesaurus.py similarity index 100% rename from wiktextract/extractor/en/thesaurus.py rename to src/wiktextract/extractor/en/thesaurus.py diff --git a/wiktextract/extractor/fr/etymology.py b/src/wiktextract/extractor/fr/etymology.py similarity index 100% rename from wiktextract/extractor/fr/etymology.py rename to src/wiktextract/extractor/fr/etymology.py diff --git a/wiktextract/extractor/fr/form_line.py b/src/wiktextract/extractor/fr/form_line.py similarity index 100% rename from wiktextract/extractor/fr/form_line.py rename to src/wiktextract/extractor/fr/form_line.py diff --git a/wiktextract/extractor/fr/gloss.py b/src/wiktextract/extractor/fr/gloss.py similarity index 100% rename from wiktextract/extractor/fr/gloss.py rename to src/wiktextract/extractor/fr/gloss.py diff --git a/wiktextract/extractor/fr/inflection.py b/src/wiktextract/extractor/fr/inflection.py similarity index 100% rename from wiktextract/extractor/fr/inflection.py rename to src/wiktextract/extractor/fr/inflection.py diff --git a/wiktextract/extractor/fr/linkage.py b/src/wiktextract/extractor/fr/linkage.py similarity index 100% rename from wiktextract/extractor/fr/linkage.py rename to src/wiktextract/extractor/fr/linkage.py diff --git a/wiktextract/extractor/fr/page.py b/src/wiktextract/extractor/fr/page.py similarity index 100% rename from wiktextract/extractor/fr/page.py rename to src/wiktextract/extractor/fr/page.py diff --git a/wiktextract/extractor/fr/pronunciation.py b/src/wiktextract/extractor/fr/pronunciation.py similarity index 100% rename from wiktextract/extractor/fr/pronunciation.py rename to src/wiktextract/extractor/fr/pronunciation.py diff --git a/wiktextract/extractor/fr/translation.py b/src/wiktextract/extractor/fr/translation.py similarity index 100% rename from wiktextract/extractor/fr/translation.py rename to src/wiktextract/extractor/fr/translation.py diff --git a/wiktextract/extractor/ruby.py b/src/wiktextract/extractor/ruby.py similarity index 100% rename from wiktextract/extractor/ruby.py rename to src/wiktextract/extractor/ruby.py diff --git a/wiktextract/extractor/share.py b/src/wiktextract/extractor/share.py similarity index 100% rename from wiktextract/extractor/share.py rename to src/wiktextract/extractor/share.py diff --git a/wiktextract/extractor/zh/descendant.py b/src/wiktextract/extractor/zh/descendant.py similarity index 100% rename from wiktextract/extractor/zh/descendant.py rename to src/wiktextract/extractor/zh/descendant.py diff --git a/wiktextract/extractor/zh/example.py b/src/wiktextract/extractor/zh/example.py similarity index 100% rename from wiktextract/extractor/zh/example.py rename to src/wiktextract/extractor/zh/example.py diff --git a/wiktextract/extractor/zh/gloss.py b/src/wiktextract/extractor/zh/gloss.py similarity index 100% rename from wiktextract/extractor/zh/gloss.py rename to src/wiktextract/extractor/zh/gloss.py diff --git a/wiktextract/extractor/zh/headword_line.py b/src/wiktextract/extractor/zh/headword_line.py similarity index 100% rename from wiktextract/extractor/zh/headword_line.py rename to src/wiktextract/extractor/zh/headword_line.py diff --git a/wiktextract/extractor/zh/inflection.py b/src/wiktextract/extractor/zh/inflection.py similarity index 100% rename from wiktextract/extractor/zh/inflection.py rename to src/wiktextract/extractor/zh/inflection.py diff --git a/wiktextract/extractor/zh/linkage.py b/src/wiktextract/extractor/zh/linkage.py similarity index 100% rename from wiktextract/extractor/zh/linkage.py rename to src/wiktextract/extractor/zh/linkage.py diff --git a/wiktextract/extractor/zh/page.py b/src/wiktextract/extractor/zh/page.py similarity index 100% rename from wiktextract/extractor/zh/page.py rename to src/wiktextract/extractor/zh/page.py diff --git a/wiktextract/extractor/zh/pronunciation.py b/src/wiktextract/extractor/zh/pronunciation.py similarity index 100% rename from wiktextract/extractor/zh/pronunciation.py rename to src/wiktextract/extractor/zh/pronunciation.py diff --git a/wiktextract/extractor/zh/thesaurus.py b/src/wiktextract/extractor/zh/thesaurus.py similarity index 100% rename from wiktextract/extractor/zh/thesaurus.py rename to src/wiktextract/extractor/zh/thesaurus.py diff --git a/wiktextract/extractor/zh/translation.py b/src/wiktextract/extractor/zh/translation.py similarity index 100% rename from wiktextract/extractor/zh/translation.py rename to src/wiktextract/extractor/zh/translation.py diff --git a/wiktextract/form_descriptions.py b/src/wiktextract/form_descriptions.py similarity index 100% rename from wiktextract/form_descriptions.py rename to src/wiktextract/form_descriptions.py diff --git a/wiktextract/hieroglyphs.py b/src/wiktextract/hieroglyphs.py similarity index 100% rename from wiktextract/hieroglyphs.py rename to src/wiktextract/hieroglyphs.py diff --git a/wiktextract/import_utils.py b/src/wiktextract/import_utils.py similarity index 100% rename from wiktextract/import_utils.py rename to src/wiktextract/import_utils.py diff --git a/wiktextract/inflection.py b/src/wiktextract/inflection.py similarity index 100% rename from wiktextract/inflection.py rename to src/wiktextract/inflection.py diff --git a/wiktextract/inflectiondata.py b/src/wiktextract/inflectiondata.py similarity index 100% rename from wiktextract/inflectiondata.py rename to src/wiktextract/inflectiondata.py diff --git a/wiktextract/lang_specific_configs.py b/src/wiktextract/lang_specific_configs.py similarity index 100% rename from wiktextract/lang_specific_configs.py rename to src/wiktextract/lang_specific_configs.py diff --git a/wiktextract/linkages.py b/src/wiktextract/linkages.py similarity index 100% rename from wiktextract/linkages.py rename to src/wiktextract/linkages.py diff --git a/wiktextract/page.py b/src/wiktextract/page.py similarity index 100% rename from wiktextract/page.py rename to src/wiktextract/page.py diff --git a/wiktextract/parts_of_speech.py b/src/wiktextract/parts_of_speech.py similarity index 100% rename from wiktextract/parts_of_speech.py rename to src/wiktextract/parts_of_speech.py diff --git a/wiktextract/places.py b/src/wiktextract/places.py similarity index 100% rename from wiktextract/places.py rename to src/wiktextract/places.py diff --git a/wiktextract/pronunciations.py b/src/wiktextract/pronunciations.py similarity index 100% rename from wiktextract/pronunciations.py rename to src/wiktextract/pronunciations.py diff --git a/wiktextract/py.typed b/src/wiktextract/py.typed similarity index 100% rename from wiktextract/py.typed rename to src/wiktextract/py.typed diff --git a/wiktextract/table_headers_heuristics_data.py b/src/wiktextract/table_headers_heuristics_data.py similarity index 100% rename from wiktextract/table_headers_heuristics_data.py rename to src/wiktextract/table_headers_heuristics_data.py diff --git a/wiktextract/tags.py b/src/wiktextract/tags.py similarity index 100% rename from wiktextract/tags.py rename to src/wiktextract/tags.py diff --git a/wiktextract/taxondata.py b/src/wiktextract/taxondata.py similarity index 100% rename from wiktextract/taxondata.py rename to src/wiktextract/taxondata.py diff --git a/wiktextract/template_override.py b/src/wiktextract/template_override.py similarity index 100% rename from wiktextract/template_override.py rename to src/wiktextract/template_override.py diff --git a/wiktextract/thesaurus.py b/src/wiktextract/thesaurus.py similarity index 100% rename from wiktextract/thesaurus.py rename to src/wiktextract/thesaurus.py diff --git a/wiktextract/topics.py b/src/wiktextract/topics.py similarity index 100% rename from wiktextract/topics.py rename to src/wiktextract/topics.py diff --git a/wiktextract/translations.py b/src/wiktextract/translations.py similarity index 100% rename from wiktextract/translations.py rename to src/wiktextract/translations.py diff --git a/wiktextract/unsupported_titles.py b/src/wiktextract/unsupported_titles.py similarity index 100% rename from wiktextract/unsupported_titles.py rename to src/wiktextract/unsupported_titles.py diff --git a/wiktextract/wikihtml.py b/src/wiktextract/wikihtml.py similarity index 100% rename from wiktextract/wikihtml.py rename to src/wiktextract/wikihtml.py diff --git a/wiktextract/wiktionary.py b/src/wiktextract/wiktionary.py similarity index 100% rename from wiktextract/wiktionary.py rename to src/wiktextract/wiktionary.py diff --git a/wiktextract/wiktwords.py b/src/wiktextract/wiktwords.py similarity index 100% rename from wiktextract/wiktwords.py rename to src/wiktextract/wiktwords.py diff --git a/wiktextract/wxr_context.py b/src/wiktextract/wxr_context.py similarity index 100% rename from wiktextract/wxr_context.py rename to src/wiktextract/wxr_context.py