From 9d0af7539c01180591ad41ab05c917195e781bdf Mon Sep 17 00:00:00 2001 From: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:03:39 +0200 Subject: [PATCH] Add required python libs to run np.test() --- ports/py-attrs/portfile.cmake | 14 ++++++ ports/py-attrs/vcpkg.json | 19 ++++++++ ports/py-calver/portfile.cmake | 15 +++++++ ports/py-calver/vcpkg.json | 15 +++++++ ports/py-certifi/portfile.cmake | 13 ++++++ ports/py-certifi/vcpkg.json | 16 +++++++ ports/py-charset-normalizer/portfile.cmake | 13 ++++++ ports/py-charset-normalizer/vcpkg.json | 15 +++++++ ports/py-editables/portfile.cmake | 13 ++++++ ports/py-editables/vcpkg.json | 15 +++++++ .../py-hatch-fancy-pypi-readme/portfile.cmake | 14 ++++++ ports/py-hatch-fancy-pypi-readme/vcpkg.json | 16 +++++++ ports/py-hatch-vcs/portfile.cmake | 13 ++++++ ports/py-hatch-vcs/vcpkg.json | 17 +++++++ ports/py-hatch/portfile.cmake | 14 ++++++ ports/py-hatch/vcpkg.json | 16 +++++++ ports/py-hatchling/portfile.cmake | 14 ++++++ ports/py-hatchling/vcpkg.json | 19 ++++++++ ports/py-hypothesis/portfile.cmake | 13 ++++++ ports/py-hypothesis/vcpkg.json | 15 +++++++ ports/py-idna/portfile.cmake | 13 ++++++ ports/py-idna/vcpkg.json | 15 +++++++ ports/py-importlib-metadata/portfile.cmake | 14 ++++++ ports/py-importlib-metadata/vcpkg.json | 14 ++++++ ports/py-iniconfig/portfile.cmake | 13 ++++++ ports/py-iniconfig/vcpkg.json | 15 +++++++ ports/py-pathspec/portfile.cmake | 13 ++++++ ports/py-pathspec/vcpkg.json | 15 +++++++ ports/py-pygments/portfile.cmake | 13 ++++++ ports/py-pygments/vcpkg.json | 17 +++++++ ports/py-pytest/portfile.cmake | 13 ++++++ ports/py-pytest/vcpkg.json | 19 ++++++++ ports/py-requests/portfile.cmake | 13 ++++++ ports/py-requests/vcpkg.json | 18 ++++++++ ports/py-semantic-version/portfile.cmake | 12 +++++ ports/py-semantic-version/vcpkg.json | 15 +++++++ ports/py-setuptools-scm/portfile.cmake | 44 +++++++++++++++++++ ports/py-setuptools-scm/vcpkg.json | 22 ++++++++++ ports/py-sortedcontainers/portfile.cmake | 13 ++++++ ports/py-sortedcontainers/vcpkg.json | 15 +++++++ ports/py-tomli/portfile.cmake | 14 ++++++ ports/py-tomli/vcpkg.json | 14 ++++++ ports/py-trove-classifiers/portfile.cmake | 15 +++++++ ports/py-trove-classifiers/vcpkg.json | 16 +++++++ ports/py-typing-extensions/portfile.cmake | 13 ++++++ ports/py-typing-extensions/vcpkg.json | 15 +++++++ ports/pytest-dev-pluggy/portfile.cmake | 26 +++++++++++ ports/pytest-dev-pluggy/vcpkg.json | 17 +++++++ 48 files changed, 755 insertions(+) create mode 100644 ports/py-attrs/portfile.cmake create mode 100644 ports/py-attrs/vcpkg.json create mode 100644 ports/py-calver/portfile.cmake create mode 100644 ports/py-calver/vcpkg.json create mode 100644 ports/py-certifi/portfile.cmake create mode 100644 ports/py-certifi/vcpkg.json create mode 100644 ports/py-charset-normalizer/portfile.cmake create mode 100644 ports/py-charset-normalizer/vcpkg.json create mode 100644 ports/py-editables/portfile.cmake create mode 100644 ports/py-editables/vcpkg.json create mode 100644 ports/py-hatch-fancy-pypi-readme/portfile.cmake create mode 100644 ports/py-hatch-fancy-pypi-readme/vcpkg.json create mode 100644 ports/py-hatch-vcs/portfile.cmake create mode 100644 ports/py-hatch-vcs/vcpkg.json create mode 100644 ports/py-hatch/portfile.cmake create mode 100644 ports/py-hatch/vcpkg.json create mode 100644 ports/py-hatchling/portfile.cmake create mode 100644 ports/py-hatchling/vcpkg.json create mode 100644 ports/py-hypothesis/portfile.cmake create mode 100644 ports/py-hypothesis/vcpkg.json create mode 100644 ports/py-idna/portfile.cmake create mode 100644 ports/py-idna/vcpkg.json create mode 100644 ports/py-importlib-metadata/portfile.cmake create mode 100644 ports/py-importlib-metadata/vcpkg.json create mode 100644 ports/py-iniconfig/portfile.cmake create mode 100644 ports/py-iniconfig/vcpkg.json create mode 100644 ports/py-pathspec/portfile.cmake create mode 100644 ports/py-pathspec/vcpkg.json create mode 100644 ports/py-pygments/portfile.cmake create mode 100644 ports/py-pygments/vcpkg.json create mode 100644 ports/py-pytest/portfile.cmake create mode 100644 ports/py-pytest/vcpkg.json create mode 100644 ports/py-requests/portfile.cmake create mode 100644 ports/py-requests/vcpkg.json create mode 100644 ports/py-semantic-version/portfile.cmake create mode 100644 ports/py-semantic-version/vcpkg.json create mode 100644 ports/py-setuptools-scm/portfile.cmake create mode 100644 ports/py-setuptools-scm/vcpkg.json create mode 100644 ports/py-sortedcontainers/portfile.cmake create mode 100644 ports/py-sortedcontainers/vcpkg.json create mode 100644 ports/py-tomli/portfile.cmake create mode 100644 ports/py-tomli/vcpkg.json create mode 100644 ports/py-trove-classifiers/portfile.cmake create mode 100644 ports/py-trove-classifiers/vcpkg.json create mode 100644 ports/py-typing-extensions/portfile.cmake create mode 100644 ports/py-typing-extensions/vcpkg.json create mode 100644 ports/pytest-dev-pluggy/portfile.cmake create mode 100644 ports/pytest-dev-pluggy/vcpkg.json diff --git a/ports/py-attrs/portfile.cmake b/ports/py-attrs/portfile.cmake new file mode 100644 index 00000000..a2c1565f --- /dev/null +++ b/ports/py-attrs/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO python-attrs/attrs + REF ${VERSION} + SHA512 e96727d68081a761effcdf5a5d62d66902e7f5229879711739fd14d257b7f1c71ddab84309ffeff161bfc4da3a2b130eda4fad920b9f5bc3134bed138d05c16c + HEAD_REF main +) + +set(ENV{SETUPTOOLS_SCM_PRETEND_VERSION} "${VERSION}") +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-attrs/vcpkg.json b/ports/py-attrs/vcpkg.json new file mode 100644 index 00000000..49447ea0 --- /dev/null +++ b/ports/py-attrs/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "py-attrs", + "version": "23.1.0", + "description": "Python Classes Without Boilerplate", + "homepage": "https://www.attrs.org/", + "license": "MIT", + "dependencies": [ + "py-attrs", + "py-hatch-fancy-pypi-readme", + "py-hatch-vcs", + "py-hatchling", + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-calver/portfile.cmake b/ports/py-calver/portfile.cmake new file mode 100644 index 00000000..253ea461 --- /dev/null +++ b/ports/py-calver/portfile.cmake @@ -0,0 +1,15 @@ + +string(REPLACE "-" "." new_version "${VERSION}") +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO di/calver + REF ${new_version} + SHA512 4d436cead8930cae1a71eddef9f0ecd2881f8cb632c3814dc75390b061a909e7ca969a604a5fded1c66647947856d540e2180bd3ce4bed5087b4dbc9d5edb393 + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-calver/vcpkg.json b/ports/py-calver/vcpkg.json new file mode 100644 index 00000000..66c9b70e --- /dev/null +++ b/ports/py-calver/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-calver", + "version-date": "2022-06-26", + "description": "About Setuptools extension for CalVer package versions", + "homepage": "pypi.org/p/calver", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-certifi/portfile.cmake b/ports/py-certifi/portfile.cmake new file mode 100644 index 00000000..809d2d79 --- /dev/null +++ b/ports/py-certifi/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO certifi/python-certifi + REF 2023.07.22 + SHA512 72ebe32f284eee5998c08961206564206b2162a38d84484fad9894770394c9a9a20979bd374e687d2978eee681197971dae580ec78f4922e7482b083482bd657 + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-certifi/vcpkg.json b/ports/py-certifi/vcpkg.json new file mode 100644 index 00000000..076c0945 --- /dev/null +++ b/ports/py-certifi/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "py-certifi", + "version-date": "2023-07-22", + "description": "A carefully curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts.", + "homepage": "https://github.com/certifi/python-certifi", + "license": null, + "dependencies": [ + "py-semantic-version", + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-charset-normalizer/portfile.cmake b/ports/py-charset-normalizer/portfile.cmake new file mode 100644 index 00000000..ffcd45e4 --- /dev/null +++ b/ports/py-charset-normalizer/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO Ousret/charset_normalizer + REF ${VERSION} + SHA512 52df4ed731fecf2736ce89af3348bdfaec28e2c6bb4526a3e6cb52d9d90db33fb7fc339a91e9b77da1268a879f865a944ddf761de0ce700c156a3e70a9ca88b1 + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-charset-normalizer/vcpkg.json b/ports/py-charset-normalizer/vcpkg.json new file mode 100644 index 00000000..b28a15c9 --- /dev/null +++ b/ports/py-charset-normalizer/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-charset-normalizer", + "version": "3.3.2", + "description": "Truly universal encoding detector in pure Python", + "homepage": "https://charset-normalizer.readthedocs.io/en/latest/", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-editables/portfile.cmake b/ports/py-editables/portfile.cmake new file mode 100644 index 00000000..719f1de8 --- /dev/null +++ b/ports/py-editables/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pfmoore/editables + REF 87cec30b6bff6aa9d871d74d44e47dbf48e2a6ad + SHA512 e139bbe51772535e7d1bd9a1daeeb2b0df3651997961d0af434c51f0e0c9c846499cf28b1c7ba5c9224e162e25cb4311322a0655ac789888830b28588edd20b2 + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-editables/vcpkg.json b/ports/py-editables/vcpkg.json new file mode 100644 index 00000000..a1045657 --- /dev/null +++ b/ports/py-editables/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-editables", + "version": "0.3", + "description": "A Python library for creating editable wheels", + "homepage": "https://github.com/pfmoore/editables", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-hatch-fancy-pypi-readme/portfile.cmake b/ports/py-hatch-fancy-pypi-readme/portfile.cmake new file mode 100644 index 00000000..92bbcffc --- /dev/null +++ b/ports/py-hatch-fancy-pypi-readme/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO hynek/hatch-fancy-pypi-readme + REF ${VERSION} + SHA512 a26b8205877815292c7c65380f3fff43a3222ec5044556a29fb0b570f0822b548f8f4403cb6a800044671692806b257ecee5f9ec0f3efb597e9a5780a8885424 + HEAD_REF main + PATCHES +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-hatch-fancy-pypi-readme/vcpkg.json b/ports/py-hatch-fancy-pypi-readme/vcpkg.json new file mode 100644 index 00000000..86b51555 --- /dev/null +++ b/ports/py-hatch-fancy-pypi-readme/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "py-hatch-fancy-pypi-readme", + "version": "23.1.0", + "description": "Fancy PyPI READMEs with Hatch", + "homepage": "https://github.com/hynek/hatch-fancy-pypi-readme", + "license": "MIT", + "dependencies": [ + "py-hatchling", + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-hatch-vcs/portfile.cmake b/ports/py-hatch-vcs/portfile.cmake new file mode 100644 index 00000000..6dd41e3f --- /dev/null +++ b/ports/py-hatch-vcs/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO ofek/hatch-vcs + REF v${VERSION} + SHA512 bf40cc371c8d8e120fce83e5986fc2bdc2087fa5a4ac4a407d32617e98205ded79dcb29a00c7638ba68dd5ce09f31e84b34176627a6a34dfb7708031f4c4519a + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-hatch-vcs/vcpkg.json b/ports/py-hatch-vcs/vcpkg.json new file mode 100644 index 00000000..a5a7623f --- /dev/null +++ b/ports/py-hatch-vcs/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "py-hatch-vcs", + "version": "0.4.0", + "description": "Hatch plugin for versioning with your preferred VCS", + "homepage": "https://github.com/ofek/hatch-vcs", + "license": "MIT", + "dependencies": [ + "py-hatchling", + "py-setuptools", + "py-setuptools-scm", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-hatch/portfile.cmake b/ports/py-hatch/portfile.cmake new file mode 100644 index 00000000..b446ff97 --- /dev/null +++ b/ports/py-hatch/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pypa/hatch + REF 46a2118ba39c00ca102cf463bdc829301402d05b + SHA512 82cd572e01c8380e938477c2f9588f1e1c172b10e7b85a99715cd299446c9de96973def85f75b868f2458d216582bf6c1120ce005f3bac4a68404c714648214b + HEAD_REF master +) + + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-hatch/vcpkg.json b/ports/py-hatch/vcpkg.json new file mode 100644 index 00000000..4c2a91b3 --- /dev/null +++ b/ports/py-hatch/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "py-hatch", + "version": "1.7.0", + "description": "Modern, extensible Python project management", + "homepage": "hatch.pypa.io/latest/", + "license": "MIT", + "dependencies": [ + "py-hatchling", + "py-wheel", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-hatchling/portfile.cmake b/ports/py-hatchling/portfile.cmake new file mode 100644 index 00000000..9782a252 --- /dev/null +++ b/ports/py-hatchling/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pypa/hatch + REF hatchling-v${VERSION} + SHA512 e71e51fdace9b9aa276c2efba3a81a030ed934c21283057f83a6ce4a09f8feed8cd4386088280c9fe1381dd92e574daeda8c845a6a2cf6a015708126ca9788d7 + HEAD_REF master +) + + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}/backend") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-hatchling/vcpkg.json b/ports/py-hatchling/vcpkg.json new file mode 100644 index 00000000..5ff09ac9 --- /dev/null +++ b/ports/py-hatchling/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "py-hatchling", + "version": "1.18.0", + "description": "Modern, extensible Python project management", + "homepage": "hatch.pypa.io/latest/", + "license": "MIT", + "dependencies": [ + "pytest-dev-pluggy", + "py-editables", + "py-pathspec", + "py-trove-classifiers", + "py-wheel", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-hypothesis/portfile.cmake b/ports/py-hypothesis/portfile.cmake new file mode 100644 index 00000000..78eb4756 --- /dev/null +++ b/ports/py-hypothesis/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO HypothesisWorks/hypothesis + REF hypothesis-python-${VERSION} + SHA512 5aec60a77e0f0bbeafba07da2dce6896ff66d6074367128694ffb2b86a4d7d225fc1d0f8d938b6dbe9652abc7f8a5bc5b891a7a0bd86cd8955ee8031ef2cba80 + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}/hypothesis-python") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-hypothesis/vcpkg.json b/ports/py-hypothesis/vcpkg.json new file mode 100644 index 00000000..a0d044af --- /dev/null +++ b/ports/py-hypothesis/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-hypothesis", + "version": "6.74.0", + "description": "About Hypothesis is a powerful, flexible, and easy to use library for property-based testing.", + "homepage": "https://hypothesis.works/", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-idna/portfile.cmake b/ports/py-idna/portfile.cmake new file mode 100644 index 00000000..bbb39856 --- /dev/null +++ b/ports/py-idna/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO kjd/idna + REF v${VERSION} + SHA512 0fc174ef91061e87cf31b7bc2ff7d1cb12167ece10f030fc3820bf27555e9fa498221161e3a0c272635013f4c771fc0e3855f8d968e0146fb5d93f81699f6bce + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-idna/vcpkg.json b/ports/py-idna/vcpkg.json new file mode 100644 index 00000000..ff01a3d1 --- /dev/null +++ b/ports/py-idna/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-idna", + "version": "3.4", + "description": "Internationalized Domain Names for Python (IDNA 2008 and UTS #46)", + "homepage": "https://github.com/kjd/idna", + "license": "Apache-2.0", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-importlib-metadata/portfile.cmake b/ports/py-importlib-metadata/portfile.cmake new file mode 100644 index 00000000..a3e39061 --- /dev/null +++ b/ports/py-importlib-metadata/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO python/importlib_metadata + REF f604d3e462cd11ee071bfcb78b827fb67cc2e537 + SHA512 ea6c3c630deb8aea4fc487f3c2540bd58d2d0b66d828565a8e3e977ec41143c24ef4bc5c39c06c46c9e6efd9f837b090f0d33722471b557d398170ec2ac4cb4d + HEAD_REF main +) + +# -x to avoid setuptools_scm cycle. +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-importlib-metadata/vcpkg.json b/ports/py-importlib-metadata/vcpkg.json new file mode 100644 index 00000000..79cd1941 --- /dev/null +++ b/ports/py-importlib-metadata/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "py-importlib-metadata", + "version": "6.7.0", + "description": "Backport of the importlib.metadata module", + "homepage": "importlib-metadata.readthedocs.io", + "license": "MIT", + "dependencies": [ + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-iniconfig/portfile.cmake b/ports/py-iniconfig/portfile.cmake new file mode 100644 index 00000000..7cac2f73 --- /dev/null +++ b/ports/py-iniconfig/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pytest-dev/iniconfig + REF v${VERSION} + SHA512 e474aaa904070ed79dbbd2b4b572574ebb591b97a4ca0f9c4e4aef437af01035d2f73c48bb670afcec2cd8b7ea093b92d6b0c0eca7ba42033418a2b0e0ac80ad + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-iniconfig/vcpkg.json b/ports/py-iniconfig/vcpkg.json new file mode 100644 index 00000000..18e0d427 --- /dev/null +++ b/ports/py-iniconfig/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-iniconfig", + "version": "2.0.0", + "description": "iniconfig: brain-dead simple parsing of ini files", + "homepage": "https://github.com/pytest-dev/iniconfig", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-pathspec/portfile.cmake b/ports/py-pathspec/portfile.cmake new file mode 100644 index 00000000..acae43cb --- /dev/null +++ b/ports/py-pathspec/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO cpburnz/python-pathspec + REF v${VERSION} + SHA512 66e320c8e3c5705b084d3a8554e34baefe1d2d53a27d375393c9d06d7d83ae0d2f101da6ac8765ae3ec96d8fb37382fbf02af2ef9dbbc961885c2ecfb44847f8 + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-pathspec/vcpkg.json b/ports/py-pathspec/vcpkg.json new file mode 100644 index 00000000..01238ce0 --- /dev/null +++ b/ports/py-pathspec/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-pathspec", + "version": "0.11.2", + "description": "Utility library for gitignore style pattern matching of file paths.", + "homepage": "https://github.com/cpburnz/python-pathspec", + "license": "MPL-2.0", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-pygments/portfile.cmake b/ports/py-pygments/portfile.cmake new file mode 100644 index 00000000..25c9ec53 --- /dev/null +++ b/ports/py-pygments/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pygments/pygments + REF 04a75bd5a75bfe27f0b582dd83c85e62f9475581 + SHA512 2907452760ac8365534c06547cdcbfe3a77a42df7775c1e552bd21c18288ea4b133b9b070ac73fea3ba1eb562d3193f615ac55290b1c833806bd562fc34442bc + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-pygments/vcpkg.json b/ports/py-pygments/vcpkg.json new file mode 100644 index 00000000..7ea8ef94 --- /dev/null +++ b/ports/py-pygments/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "py-pygments", + "version": "2.15.1", + "description": "Pygments is a generic syntax highlighter written in Python", + "homepage": "pygments.org/", + "license": "BSD-2-Clause", + "dependencies": [ + "py-packaging", + "py-setuptools", + "py-typing-extensions", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-pytest/portfile.cmake b/ports/py-pytest/portfile.cmake new file mode 100644 index 00000000..1e187d79 --- /dev/null +++ b/ports/py-pytest/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pytest-dev/pytest + REF ${VERSION} + SHA512 f454280c6dea0282d987e68a53792ee5b2c1d2705281c61f48f94a1a058587a59cea2e6fae8bf5cfff25816d6df24c383ef286a797a359dedb9ea7d526b6a156 + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-pytest/vcpkg.json b/ports/py-pytest/vcpkg.json new file mode 100644 index 00000000..6eb64cf3 --- /dev/null +++ b/ports/py-pytest/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "py-pytest", + "version": "8.1.1", + "description": "The pytest framework makes it easy to write small tests, yet scales to support complex functional testing ", + "homepage": "https://docs.pytest.org", + "license": "MIT", + "dependencies": [ + "py-attrs", + "py-pygments", + "py-setuptools", + "py-iniconfig", + "py-hypothesis", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-requests/portfile.cmake b/ports/py-requests/portfile.cmake new file mode 100644 index 00000000..369afd2a --- /dev/null +++ b/ports/py-requests/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO psf/requests + REF v${VERSION} + SHA512 43f536bdb2360fcceb24ef98e995ffa66cdefc2c502629f17a5722445bfa9ad8489201958c846c2aaef37e427f95a4d56e321a91095c69754680abfd83b39150 + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-requests/vcpkg.json b/ports/py-requests/vcpkg.json new file mode 100644 index 00000000..932b8ad3 --- /dev/null +++ b/ports/py-requests/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "py-requests", + "version": "2.31.0", + "description": "A simple, yet elegant, HTTP library.", + "homepage": "https://requests.readthedocs.io/en/latest/", + "license": "Apache-2.0", + "dependencies": [ + "py-certifi", + "py-charset-normalizer", + "py-idna", + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-semantic-version/portfile.cmake b/ports/py-semantic-version/portfile.cmake new file mode 100644 index 00000000..d85329a9 --- /dev/null +++ b/ports/py-semantic-version/portfile.cmake @@ -0,0 +1,12 @@ +vcpkg_download_distfile( + wheel + URLS https://files.pythonhosted.org/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl + FILENAME semantic_version-2.10.0-py2.py3-none-any.whl + SHA512 7c9196e00a22bd8a156ed4681a1257a264d2b24ff34c812a3e425edf8f53a76d84450c14f5a9056688797255f6a41655ff2ce1ebcbfc1190009556a4649fafba +) + +vcpkg_python_install_wheel(WHEEL "${wheel}") + +vcpkg_install_copyright(FILE_LIST "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}/semantic_version-2.10.0.dist-info/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-semantic-version/vcpkg.json b/ports/py-semantic-version/vcpkg.json new file mode 100644 index 00000000..b74cd093 --- /dev/null +++ b/ports/py-semantic-version/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-semantic-version", + "version": "2.10.0", + "description": "About Semantic version comparison for Python (see http://semver.org/)", + "homepage": "https://python-markdown.github.io/", + "license": "BSD-2-Clause", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-setuptools-scm/portfile.cmake b/ports/py-setuptools-scm/portfile.cmake new file mode 100644 index 00000000..9a1cf260 --- /dev/null +++ b/ports/py-setuptools-scm/portfile.cmake @@ -0,0 +1,44 @@ +set(ref a5acb6845bf25ec9163020ea02d95e473051569b) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pypa/setuptools_scm + REF "${ref}" + SHA512 cfbafa8a675f2c00a36583bee2ff38e4b603a79da545c8427bbb4d9c8d1d543fec8fffcd5e9a14c2d92a1965d115f4e77b4242169de5b9b92f6c9ada37fd1f89 + HEAD_REF master +) + +vcpkg_find_acquire_program(GIT) +cmake_path(GET GIT PARENT_PATH GIT_DIR) +vcpkg_add_to_path("${GIT_DIR}") + +vcpkg_get_mecurial(HG) +cmake_path(GET HG PARENT_PATH HG_DIR) +vcpkg_add_to_path("${HG_DIR}") + +set(git_working_directory "${SOURCE_PATH}") +set(giturl "https://github.com/pypa/setuptools_scm.git") + +#unset(PYTHON3) +#x_vcpkg_get_python_packages(PYTHON_VERSION "3" OUT_PYTHON_VAR "PYTHON3" PACKAGES setuptools_scm[toml]) + +vcpkg_execute_required_process( + ALLOW_IN_DOWNLOAD_MODE + COMMAND "${GIT}" init "${git_working_directory}" + WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}" + LOGNAME "git-init-${TARGET_TRIPLET}" +) +vcpkg_execute_required_process( + ALLOW_IN_DOWNLOAD_MODE + COMMAND "${GIT}" fetch "${giturl}" "${ref}" --depth 1 -n + WORKING_DIRECTORY "${git_working_directory}" + LOGNAME "git-fetch-${TARGET_TRIPLET}" +) + +#SETUPTOOLS_SCM_PRETEND_VERSION +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") #OPTIONS -Cconfig=toml -Cextras=toml)#-C--build-option=[toml]) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) + diff --git a/ports/py-setuptools-scm/vcpkg.json b/ports/py-setuptools-scm/vcpkg.json new file mode 100644 index 00000000..0ea39ed6 --- /dev/null +++ b/ports/py-setuptools-scm/vcpkg.json @@ -0,0 +1,22 @@ +{ + "name": "py-setuptools-scm", + "version": "7.1.0", + "description": "the blessed package to manage your versions by scm tags", + "homepage": "https://github.com/pypa/setuptools_scm", + "license": "MIT", + "dependencies": [ + "py-importlib-metadata", + "py-packaging", + "py-pygments", + "py-setuptools", + "py-tomli", + "py-typing-extensions", + "python3", + "vcpkg-get-python-packages", + { + "name": "vcpkg-python-scripts", + "host": true + }, + "vcpkg-tool-mecurial" + ] +} diff --git a/ports/py-sortedcontainers/portfile.cmake b/ports/py-sortedcontainers/portfile.cmake new file mode 100644 index 00000000..a40445c3 --- /dev/null +++ b/ports/py-sortedcontainers/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO grantjenks/python-sortedcontainers + REF v${VERSION} + SHA512 1c56daea5d491dbeea9c677677a79ef5c4805325ea3d5da97005cd3b269003a99459550a793dfe65820f152c774371472ba471a7daf61c9d97b36744bafb013b + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-sortedcontainers/vcpkg.json b/ports/py-sortedcontainers/vcpkg.json new file mode 100644 index 00000000..f484259e --- /dev/null +++ b/ports/py-sortedcontainers/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-sortedcontainers", + "version": "2.1.0", + "description": "Python Sorted Container Types: Sorted List, Sorted Dict, and Sorted Set", + "homepage": "http://www.grantjenks.com/docs/sortedcontainers/", + "license": "Apache-2.0", + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-tomli/portfile.cmake b/ports/py-tomli/portfile.cmake new file mode 100644 index 00000000..3a81aa2b --- /dev/null +++ b/ports/py-tomli/portfile.cmake @@ -0,0 +1,14 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO hukkin/tomli + REF 36ef51d6a5a55e0eca077b58695390d041061bd4 + SHA512 fe47a06dddad298dd64975f7618e7c8d03de83a8f4b44da868abd78e062138ad9df18fbc810e55e4cb240fac2c3c023b18ee4e87cab5e93cd776b34fac497bdf + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x) +#file(COPY "${SOURCE_PATH}/src/tomli" DESTINATION "${CURRENT_PACKAGES_DIR}/${PYTHON3_SITE}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-tomli/vcpkg.json b/ports/py-tomli/vcpkg.json new file mode 100644 index 00000000..a1419110 --- /dev/null +++ b/ports/py-tomli/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "py-tomli", + "version": "2.0.1", + "description": "A simple, correct Python build frontend ", + "homepage": "python-build.readthedocs.io/en/stable/", + "license": "MIT", + "dependencies": [ + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-trove-classifiers/portfile.cmake b/ports/py-trove-classifiers/portfile.cmake new file mode 100644 index 00000000..8902aafb --- /dev/null +++ b/ports/py-trove-classifiers/portfile.cmake @@ -0,0 +1,15 @@ + +string(REPLACE "-" "." new_version "${VERSION}") +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO pypa/trove-classifiers + REF ${new_version} + SHA512 5089e5b300a85c41837ae22838712fa7d0e3934b91efd2e3fc1ff3f9389915be30be6dcd8ad9273f6923b7c590802f2fdb95ad5f34412852f58539ee41c79c9c + HEAD_REF master +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-trove-classifiers/vcpkg.json b/ports/py-trove-classifiers/vcpkg.json new file mode 100644 index 00000000..32a867cc --- /dev/null +++ b/ports/py-trove-classifiers/vcpkg.json @@ -0,0 +1,16 @@ +{ + "name": "py-trove-classifiers", + "version-date": "2023-10-18", + "description": "Canonical source for classifiers on PyPI.", + "homepage": "pypi.org/p/trove-classifiers/", + "license": "MIT", + "dependencies": [ + "py-calver", + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-typing-extensions/portfile.cmake b/ports/py-typing-extensions/portfile.cmake new file mode 100644 index 00000000..f31757ea --- /dev/null +++ b/ports/py-typing-extensions/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO python/typing_extensions + REF ${VERSION} + SHA512 1e82f49d837c3fbead7d0867db667f97be2836f1f98bcde7315eb8c5455e605659fe7759ccf86fcbb2373789d9dab500a3b2a75bbcaf9216521c6b8c2796090a + HEAD_REF main +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-typing-extensions/vcpkg.json b/ports/py-typing-extensions/vcpkg.json new file mode 100644 index 00000000..0c7984aa --- /dev/null +++ b/ports/py-typing-extensions/vcpkg.json @@ -0,0 +1,15 @@ +{ + "name": "py-typing-extensions", + "version": "4.8.0", + "description": "Backported and experimental type hints for Python", + "homepage": "https://github.com/python/typing_extensions", + "license": null, + "dependencies": [ + "py-setuptools", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/pytest-dev-pluggy/portfile.cmake b/ports/pytest-dev-pluggy/portfile.cmake new file mode 100644 index 00000000..18d9b95b --- /dev/null +++ b/ports/pytest-dev-pluggy/portfile.cmake @@ -0,0 +1,26 @@ +#vcpkg_from_github( +# OUT_SOURCE_PATH SOURCE_PATH +# REPO pytest-dev/pluggy +# REF 9060a4e466a8ef08bd737dd75acf1e976b76dc07 +# SHA512 db78a8e144da87c7145f51537014b2fc09004c8c6e5f86c75d962f4118c36d79a8cfa16921b328a4fea693af5b91347d73809033f09beba14029a4728adc79a9 +# HEAD_REF master +#) + + +vcpkg_download_distfile( + ARCHIVE + URLS https://files.pythonhosted.org/packages/36/51/04defc761583568cae5fd533abda3d40164cbdcf22dee5b7126ffef68a40/pluggy-1.3.0.tar.gz + FILENAME pluggy-1.3.0.tar.gz + SHA512 d4dbb449f533649da161d7e49f82da5800dabdace4f7aa239c412290470612a45a3ba3c50cafd7bd9ed26cb3aa14648bfa3ed3f41fc0db9ae9399fd7f5933d5f +) + +vcpkg_extract_source_archive( + SOURCE_PATH + ARCHIVE "${ARCHIVE}" +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -x) + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/pytest-dev-pluggy/vcpkg.json b/ports/pytest-dev-pluggy/vcpkg.json new file mode 100644 index 00000000..011aa27c --- /dev/null +++ b/ports/pytest-dev-pluggy/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "pytest-dev-pluggy", + "version": "1.2.0", + "description": "A minimalist production ready plugin system", + "homepage": "pluggy.readthedocs.io/en/latest/", + "license": "MIT", + "dependencies": [ + "py-setuptools", + "py-setuptools-scm", + "py-tomli", + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +}