Skip to content

Commit

Permalink
Merge pull request #56 from open-vcpkg/moreports
Browse files Browse the repository at this point in the history
isort, poetry-core and autopep8
  • Loading branch information
m-kuhn authored Oct 20, 2024
2 parents dbfdce7 + c0b1dc1 commit ee91360
Show file tree
Hide file tree
Showing 15 changed files with 183 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 13 additions & 0 deletions ports/py-autopep8/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
18 changes: 18 additions & 0 deletions ports/py-autopep8/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
13 changes: 13 additions & 0 deletions ports/py-isort/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
21 changes: 21 additions & 0 deletions ports/py-isort/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
15 changes: 15 additions & 0 deletions ports/py-poetry-core/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
18 changes: 18 additions & 0 deletions ports/py-poetry-core/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
13 changes: 13 additions & 0 deletions ports/py-pycodestyle/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
17 changes: 17 additions & 0 deletions ports/py-pycodestyle/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
16 changes: 16 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -124,10 +132,18 @@
"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
},
"py-pycodestyle": {
"baseline": "2.12.1",
"port-version": 0
},
"py-pyparsing": {
"baseline": "3.1.1",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/p-/py-autopep8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f8ec3122a271a0e5252ea67fa80e62356785bc04",
"version": "2.3.1",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/p-/py-isort.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "8336ad645f559c2e766743507e6d96e11bc97479",
"version": "5.13.2",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/p-/py-poetry-core.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "80de62cebf198081f7699c0ee8f4cb8d4951d91b",
"version": "1.9.1",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/p-/py-pycodestyle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "791d70831b9e668e39eb6c4a5cb89f04128d3339",
"version": "2.12.1",
"port-version": 0
}
]
}

0 comments on commit ee91360

Please sign in to comment.