We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbbb345 commit c56ac32Copy full SHA for c56ac32
python/private/version.bzl
@@ -596,7 +596,10 @@ def _parse_epoch(value):
596
if not value:
597
return 0
598
599
- return int(value)
+ if not value.endswith("!"):
600
+ fail("epoch string segment needs to end with '!', got: {}".format(value))
601
+
602
+ return int(value[:-1])
603
604
def _parse_release(value):
605
return tuple([int(d) for d in value.split(".")])
tests/pypi/pep508/evaluate_tests.bzl
@@ -338,6 +338,7 @@ def _test_ordering(env):
338
"1.0.post456",
339
"1.0.15",
340
"1.1.dev1",
341
+ "1!0.1",
342
]
343
344
for lower, higher in zip(want[:-1], want[1:]):
0 commit comments