Skip to content

Commit

Permalink
Fix typing issues (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans authored Sep 8, 2023
1 parent 49d6bd5 commit 6025a76
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion edgedbpkg/edgedb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

class EdgeDB(packages.BundledPythonPackage):
title = "EdgeDB"
name = "edgedb-server"
name = packages.canonicalize_name("edgedb-server")
description = "Next generation graph-relational database"
license_id = "Apache-2.0"
group = "Applications/Databases"
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/edgedbcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class EdgeDBCLI(packages.BundledRustPackage):
title = "EdgeDBCLI"
name = "edgedb-cli"
name = packages.canonicalize_name("edgedb-cli")
description = "EdgeDB Command Line Tools"
license_id = "Apache-2.0"
group = "Applications/Databases"
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/icu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class ICU(packages.BundledCPackage):
title = "ICU"
name = "icu"
name = packages.canonicalize_name("icu")
aliases = ["icu-dev"]

_server = "https://github.com/unicode-org/icu/releases/download/"
Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/libb2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@


class LibB2(packages.BundledCPackage):

title = "libb2"
name = "libb2"
name = packages.canonicalize_name("libb2")
aliases = ["libb2-dev"]

_server = "https://github.com/BLAKE2/libb2/releases/download/"
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/libffi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class LibFFI(packages.BundledCPackage):
title = "libffi"
name = "libffi"
name = packages.canonicalize_name("libffi")
aliases = ["libffi-dev"]

_server = "https://github.com/libffi/libffi/releases/download/"
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/libuuid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class LibUUID(packages.BundledCPackage):
title = "uuid"
name = "uuid"
name = packages.canonicalize_name("uuid")
aliases = ["uuid-dev"]

_server = "https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/"
Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/openssl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
import platform
import re
import shlex
import textwrap

from metapkg import packages
from metapkg import targets


class OpenSSL(packages.BundledCPackage):
title = "OpenSSL"
name = "openssl"
name = packages.canonicalize_name("openssl")
aliases = ["openssl-dev"]

_server = "https://www.openssl.org/source/"
Expand Down
5 changes: 3 additions & 2 deletions edgedbpkg/pgbundle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@


class PostgreSQLBundle(packages.BundledPackage):

title = "PostgreSQL"
name = "postgresql-bundle"
name = packages.canonicalize_name("postgresql-bundle")
group = "Applications/Databases"

sources = [
Expand All @@ -28,6 +27,8 @@ class PostgreSQLBundle(packages.BundledPackage):
},
]

bundle_deps: list[packages.BundledPackage]

@classmethod
def resolve(
cls,
Expand Down
3 changes: 1 addition & 2 deletions edgedbpkg/pgext/pgvector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@


class PgVector(packages.BundledCPackage):

title = "pgvector extension"
name = "pgext-pgvector"
name = packages.canonicalize_name("pgext-pgvector")
description = "Open-source vector similarity search for Postgres"
license_id = "PostgreSQL"
group = "Applications/Databases"
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/postgresql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class PostgreSQL(packages.BundledCPackage):
title = "PostgreSQL"
name = "postgresql-edgedb"
name = packages.canonicalize_name("postgresql-edgedb")
group = "Applications/Databases"

sources = [
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/pyentrypoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class PyEntryPoint(packages.BundledRustPackage):
title = "pyentrypoint"
name = "pyentrypoint"
name = packages.canonicalize_name("pyentrypoint")
sources = [
{
"url": f"file://{source}",
Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Python(packages.BundledCPackage):
title = "Python"
name = "python-edgedb"
name = packages.canonicalize_name("python-edgedb")

_pftp = "https://www.python.org/ftp/python/{base_version}/"

Expand Down
2 changes: 1 addition & 1 deletion edgedbpkg/zlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class Zlib(packages.BundledCPackage):
title = "zlib"
name = "zlib"
name = packages.canonicalize_name("zlib")
aliases = ["zlib-dev"]

_server = "https://zlib.net/fossils/"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ line-length = 79
target-version = ["py39"]

[tool.mypy]
files = "edgedbpkg/**/*.py"
files = "edgedbpkg"
python_version = "3.9"
ignore_missing_imports = true
show_error_codes = true
Expand Down

0 comments on commit 6025a76

Please sign in to comment.