Skip to content

Commit 3ea1fa3

Browse files
authored
Merge pull request #75 from DavidCEllis/update-pip
Update pip data to retrieve pip 26.1.1
2 parents e0a3ab0 + 1cbfa7d commit 3ea1fa3

3 files changed

Lines changed: 113 additions & 114 deletions

File tree

src/ducktools/env/scripts/get_pip.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ def as_version(self):
6262

6363
# This is mostly kept for testing.
6464
PREVIOUS_PIP = PipZipapp(
65-
version_str="25.3",
66-
sha3_256="a619d1451f2c42c072e0005d98c8a0fdd60ec1f033597a91f8b46c416c338fb6",
67-
source_url="zipapp/pip-25.3.pyz",
68-
)
69-
70-
LATEST_PIP = PipZipapp(
7165
version_str="26.0.1",
7266
sha3_256="fe1f58ec30e3b09a0fa54619f55750682549364670fc206995e1b72c24157011",
7367
source_url="zipapp/pip-26.0.1.pyz",
7468
)
7569

70+
LATEST_PIP = PipZipapp(
71+
version_str="26.1.1",
72+
sha3_256="5ba75d2cdf608e6f7cbb231993a9d0dda3cd0dbe11eb4cd79593cc66b3252628",
73+
source_url="zipapp/pip-26.1.1.pyz",
74+
)
75+
7676

7777
def is_pip_outdated(
7878
paths: ManagedPaths,

tests/test_sql_classes.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# ducktools.env
22
# MIT License
3-
#
3+
#
44
# Copyright (c) 2024 David C Ellis
5-
#
5+
#
66
# Permission is hereby granted, free of charge, to any person obtaining a copy
77
# of this software and associated documentation files (the "Software"), to deal
88
# in the Software without restriction, including without limitation the rights
99
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1010
# copies of the Software, and to permit persons to whom the Software is
1111
# furnished to do so, subject to the following conditions:
12-
#
12+
#
1313
# The above copyright notice and this permission notice shall be included in all
1414
# copies or substantial portions of the Software.
15-
#
15+
#
1616
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1717
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1818
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -106,13 +106,13 @@ class ExampleClass(SQLClass):
106106
@property
107107
def field_dict(self):
108108
return {
109-
"uid": SQLAttribute(default=None, primary_key=True, type=int),
110-
"name": SQLAttribute(unique=True, type=str),
111-
"age": SQLAttribute(default=20, internal=True, type=int),
112-
"height_m": SQLAttribute(type=float),
113-
"height_feet": SQLAttribute(default=None, computed="height_m * 3.28084", type=float),
114-
"friends": SQLAttribute(default_factory=list, type=list[str]),
115-
"some_bool": SQLAttribute(type=bool),
109+
"uid": SQLAttribute(default=None, primary_key=True, type=int, kw_only=True),
110+
"name": SQLAttribute(unique=True, type=str, kw_only=True),
111+
"age": SQLAttribute(default=20, internal=True, type=int, kw_only=True),
112+
"height_m": SQLAttribute(type=float, kw_only=True),
113+
"height_feet": SQLAttribute(default=None, computed="height_m * 3.28084", type=float, kw_only=True),
114+
"friends": SQLAttribute(default_factory=list, type=list[str], kw_only=True),
115+
"some_bool": SQLAttribute(type=bool, kw_only=True),
116116
}
117117

118118

@@ -572,4 +572,3 @@ class ExampleClass(SQLClass):
572572
height_feet: float = SQLAttribute(computed="height_m * 3.28084")
573573
friends: list[str] = SQLAttribute(default_factory=list)
574574
some_bool: bool
575-

0 commit comments

Comments
 (0)