[pypy-commit] pypy apptest-file: remove one-shot helper script

rlamy pypy.commits at gmail.com
Wed Jul 31 12:35:47 EDT 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: apptest-file
Changeset: r97039:d8e5b6784927
Date: 2019-07-31 17:32 +0100
http://bitbucket.org/pypy/pypy/changeset/d8e5b6784927/

Log:	remove one-shot helper script

diff --git a/rename_moduledef.py b/rename_moduledef.py
deleted file mode 100644
--- a/rename_moduledef.py
+++ /dev/null
@@ -1,22 +0,0 @@
-import py
-import subprocess
-
-here = py.path.local('.')
-moddir = here / 'pypy' / 'module'
-blacklist = ['test_lib_pypy']
-modules = [path for path in moddir.listdir() if
-    path.isdir() and (path / '__init__.py').isfile() and
-        path.basename not in blacklist]
-
-
-def doit(p):
-   if not (p / '__init__.py').isfile():
-       return
-   init = (p / '__init__.py').relto(here)
-   target = (p / 'moduledef.py').relto(here)
-   subprocess.call(['hg', 'mv', init, target])
-   subprocess.call(['touch', init])
-   subprocess.call(['hg', 'add', init])
-
-for p in modules:
-    doit(p)


More information about the pypy-commit mailing list