Skip to content

Commit

Permalink
Add missing py.typed to menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Dec 21, 2023
1 parent 6aae87b commit 81a38eb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def parse_meta() -> types.SimpleNamespace:
with open(os.path.join(name, "internal", "about.py")) as fp:
code = fp.read()

token_pattern = re.compile(r"^__(?P<key>\w+)?__\s*:?.*=\s*(?P<quote>(?:'{3}|\"{3}|'|\"))(?P<value>.*?)(?P=quote)", re.M)
token_pattern = re.compile(
r"^__(?P<key>\w+)?__\s*:?.*=\s*(?P<quote>(?:'{3}|\"{3}|'|\"))(?P<value>.*?)(?P=quote)", re.M
)

groups = {}

Expand Down Expand Up @@ -47,15 +49,12 @@ def parse_requirements_file(path: str) -> t.List[str]:
maintainer=meta.maintainer,
url=meta.url,
packages=find_namespace_packages(include=[name + "*"]),
package_data={"miru": ["py.typed"], "miru.ext.nav": ["py.typed"]},
package_data={"miru": ["py.typed"], "miru.ext.nav": ["py.typed"], "miru.ext.menu": ["py.typed"]},
license=meta.license,
include_package_data=True,
zip_safe=False,
install_requires=parse_requirements_file("requirements.txt"),
extras_require={
':sys_platform=="win32"': ["colorama"],
"docs": parse_requirements_file("doc_requirements.txt"),
},
extras_require={':sys_platform=="win32"': ["colorama"], "docs": parse_requirements_file("doc_requirements.txt")},
python_requires=">=3.8.0,<3.13",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down

0 comments on commit 81a38eb

Please sign in to comment.