MCPcopy Create free account
hub / github.com/apache/fory / _update_csharp_readme_package_version

Function _update_csharp_readme_package_version

ci/release.py:912–922  ·  view source on GitHub ↗
(lines, v: str)

Source from the content-addressed store, hash-verified

910
911
912def _update_csharp_readme_package_version(lines, v: str):
913 for index, line in enumerate(lines):
914 if "PackageReference" not in line or "Apache.Fory" not in line:
915 continue
916 lines[index] = re.sub(
917 r'(<PackageReference\s+Include="Apache\.Fory"\s+Version=")[^"]+(")',
918 r"\g<1>" + v + r"\2",
919 line,
920 )
921 return lines
922 raise ValueError("No Apache.Fory PackageReference version snippet found")
923
924
925def _update_swift_readme_dependency_version(lines, v: str):

Callers

nothing calls this directly

Calls 1

subMethod · 0.45

Tested by

no test coverage detected