chore: cleanup

This commit is contained in:
Gergő Jedlicska
2025-01-19 21:30:22 +01:00
parent e0b48f6123
commit ee97f3b718
3 changed files with 5 additions and 2112 deletions
-31
View File
@@ -1,31 +0,0 @@
import re
import sys
def patch(tag):
print(f"Patching version: {tag}")
with open("pyproject.toml") as f:
lines = f.readlines()
if "version" not in lines[2]:
raise Exception("Invalid pyproject.toml. Could not patch version.")
lines[2] = f'version = "{tag}"\n'
with open("pyproject.toml", "w") as file:
file.writelines(lines)
def main():
if len(sys.argv) < 2:
return
tag = sys.argv[1]
if not re.match(r"[0-9]+(\.[0-9]+)*$", tag):
raise ValueError(f"Invalid tag provided: {tag}")
patch(tag)
if __name__ == "__main__":
main()
Generated
-2075
View File
File diff suppressed because it is too large Load Diff
+5 -6
View File
@@ -1,15 +1,9 @@
# [tool.poetry]
[project]
dynamic = ["version"]
name = "specklepy"
# version = "2.17.14"
description = "The Python SDK for Speckle 2.0"
readme = "README.md"
authors = [{ name = "Speckle Systems", email = "devops@speckle.systems" }]
# packages = [
# { include = "specklepy", from = "src" },
# { include = "speckle_automate", from = "src" },
# ]
license = { text = "Apache-2.0" }
requires-python = ">=3.10.0, <4.0"
dependencies = [
@@ -44,6 +38,11 @@ repository = "https://github.com/specklesystems/specklepy"
documentation = "https://speckle.guide/dev/py-examples.html"
homepage = "https://speckle.systems/"
[build-system]
requires = ["setuptools>=64", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.commitizen]
name = "cz_conventional_commits"