From 7368538ff3ff48421f0b786e87e7da70d5918657 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sun, 13 Nov 2022 12:39:53 +0000 Subject: [PATCH] Fix some manifest issues --- MANIFEST.in | 16 ++++++++++++---- setup.py | 4 ++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 7a34c052..51ffe004 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,12 @@ -include README.md -include LICENSE -recursive-include pyinstrument *.js *.css -include pyinstrument/py.typed +prune ** + +graft pyinstrument +graft test +graft bin +graft html_renderer +prune html_renderer/node_modules +prune html_renderer/dist + +include LICENSE README.md pyproject.toml setup.py setup.cfg noxfile.py requirements-dev.txt + +global-exclude __pycache__ *.py[cod] .* dist diff --git a/setup.py b/setup.py index 1cca7187..0fc734cd 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,14 @@ import os from pathlib import Path -from setuptools import Extension, find_packages, setup +from setuptools import Extension, find_namespace_packages, setup PROJECT_ROOT = Path(__file__).parent long_description = (PROJECT_ROOT / "README.md").read_text(encoding="utf8") setup( name="pyinstrument", - packages=find_packages(include=["pyinstrument", "pyinstrument.*"]), + packages=find_namespace_packages(include=["pyinstrument*"]), version="4.4.0", ext_modules=[ Extension(