From 9619a3ecaa16cc185a8d3590feaa2ec6e0d61f4d Mon Sep 17 00:00:00 2001 From: Vol Ky Date: Sat, 20 Aug 2022 19:16:34 +0300 Subject: [PATCH] make pip install -e . work --- ipa_uk.py => ipa_uk/__init__.py | 0 ipa_uk/__main__.py | 7 +++++++ pyproject.toml | 10 ++++++++++ 3 files changed, 17 insertions(+) rename ipa_uk.py => ipa_uk/__init__.py (100%) create mode 100644 ipa_uk/__main__.py create mode 100644 pyproject.toml diff --git a/ipa_uk.py b/ipa_uk/__init__.py similarity index 100% rename from ipa_uk.py rename to ipa_uk/__init__.py diff --git a/ipa_uk/__main__.py b/ipa_uk/__main__.py new file mode 100644 index 0000000..d2fe9a3 --- /dev/null +++ b/ipa_uk/__main__.py @@ -0,0 +1,7 @@ +import sys +from ipa_uk import ipa + + +for word in sys.stdin: + word = word.rstrip() + print(word, ipa(word, check_accent=False)) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..37866e4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,10 @@ +[project] +name = "ipa-uk" +version = "0.0.1" + +[tool.setuptools] +packages = ["ipa_uk"] + +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta"