diff --git a/Makefile b/Makefile index a866e2b..9671bbb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ prefix=/usr/local -SOURCE_FILE=git_archive_all.py +SOURCE_FILE=git_archive_all/__init__.py TARGET_DIR=$(prefix)/bin TARGET_FILE=$(TARGET_DIR)/git-archive-all diff --git a/git_archive_all.py b/git_archive_all/__init__.py similarity index 100% rename from git_archive_all.py rename to git_archive_all/__init__.py diff --git a/git_archive_all.pyi b/git_archive_all/__init__.pyi similarity index 98% rename from git_archive_all.pyi rename to git_archive_all/__init__.pyi index 710c1ea..8d1711b 100644 --- a/git_archive_all.pyi +++ b/git_archive_all/__init__.pyi @@ -68,3 +68,5 @@ class GitArchiver(object): @classmethod def list_repo_submodules(cls, repo_abspath: PathStr) -> Generator[PathStr, None, None]: ... + +def main(argv: Optional[List[str]]): ... diff --git a/py.typed b/git_archive_all/py.typed similarity index 100% rename from py.typed rename to git_archive_all/py.typed diff --git a/setup.py b/setup.py index 605b471..718ec21 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools.command.test import test as TestCommand # Parse the version from the file. -verstrline = open('git_archive_all.py', "rt").read() +verstrline = open('git_archive_all/__init__.py', "rt").read() VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]" mo = re.search(VSRE, verstrline, re.M) if mo: @@ -33,7 +33,7 @@ def run_tests(self): setup( version=verstr, - py_modules=['git_archive_all'], + packages=['git_archive_all'], package_data={'git_archive_all': ['py.typed', '*.pyi']}, entry_points={'console_scripts': 'git-archive-all=git_archive_all:main'}, cmdclass={"test": PyTest},