openepd 4.11.1__py3-none-any.whl → 4.11.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openepd/__version__.py +1 -1
- openepd/model/common.py +1 -1
- openepd/model/declaration.py +7 -0
- openepd/model/epd.py +0 -6
- {openepd-4.11.1.dist-info → openepd-4.11.3.dist-info}/METADATA +1 -1
- {openepd-4.11.1.dist-info → openepd-4.11.3.dist-info}/RECORD +8 -8
- {openepd-4.11.1.dist-info → openepd-4.11.3.dist-info}/LICENSE +0 -0
- {openepd-4.11.1.dist-info → openepd-4.11.3.dist-info}/WHEEL +0 -0
openepd/__version__.py
CHANGED
openepd/model/common.py
CHANGED
@@ -29,7 +29,7 @@ class Amount(BaseOpenEpdSchema):
|
|
29
29
|
@pyd.root_validator
|
30
30
|
def check_qty_or_unit(cls, values: dict[str, Any]):
|
31
31
|
"""Ensure that qty or unit is provided."""
|
32
|
-
if values
|
32
|
+
if values.get("qty") is None and values.get("unit") is None:
|
33
33
|
raise ValueError("Either qty or unit must be provided.")
|
34
34
|
return values
|
35
35
|
|
openepd/model/declaration.py
CHANGED
@@ -49,6 +49,13 @@ class BaseDeclaration(RootDocument, abc.ABC):
|
|
49
49
|
description="Last date the document is valid on, including any extensions.",
|
50
50
|
)
|
51
51
|
|
52
|
+
version: pyd.PositiveInt | None = pyd.Field(
|
53
|
+
description="Version of this document. The document's issuer should increment it anytime even a single "
|
54
|
+
"character changes, as this value is used to determine the most recent version.",
|
55
|
+
example=1,
|
56
|
+
default=None,
|
57
|
+
)
|
58
|
+
|
52
59
|
declared_unit: Amount | None = pyd.Field(
|
53
60
|
description="SI declared unit for this document. If a functional unit is "
|
54
61
|
"utilized, the declared unit shall refer to the amount of "
|
openepd/model/epd.py
CHANGED
@@ -69,12 +69,6 @@ class EpdPreviewV0(
|
|
69
69
|
product_image: pyd.AnyUrl | pyd.FileUrl | None = pyd.Field(
|
70
70
|
description="pointer to image illustrating the product no more than 10MB", default=None
|
71
71
|
)
|
72
|
-
version: pyd.PositiveInt | None = pyd.Field(
|
73
|
-
description="Version of this document. The document's issuer should increment it anytime even a single "
|
74
|
-
"character changes, as this value is used to determine the most recent version.",
|
75
|
-
example=1,
|
76
|
-
default=None,
|
77
|
-
)
|
78
72
|
declaration_url: str | None = pyd.Field(
|
79
73
|
description="Link to data object on original registrar's site",
|
80
74
|
example="https://epd-online.com/EmbeddedEpdList/Download/6029",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
openepd/__init__.py,sha256=Shkfh0Kun0YRhmRDw7LkUj2eQL3X-HnP55u2THOEALw,794
|
2
|
-
openepd/__version__.py,sha256=
|
2
|
+
openepd/__version__.py,sha256=3ww6aECKcVyN52aVZ0we7ffz83m6WDgt2jI21Jsz_lw,639
|
3
3
|
openepd/api/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
|
4
4
|
openepd/api/average_dataset/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
|
5
5
|
openepd/api/average_dataset/generic_estimate_sync_api.py,sha256=DM7i8gugUIEAutEsakEUxFjwgtKmcytkjvNAvfhVYUs,7690
|
@@ -35,9 +35,9 @@ openepd/compat/pydantic.py,sha256=DOjSixsylLqMtFAIARu50sGcT4VPXN_c473q_2JwZQ0,11
|
|
35
35
|
openepd/model/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
|
36
36
|
openepd/model/base.py,sha256=o6miTbb4d2BRQ6epN5Jn8mIMkAeoAucd_3op7aEMELc,9044
|
37
37
|
openepd/model/category.py,sha256=IQXNGQFQmFZ_H9PRONloX_UOSf1sTMDq1rM1yz8JR0Y,1639
|
38
|
-
openepd/model/common.py,sha256=
|
39
|
-
openepd/model/declaration.py,sha256=
|
40
|
-
openepd/model/epd.py,sha256=
|
38
|
+
openepd/model/common.py,sha256=hXnz2QiQDx3Z7F4BMHlHQ2iddq3OonKrveltl-nOiEI,5468
|
39
|
+
openepd/model/declaration.py,sha256=RFkjoEKD9QRzOMzd-svXVezzHZsrbPziZhME8SjmV44,8938
|
40
|
+
openepd/model/epd.py,sha256=FfU36K5B1iVYksPPvKsg8rZgaO1EKxQar9QcAjAGyiE,8731
|
41
41
|
openepd/model/factory.py,sha256=XP7eeQNW5tqwX_4hfuEb3lK6BFQDb4KB0fSN0r8-lCU,2656
|
42
42
|
openepd/model/generic_estimate.py,sha256=kBRtW6yAXgV3YkflXOI1jy8Tav5k5y8M3MPnuKPCcA4,3938
|
43
43
|
openepd/model/geography.py,sha256=eCt15zXKDtiteNwXQ675cFwBXQqSpiGpIqwDo4nkOek,42091
|
@@ -97,7 +97,7 @@ openepd/model/validation/quantity.py,sha256=kzug0MZ3Ao0zeVzN-aleyxUg5hA_7D5tNOOe
|
|
97
97
|
openepd/model/versioning.py,sha256=R_zm6rCrgF3vlJQYbpyWhirdS_Oek16cv_mvZmpuE8I,4473
|
98
98
|
openepd/patch_pydantic.py,sha256=xrkzblatmU9HBzukWkp1cPq9ZSuohoz1p0pQqVKSlKs,4122
|
99
99
|
openepd/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
100
|
-
openepd-4.11.
|
101
|
-
openepd-4.11.
|
102
|
-
openepd-4.11.
|
103
|
-
openepd-4.11.
|
100
|
+
openepd-4.11.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
101
|
+
openepd-4.11.3.dist-info/METADATA,sha256=yParHG3ytGnOqmdUk5pDgyVhPBiwwHF-NOxqjl3aZaM,8705
|
102
|
+
openepd-4.11.3.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
103
|
+
openepd-4.11.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|