Skip to content

Commit

Permalink
Make get_dep_pkg_name a regular method
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Oct 14, 2024
1 parent 15fc2c0 commit 1ca25d4
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 20 deletions.
3 changes: 1 addition & 2 deletions edgedbpkg/libabseil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LibAbseil(packages.BundledCMakePackage):
},
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "ABSL"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libexpat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LibExpat(packages.BundledCAutoconfPackage):
}
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "EXPAT"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libgdal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ class LibGDAL(packages.BundledCMakePackage):
zlib.Zlib("1.3.1"),
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "GDAL"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libgeos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LibGEOS(packages.BundledCMakePackage):
},
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "GEOS"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libgeotiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class LibGeoTIFF(packages.BundledCAutoconfPackage):
zlib.Zlib("1.3.1"),
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "GEOTIFF"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libjson_c/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LibJsonC(packages.BundledCMakePackage):
},
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "JSONC"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libpcre2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ class LibPCRE2(packages.BundledCAutoconfPackage):
}
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "PCRE2"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libproj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class LibProj(packages.BundledCMakePackage):
libtiff.LibTIFF("4.7.0"),
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "PROJ"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libsqlite3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def get_source_url_variables(cls, version: str) -> Dict[str, str]:
"sqlitever": "{p[0]:d}{p[1]:02d}{p[2]:02d}{p[3]:02d}".format(p=p)
}

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "SQLite3"

Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libtiff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ class LibTIFF(packages.BundledCAutoconfPackage):
zlib.Zlib("1.3.1"),
]

@classmethod
def get_dep_pkg_name(cls) -> str:
def get_dep_pkg_name(self) -> str:
"""Name used by pkg-config or CMake to refer to this package."""
return "TIFF"

Expand Down

0 comments on commit 1ca25d4

Please sign in to comment.