Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ports/py-psycopg-c/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
vcpkg_from_pythonhosted(
OUT_SOURCE_PATH SOURCE_PATH
PACKAGE_NAME psycopg_c
VERSION ${VERSION}
SHA512 55310d2a35f8f09286119ed78ccd239df9b781c1058ec4ba27dad159c775f912ccf1e80bb47d1b79fdfd330f8e39278295c767d412f5f7b01cdbffb98404cb4a
)

if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/tools/libpq")
else()
vcpkg_add_to_path("${CURRENT_INSTALLED_DIR}/tools/libpq/bin")
endif()

set(ENV{INCLUDE} "${CURRENT_INSTALLED_DIR}/include;$ENV{INCLUDE}")

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)
23 changes: 23 additions & 0 deletions ports/py-psycopg-c/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "py-psycopg-c",
"version": "3.3.2",
"description": "Python-PostgreSQL Database Adapter",
"homepage": "https://psycopg.org/",
"dependencies": [
{
"name": "libpq",
"features": [
"client"
]
},
{
"name": "py-setuptools",
"host": true
},
"python3",
{
"name": "vcpkg-python-scripts",
"host": true
}
]
}
3 changes: 3 additions & 0 deletions ports/py-psycopg/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "py-psycopg",
"version": "3.3.2",
"port-version": 1,
"description": "Python-PostgreSQL Database Adapter",
"homepage": "https://psycopg.org/",
"dependencies": [
Expand All @@ -10,10 +11,12 @@
"client"
]
},
"py-psycopg-c",
{
"name": "py-setuptools",
"host": true
},
"py-typing-extensions",
"python3",
{
"name": "vcpkg-python-scripts",
Expand Down
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@
"port-version": 0
},
"py-psycopg": {
"baseline": "3.3.2",
"port-version": 1
},
"py-psycopg-c": {
"baseline": "3.3.2",
"port-version": 0
},
Expand Down
9 changes: 9 additions & 0 deletions versions/p-/py-psycopg-c.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "19048faa912038320b0cdcd191cdc94ca462020d",
"version": "3.3.2",
"port-version": 0
}
]
}
5 changes: 5 additions & 0 deletions versions/p-/py-psycopg.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6801a210d958b6e53082344131ad658fa5127f33",
"version": "3.3.2",
"port-version": 1
},
{
"git-tree": "21c79d2feef21b69762db359b5dfb4630cc51bc4",
"version": "3.3.2",
Expand Down
Loading