diff --git a/.copier-answers.yaml b/.copier-answers.yaml index e7de575..3c72722 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,8 +1,9 @@ # Changes here will be overwritten by Copier -_commit: b2a4844 +_commit: da2acba _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: cpp +add_vcpkg: true add_wiki: true email: 3105306+timkpaine@users.noreply.github.com github: python-project-templates diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 26775af..5c4f9d0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -52,6 +52,8 @@ jobs: - uses: actions-ext/cpp/setup@51c484ef64088c62434226039d0e3359f5fc8df6 + - uses: actions-ext/cpp/setup-vcpkg-cache@6ded4958b7e13d73428138a01d53c33cb941121d + - name: Install dependencies run: make develop diff --git a/.gitignore b/.gitignore index 59c4fff..e48ddfc 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,10 @@ __pycache__/ *.exp *.lib +# vcpkg +vcpkg/ +vcpkg_installed/ + # Rust target target-capi diff --git a/pyproject.toml b/pyproject.toml index 4793e01..f872905 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -129,6 +129,11 @@ packages = [ "cpp", ] +[tool.hatch.build.targets.sdist.force-include] +"vcpkg.json" = "vcpkg.json" +"vcpkg-overlays" = "vcpkg-overlays" + + [tool.hatch.build.targets.wheel] packages = [ "python_template_cpp", diff --git a/vcpkg-overlays/.gitkeep b/vcpkg-overlays/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/vcpkg-overlays/.gitkeep @@ -0,0 +1 @@ + diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 0000000..edcd9e1 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,8 @@ +{ + "dependencies": [], + "configuration": { + "overlay-ports": [ + "vcpkg-overlays" + ] + } +}