summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2010-03-05 19:06:29 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2010-03-05 19:06:29 -0500
commite4c495a8b6d9727de99b35bddf70f2c942e7f8b9 (patch)
tree0b41afa08d135b80f55195eb9cefb4a8bd643fa7
parent234a10d5bc133f9963db58fd4c08715fe43c2b94 (diff)
download2to3c-master.zip
2to3c-master.tar.gz
2to3c-master.tar.xz
Rename "fixes" -> "lib2to3c"; start writing a setup.pyHEADmaster
-rwxr-xr-x2to3c6
-rw-r--r--lib2to3c/RO.cocci (renamed from fixes/RO.cocci)0
-rw-r--r--lib2to3c/__init__.py (renamed from fixes/__init__.py)2
-rw-r--r--lib2to3c/init-module.cocci (renamed from fixes/init-module.cocci)0
-rw-r--r--lib2to3c/initmodule.py (renamed from fixes/initmodule.py)2
-rw-r--r--lib2to3c/int-to-long.cocci (renamed from fixes/int-to-long.cocci)0
-rw-r--r--lib2to3c/ob_type.cocci (renamed from fixes/ob_type.cocci)0
-rw-r--r--lib2to3c/repr.cocci (renamed from fixes/repr.cocci)0
-rw-r--r--lib2to3c/typeobject.py (renamed from fixes/typeobject.py)2
-rw-r--r--setup.py12
10 files changed, 18 insertions, 6 deletions
diff --git a/2to3c b/2to3c
index ae3233a..2587a99 100755
--- a/2to3c
+++ b/2to3c
@@ -1,9 +1,9 @@
#!/usr/bin/env python
def get_fixers():
- from fixes.typeobject import FixTypeobjectInitializers
- from fixes import CocciFix
- from fixes.initmodule import FixInitModule
+ from lib2to3c.typeobject import FixTypeobjectInitializers
+ from lib2to3c import CocciFix
+ from lib2to3c.initmodule import FixInitModule
fixes = [FixTypeobjectInitializers()]
for filename in ['RO.cocci', 'int-to-long.cocci', 'ob_type.cocci',
'repr.cocci']:
diff --git a/fixes/RO.cocci b/lib2to3c/RO.cocci
index 14e0229..14e0229 100644
--- a/fixes/RO.cocci
+++ b/lib2to3c/RO.cocci
diff --git a/fixes/__init__.py b/lib2to3c/__init__.py
index afc578b..8d545ae 100644
--- a/fixes/__init__.py
+++ b/lib2to3c/__init__.py
@@ -21,7 +21,7 @@ class CocciFix(Fix):
self.filename = filename
def get_script_path(self):
- return os.path.join('fixes', self.filename)
+ return os.path.join('lib2to3c', self.filename)
def transform(self, string):
# spatch seems to require the input and output to be actual files,
diff --git a/fixes/init-module.cocci b/lib2to3c/init-module.cocci
index ca3bcc9..ca3bcc9 100644
--- a/fixes/init-module.cocci
+++ b/lib2to3c/init-module.cocci
diff --git a/fixes/initmodule.py b/lib2to3c/initmodule.py
index c106079..c890a9e 100644
--- a/fixes/initmodule.py
+++ b/lib2to3c/initmodule.py
@@ -1,4 +1,4 @@
-from fixes import CocciFix, FixTest
+from lib2to3c import CocciFix, FixTest
class FixInitModule(CocciFix):
def __init__(self):
CocciFix.__init__(self, 'init-module.cocci')
diff --git a/fixes/int-to-long.cocci b/lib2to3c/int-to-long.cocci
index 110d97d..110d97d 100644
--- a/fixes/int-to-long.cocci
+++ b/lib2to3c/int-to-long.cocci
diff --git a/fixes/ob_type.cocci b/lib2to3c/ob_type.cocci
index daf6d96..daf6d96 100644
--- a/fixes/ob_type.cocci
+++ b/lib2to3c/ob_type.cocci
diff --git a/fixes/repr.cocci b/lib2to3c/repr.cocci
index dfa1ef4..dfa1ef4 100644
--- a/fixes/repr.cocci
+++ b/lib2to3c/repr.cocci
diff --git a/fixes/typeobject.py b/lib2to3c/typeobject.py
index dde1f74..56a9744 100644
--- a/fixes/typeobject.py
+++ b/lib2to3c/typeobject.py
@@ -35,7 +35,7 @@ def fixup_typeobject_initializers(content):
else:
return content
-from fixes import Fix, FixTest
+from lib2to3c import Fix, FixTest
class FixTypeobjectInitializers(Fix):
def transform(self, string):
return fixup_typeobject_initializers(string)
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..4e0a3e3
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,12 @@
+from setuptools import setup, find_packages
+
+setup(name="2to3c",
+ version="0.1",
+ description="",
+ author="David Malcolm",
+ author_email="dmalcolm@redhat.com",
+ packages=find_packages(exclude='tests'),
+ url="http://fedorahosted.org/2to3c/",
+ scripts=['2to3c']
+ )
+