diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..7b74127 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +include LICENSE +include README.md +include requirements.txt diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..a151989 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,20 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" + +[mypy] +warn_redundant_casts=true +warn_unused_ignores=true + +[tool.yapf] +based_on_style="pep8" +continuation_align_style="valign-right" +dedent_closing_brackets=true +force_multiline_dict=true +spaces_around_dict_delimiters=true +spaces_around_list_delimiters=true +split_all_comma_separated_values=true +use_tabs=true \ No newline at end of file diff --git a/setup.py b/setup.py index 5be177c..c277589 100644 --- a/setup.py +++ b/setup.py @@ -41,9 +41,10 @@ requirements = [] requirements_path = os.path.join(setupDir, "requirements.txt") if os.path.exists(requirements_path): - with open(requirements_path) as f: + with open(requirements_path, mode="r", encoding="utf-8") as f: egg = re.compile(r"#[^#]*egg=([^=&]+)") for line in f.read().splitlines(): + print(f"R {line}") m = egg.search(line) requirements.append(line if m is None else m.group(1))