From 093a3b103b5e80b049647fb2c59c0609b5ca22a9 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sun, 20 Oct 2024 14:17:26 +0200 Subject: [PATCH 1/2] more ports --- .github/workflows/macos.yml | 2 ++ .github/workflows/windows.yml | 2 +- ports/py-autopep8/portfile.cmake | 13 +++++++++++++ ports/py-autopep8/vcpkg.json | 18 ++++++++++++++++++ ports/py-isort/portfile.cmake | 13 +++++++++++++ ports/py-isort/vcpkg.json | 21 +++++++++++++++++++++ ports/py-poetry-core/portfile.cmake | 15 +++++++++++++++ ports/py-poetry-core/vcpkg.json | 18 ++++++++++++++++++ versions/baseline.json | 12 ++++++++++++ versions/p-/py-autopep8.json | 9 +++++++++ versions/p-/py-isort.json | 9 +++++++++ versions/p-/py-poetry-core.json | 9 +++++++++ 12 files changed, 140 insertions(+), 1 deletion(-) create mode 100644 ports/py-autopep8/portfile.cmake create mode 100644 ports/py-autopep8/vcpkg.json create mode 100644 ports/py-isort/portfile.cmake create mode 100644 ports/py-isort/vcpkg.json create mode 100644 ports/py-poetry-core/portfile.cmake create mode 100644 ports/py-poetry-core/vcpkg.json create mode 100644 versions/p-/py-autopep8.json create mode 100644 versions/p-/py-isort.json create mode 100644 versions/p-/py-poetry-core.json diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index cad036f..d6c8e9e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -74,6 +74,8 @@ jobs: ./vcpkg/vcpkg install $VCPKG_OPTIONS py-markupsafe # ./vcpkg/vcpkg install $VCPKG_OPTIONS py-matplotlib ./vcpkg/vcpkg install $VCPKG_OPTIONS py-requests + ./vcpkg/vcpkg install $VCPKG_OPTIONS py-isort + ./vcpkg/vcpkg install $VCPKG_OPTIONS py-autopep8 # ./vcpkg/vcpkg install $VCPKG_OPTIONS py-pyqt6 - name: 📑 Upload logs diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index cb1bffa..9b36801 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -57,7 +57,7 @@ jobs: - name: 🌋 Build run: | - .\vcpkg\vcpkg.exe install --overlay-ports="${{ github.workspace }}/ports" --triplet=${{ matrix.triplet }} --x-buildtrees-root=C:/vcpkg-build py-pyqt6 py-pyyaml py-numpy gdal[python] py-qscintilla py-psycopg2 py-urllib3 py-markupsafe py-requests + .\vcpkg\vcpkg.exe install --overlay-ports="${{ github.workspace }}/ports" --triplet=${{ matrix.triplet }} --x-buildtrees-root=C:/vcpkg-build py-pyqt6 py-pyyaml py-numpy gdal[python] py-qscintilla py-psycopg2 py-urllib3 py-markupsafe py-requests py-isort py-autopep8 # py-matplotlib - name: 📑 Upload logs diff --git a/ports/py-autopep8/portfile.cmake b/ports/py-autopep8/portfile.cmake new file mode 100644 index 0000000..d869a7c --- /dev/null +++ b/ports/py-autopep8/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_pythonhosted( + OUT_SOURCE_PATH SOURCE_PATH + PACKAGE_NAME autopep8 + VERSION ${VERSION} + SHA512 27751ea37d3067efb693acf4872b9e15f1815f1d4116d73b504d491382e4e54337afaef4a1f171979d4cc737b0014e8ebfbc0d34fe02255c39c6b5b09c263067 +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_python_test_import(MODULE "autopep8") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-autopep8/vcpkg.json b/ports/py-autopep8/vcpkg.json new file mode 100644 index 0000000..d92ff16 --- /dev/null +++ b/ports/py-autopep8/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "py-autopep8", + "version": "2.3.1", + "description": "A tool that automatically formats Python code to conform to the PEP 8 style guide", + "homepage": "https://github.com/hhatto/autopep8", + "dependencies": [ + "py-pycodestyle", + { + "name": "py-setuptools", + "host": true + }, + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-isort/portfile.cmake b/ports/py-isort/portfile.cmake new file mode 100644 index 0000000..5cc3941 --- /dev/null +++ b/ports/py-isort/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_pythonhosted( + OUT_SOURCE_PATH SOURCE_PATH + PACKAGE_NAME isort + VERSION ${VERSION} + SHA512 8bf953fecc343ef00b51365af9a8334ab4240892036e6db507cc311131991d4ad2ebd1088daeb96fde82383224768f309af94633b6c71ddedec20f0a1ecd40db +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_python_test_import(MODULE "isort") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-isort/vcpkg.json b/ports/py-isort/vcpkg.json new file mode 100644 index 0000000..10f3e94 --- /dev/null +++ b/ports/py-isort/vcpkg.json @@ -0,0 +1,21 @@ +{ + "name": "py-isort", + "version": "5.13.2", + "description": "A Python utility / library to sort Python imports.", + "homepage": "https://pycqa.github.io/isort/", + "dependencies": [ + { + "name": "py-poetry-core", + "host": true + }, + { + "name": "py-setuptools", + "host": true + }, + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/ports/py-poetry-core/portfile.cmake b/ports/py-poetry-core/portfile.cmake new file mode 100644 index 0000000..811348c --- /dev/null +++ b/ports/py-poetry-core/portfile.cmake @@ -0,0 +1,15 @@ + +vcpkg_from_pythonhosted( + OUT_SOURCE_PATH SOURCE_PATH + PACKAGE_NAME poetry-core + VERSION ${VERSION} + SHA512 6c421c9be397b89d2fd97d15ff5c65290462d82f962eb4bdabaeea2250acc46ce24236448bec686587eaffa0939fd60930a68ce42cf8ec2973b6b5afa0306c94 + FILENAME poetry_core +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_python_test_import(MODULE "poetry.core") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-poetry-core/vcpkg.json b/ports/py-poetry-core/vcpkg.json new file mode 100644 index 0000000..080605b --- /dev/null +++ b/ports/py-poetry-core/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "py-poetry-core", + "version": "1.9.1", + "description": "Poetry PEP 517 Build Backend", + "homepage": "https://github.com/python-poetry/poetry-core", + "license": "MIT", + "dependencies": [ + { + "name": "py-setuptools", + "host": true + }, + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index d71953d..237b4ac 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -8,6 +8,10 @@ "baseline": "2024-03-13", "port-version": 0 }, + "py-autopep8": { + "baseline": "2.3.1", + "port-version": 0 + }, "py-build": { "baseline": "0.10.0", "port-version": 1 @@ -68,6 +72,10 @@ "baseline": "0.7.0", "port-version": 1 }, + "py-isort": { + "baseline": "5.13.2", + "port-version": 0 + }, "py-jinja2": { "baseline": "3.1.4", "port-version": 0 @@ -124,6 +132,10 @@ "baseline": "3.11", "port-version": 2 }, + "py-poetry-core": { + "baseline": "1.9.1", + "port-version": 0 + }, "py-psycopg2": { "baseline": "2.9.9", "port-version": 2 diff --git a/versions/p-/py-autopep8.json b/versions/p-/py-autopep8.json new file mode 100644 index 0000000..727bc44 --- /dev/null +++ b/versions/p-/py-autopep8.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f8ec3122a271a0e5252ea67fa80e62356785bc04", + "version": "2.3.1", + "port-version": 0 + } + ] +} diff --git a/versions/p-/py-isort.json b/versions/p-/py-isort.json new file mode 100644 index 0000000..03f5d9d --- /dev/null +++ b/versions/p-/py-isort.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "8336ad645f559c2e766743507e6d96e11bc97479", + "version": "5.13.2", + "port-version": 0 + } + ] +} diff --git a/versions/p-/py-poetry-core.json b/versions/p-/py-poetry-core.json new file mode 100644 index 0000000..ebe1282 --- /dev/null +++ b/versions/p-/py-poetry-core.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "80de62cebf198081f7699c0ee8f4cb8d4951d91b", + "version": "1.9.1", + "port-version": 0 + } + ] +} From c0b1dc1da5d3400d0646906ca3b008189fbc0e2d Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Sun, 20 Oct 2024 14:21:04 +0200 Subject: [PATCH 2/2] pycodestyle --- ports/py-pycodestyle/portfile.cmake | 13 +++++++++++++ ports/py-pycodestyle/vcpkg.json | 17 +++++++++++++++++ versions/baseline.json | 4 ++++ versions/p-/py-pycodestyle.json | 9 +++++++++ 4 files changed, 43 insertions(+) create mode 100644 ports/py-pycodestyle/portfile.cmake create mode 100644 ports/py-pycodestyle/vcpkg.json create mode 100644 versions/p-/py-pycodestyle.json diff --git a/ports/py-pycodestyle/portfile.cmake b/ports/py-pycodestyle/portfile.cmake new file mode 100644 index 0000000..70be3df --- /dev/null +++ b/ports/py-pycodestyle/portfile.cmake @@ -0,0 +1,13 @@ +vcpkg_from_pythonhosted( + OUT_SOURCE_PATH SOURCE_PATH + PACKAGE_NAME pycodestyle + VERSION ${VERSION} + SHA512 e2a5a10723a2606e49674c4782b50f65ad4d02238e9251fff3d8cf4332cc8df665740265b687a3ec3f9e1e5e03e5787bb82c599ba31dc3c408f32bab353cef71 +) + +vcpkg_python_build_and_install_wheel(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") +vcpkg_python_test_import(MODULE "pycodestyle") + +set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) diff --git a/ports/py-pycodestyle/vcpkg.json b/ports/py-pycodestyle/vcpkg.json new file mode 100644 index 0000000..e7d9e86 --- /dev/null +++ b/ports/py-pycodestyle/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "py-pycodestyle", + "version": "2.12.1", + "description": "Python style guide checker", + "homepage": "https://pycodestyle.pycqa.org/", + "dependencies": [ + { + "name": "py-setuptools", + "host": true + }, + "python3", + { + "name": "vcpkg-python-scripts", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 237b4ac..fd5c2e6 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -140,6 +140,10 @@ "baseline": "2.9.9", "port-version": 2 }, + "py-pycodestyle": { + "baseline": "2.12.1", + "port-version": 0 + }, "py-pyparsing": { "baseline": "3.1.1", "port-version": 2 diff --git a/versions/p-/py-pycodestyle.json b/versions/p-/py-pycodestyle.json new file mode 100644 index 0000000..df57f7d --- /dev/null +++ b/versions/p-/py-pycodestyle.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "791d70831b9e668e39eb6c4a5cb89f04128d3339", + "version": "2.12.1", + "port-version": 0 + } + ] +}