We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f71aa4 commit 652cc55Copy full SHA for 652cc55
1 file changed
util/make-test-project
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env python3
2
+
3
+import os
4
5
+PROJECT = 'pyproject.toml'
6
+NEW_PROJECT = 'pyproject.toml-new'
7
8
+with open(PROJECT, 'rt') as f:
9
+ with open(NEW_PROJECT, 'wt') as nf:
10
+ for l in f.readlines():
11
+ l = l.rstrip()
12
+ if l == 'name = "dnspython"':
13
+ print('name = "dnspython_test"', file=nf)
14
+ else:
15
+ print(l, file=nf)
16
17
+os.rename(NEW_PROJECT, PROJECT)
0 commit comments