Skip to content

Commit

Permalink
add test for python 3.11
Browse files Browse the repository at this point in the history
Signed-off-by: Ariadne Conill <[email protected]>
  • Loading branch information
kaniini committed Aug 29, 2023
1 parent e73d28c commit a3653b6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,11 @@ func Test_LoadOpenBLAS(t *testing.T) {
require.Equal(t, pkg.Description, "OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version")
require.Equal(t, pkg.Version, "0.3.23")
}

func Test_LoadPython(t *testing.T) {
pkg, err := Load("testdata/python-3.11.pc")
require.NoError(t, err)

require.Equal(t, pkg.Name, "Python")
require.Equal(t, pkg.Version, "3.11")
}
13 changes: 13 additions & 0 deletions testdata/python-3.11.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See: man pkg-config
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Python
Description: Build a C extension for Python
Requires:
Version: 3.11
Libs.private: -ldl
Libs:
Cflags: -I${includedir}/python3.11

0 comments on commit a3653b6

Please sign in to comment.