From 3d29e553a2f64d6c47098d8bae7febf29ed3c6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20F=C3=A9lix?= Date: Sat, 26 Nov 2022 00:11:18 +0000 Subject: [PATCH] add MANIFEST file, restore include folder (#85) * add MANIFEST file, restore include folder * fix pyproject.toml warning --- FPSim2/src/{ => include}/popcnt.hpp | 0 FPSim2/src/{ => include}/result.hpp | 0 FPSim2/src/{ => include}/sim.hpp | 0 FPSim2/src/{ => include}/utils.hpp | 0 MANIFEST.in | 1 + pyproject.toml | 6 +----- setup.py | 2 ++ 7 files changed, 4 insertions(+), 5 deletions(-) rename FPSim2/src/{ => include}/popcnt.hpp (100%) rename FPSim2/src/{ => include}/result.hpp (100%) rename FPSim2/src/{ => include}/sim.hpp (100%) rename FPSim2/src/{ => include}/utils.hpp (100%) create mode 100644 MANIFEST.in diff --git a/FPSim2/src/popcnt.hpp b/FPSim2/src/include/popcnt.hpp similarity index 100% rename from FPSim2/src/popcnt.hpp rename to FPSim2/src/include/popcnt.hpp diff --git a/FPSim2/src/result.hpp b/FPSim2/src/include/result.hpp similarity index 100% rename from FPSim2/src/result.hpp rename to FPSim2/src/include/result.hpp diff --git a/FPSim2/src/sim.hpp b/FPSim2/src/include/sim.hpp similarity index 100% rename from FPSim2/src/sim.hpp rename to FPSim2/src/include/sim.hpp diff --git a/FPSim2/src/utils.hpp b/FPSim2/src/include/utils.hpp similarity index 100% rename from FPSim2/src/utils.hpp rename to FPSim2/src/include/utils.hpp diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..d159605 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include FPSim2/src/include/*.hpp \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index f93203c..17fbfed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,3 @@ -[project] -name = "FPSim2" -requires-python = ">=3.8" - [build-system] requires = ["pybind11>=2.2", "setuptools>=61.0.0"] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 6ffe6aa..5610b8c 100644 --- a/setup.py +++ b/setup.py @@ -40,6 +40,7 @@ def __str__(self): ["FPSim2/src/sim.cpp", "FPSim2/src/utils.cpp", "FPSim2/src/wraps.cpp"] ), include_dirs=[ + "FPSim2/src/include", # Path to pybind11 headers get_pybind_include(), ], @@ -141,6 +142,7 @@ def build_extensions(self): "tqdm", ], cmdclass={"build_ext": BuildExt}, + python_requires=">=3.8", zip_safe=False, classifiers=[ "Development Status :: 4 - Beta",