]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
brain fading
authorBob Halley <halley@dnspython.org>
Wed, 3 Sep 2025 19:55:10 +0000 (12:55 -0700)
committerBob Halley <halley@dnspython.org>
Wed, 3 Sep 2025 19:55:10 +0000 (12:55 -0700)
util/make-test-project [new file with mode: 0644]

diff --git a/util/make-test-project b/util/make-test-project
new file mode 100644 (file)
index 0000000..87fe84d
--- /dev/null
@@ -0,0 +1,17 @@
+#!/usr/bin/env python3
+
+import os
+
+PROJECT = 'pyproject.toml'
+NEW_PROJECT = 'pyproject.toml-new'
+
+with open(PROJECT, 'rt') as f:
+    with open(NEW_PROJECT, 'wt') as nf:
+        for l in f.readlines():
+            l = l.rstrip()
+            if l == 'name = "dnspython"':
+                print('name = "dnspython_test"', file=nf)
+            else:
+                print(l, file=nf)
+
+os.rename(NEW_PROJECT, PROJECT)