httpx/tools/httpxprof/setup.py
2019-09-21 12:02:02 -05:00

21 lines
450 B
Python

import typing
from pathlib import Path
from setuptools import setup
def get_packages(package: str) -> typing.List[str]:
return [str(path.parent) for path in Path(package).glob("**/__init__.py")]
setup(
name="httpxprof",
version="0.1",
packages=get_packages("httpxprof"),
install_requires=["click", "snakeviz", "uvicorn", "tqdm"],
entry_points="""
[console_scripts]
httpxprof=httpxprof.main:cli
""",
)