[telepathy-python/master] Remove unused files.

Jonny Lamb jonny.lamb at collabora.co.uk
Tue Aug 25 11:07:38 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 MANIFEST.in               |   12 ---
 _boring                   |    6 --
 setup.py                  |  217 ---------------------------------------------
 3 files changed, 0 insertions(+), 235 deletions(-)
 delete mode 100644 MANIFEST.in
 delete mode 100644 _boring
 delete mode 100644 examples/.git-darcs-dir
 delete mode 100644 setup.py
 delete mode 100644 src/.git-darcs-dir
 delete mode 100644 src/client/.git-darcs-dir
 delete mode 100644 src/server/.git-darcs-dir
 delete mode 100644 tools/.git-darcs-dir

diff --git a/MANIFEST.in b/MANIFEST.in
deleted file mode 100644
index a364540..0000000
--- a/MANIFEST.in
+++ /dev/null
@@ -1,12 +0,0 @@
-include AUTHORS
-include COPYING
-include MANIFEST.in
-include NEWS
-include README
-include examples/README
-include telepathy-inspect
-recursive-include examples *.py
-recursive-include spec *.xml
-recursive-include tools *.xsl
-include src/utils.py
-include src/server/channelmanager.py
diff --git a/_boring b/_boring
deleted file mode 100644
index d2b26a4..0000000
--- a/_boring
+++ /dev/null
@@ -1,6 +0,0 @@
-MANIFEST
-dist
-build
-\.py[co]$
-^debian($|/)
-\.[^/]+\.sw.$
diff --git a/examples/.git-darcs-dir b/examples/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
diff --git a/setup.py b/setup.py
deleted file mode 100644
index 074b0c3..0000000
--- a/setup.py
+++ /dev/null
@@ -1,217 +0,0 @@
-#!/usr/bin/python
-
-import os
-import sys
-from distutils import log
-from distutils.command.build import build as _build
-from distutils.command.sdist import sdist
-from distutils.command.build_py import build_py
-from distutils.core import setup
-from distutils.dep_util import newer_group
-from distutils import dir_util
-from distutils.spawn import spawn
-
-# can't import telepathy._version because that imports telepathy,
-# which needs telepathy._generated, which we haven't yet built...
-loc = {}
-execfile(os.path.join(os.curdir, 'src', '_version.py'),
-         globals(), loc)
-__version__ = loc['__version__']
-
-
-def ls_spec_xml():
-    names = os.listdir(os.path.join(os.curdir, 'spec'))
-    return [os.path.join(os.curdir, 'spec', name) for name in names]
-
-def ls_spec_basenames():
-    names = os.listdir(os.path.join(os.curdir, 'spec'))
-    for name in names:
-        assert name.endswith('.xml')
-    # we only want the interfaces, which start with a capital letter
-    return [name[:-4] for name in names if name[0].upper() == name[0]]
-
-
-XSLTPROC = ['xsltproc', '--nonet', '--novalid', '--xinclude']
-ALL_SPEC_XML = ls_spec_xml()
-SPEC_BASENAMES = ls_spec_basenames()
-
-class build_empty_py(build_py):
-    def finalize_options(self):
-        build_py.finalize_options(self)
-        self.packages = []
-        self.py_modules = ['telepathy._generated']
-        self.package_data = []
-        self.data_files = []
-
-    def find_modules(self):
-        return [('telepathy._generated', '__init__', '')]
-
-    def build_module(self, module, module_file, package):
-        # "module_file" is actually the empty string
-        package = package.split('.')
-        outfile = self.get_module_outfile(self.build_lib, package, module)
-        dir = os.path.dirname(outfile)
-        log.info('Generating empty %s' % outfile)
-        self.mkpath(dir)
-        if not self.dry_run:
-            f = file(outfile, 'w')
-            f.write('# Placeholder for package')
-            f.close()
-
-class build_gen_py_ifaces(build_py):
-    def finalize_options(self):
-        build_py.finalize_options(self)
-        self.packages = []
-        self.py_modules = ['telepathy._generated.%s' % name
-                           for name in SPEC_BASENAMES]
-        self.package_data = []
-        self.data_files = []
-        self.stylesheet = os.path.join(os.curdir, 'tools',
-                                       'spec-to-python.xsl')
-
-    def find_modules(self):
-        return [('telepathy._generated', name,
-                 os.path.join(os.curdir, 'spec', '%s.xml' % name))
-                for name in SPEC_BASENAMES]
-
-    def build_module(self, module, module_file, package):
-        # "module_file" is actually the XML
-        package = package.split('.')
-        outfile = self.get_module_outfile(self.build_lib, package, module)
-        dir = os.path.dirname(outfile)
-        self.mkpath(dir)
-        return self.run_xsl(module_file, outfile)
-
-    def run_xsl(self, xml, outfile):
-        if newer_group([xml, self.stylesheet], outfile):
-            command = XSLTPROC + ['-o', outfile,
-                                  self.stylesheet,
-                                  xml]
-            log.info('Generating %s from %s using %s' % (outfile, xml,
-                                                         self.stylesheet))
-            spawn(command, dry_run=self.dry_run)
-
-
-class build_gen_py(build_py):
-    def finalize_options(self):
-        build_py.finalize_options(self)
-        self.packages = []
-        self.py_modules = ['telepathy._generated.interfaces',
-                           'telepathy._generated.errors',
-                           'telepathy._generated.constants']
-        self.package_data = []
-        self.data_files = []
-
-    def find_modules(self):
-        return [('telepathy._generated', 'interfaces',
-                 'tools/python-interfaces-generator.xsl'),
-                ('telepathy._generated', 'constants',
-                 'tools/python-constants-generator.xsl'),
-                ('telepathy._generated', 'errors',
-                 'tools/python-errors-generator.xsl')]
-
-    def build_module(self, module, module_file, package):
-        # "module_file" is actually the stylesheet
-        package = package.split('.')
-        outfile = self.get_module_outfile(self.build_lib, package, module)
-        dir = os.path.dirname(outfile)
-        self.mkpath(dir)
-        return self.run_xsl(module_file, outfile)
-
-    def run_xsl(self, stylesheet, outfile):
-        if newer_group(ALL_SPEC_XML + [stylesheet], outfile):
-            command = XSLTPROC + ['-o', outfile,
-                                  stylesheet,
-                                  os.path.join(os.curdir, 'spec', 'all.xml')]
-            log.info('Generating %s using %s' % (outfile, stylesheet))
-            spawn(command, dry_run=self.dry_run)
-
-
-class build(_build):
-    sub_commands = (_build.sub_commands
-                    + [('build_gen_py', (lambda self: True)),
-                       ('build_gen_py_ifaces', (lambda self: True)),
-                       ('build_empty_py', (lambda self: True))])
-
-class distcheck(sdist):
-
-    def run(self):
-        sdist.run(self)
-
-        if self.dry_run:
-            return
-
-        base_dir = self.distribution.get_fullname()
-        distcheck_dir = os.path.join(self.dist_dir, 'distcheck')
-        self.mkpath(distcheck_dir)
-        self.mkpath(os.path.join(distcheck_dir, 'again'))
-
-        cwd = os.getcwd()
-        os.chdir(distcheck_dir)
-
-        if os.path.isdir(base_dir):
-            dir_util.remove_tree(base_dir)
-
-        for archive in self.archive_files:
-            if archive.endswith('.tar.gz'):
-                cmd = ['tar', '-xzf',
-                       os.path.join(os.pardir, os.pardir, archive), base_dir]
-                spawn(cmd)
-                break
-        else:
-            raise ValueError('No supported archives were created')
-
-        # make sdist again, then make clean
-        os.chdir(cwd)
-        os.chdir(os.path.join(distcheck_dir, base_dir))
-        cmd = [sys.executable, 'setup.py', 'sdist', '--formats', 'gztar']
-        spawn(cmd)
-
-        # make sure the two tarballs have the same contents
-        os.chdir(cwd)
-        os.chdir(os.path.join(distcheck_dir, 'again'))
-        cmd = ['tar', '-xzf',
-               os.path.join(os.pardir, base_dir, 'dist', base_dir + '.tar.gz'),
-               base_dir]
-        spawn(cmd)
-
-        os.chdir(cwd)
-        os.chdir(os.path.join(distcheck_dir, base_dir))
-        dir_util.remove_tree('dist')
-        os.remove('MANIFEST')
-
-        os.chdir(cwd)
-        cmd = ['diff', '-ru',
-               os.path.join(distcheck_dir, base_dir),
-               os.path.join(distcheck_dir, 'again', base_dir)]
-        spawn(cmd)
-
-        # make sure the whole spec was included
-        from xml.dom.minidom import parse
-        dom = parse(os.path.join(distcheck_dir, base_dir, 'spec', 'all.xml'))
-        inclusions = dom.getElementsByTagName('xi:include')
-        for inclusion in inclusions:
-            filename = inclusion.getAttribute('href')
-            if not os.path.isfile(os.path.join(distcheck_dir, base_dir, 'spec',
-                                               filename)):
-                if not inclusion.getElementsByTagName('xi:fallback'):
-                    raise AssertionError('%s was not packaged' % filename)
-        dom.unlink()
-
-
-setup(
-    cmdclass={'build': build,
-              'build_gen_py': build_gen_py,
-              'build_empty_py': build_empty_py,
-              'distcheck': distcheck,
-              'build_gen_py_ifaces': build_gen_py_ifaces},
-    name='telepathy-python',
-    version=__version__,
-    package_dir={'telepathy': 'src'},
-    packages=[
-        'telepathy',
-        'telepathy.client',
-        'telepathy.server'
-        ],
-    )
-
diff --git a/src/.git-darcs-dir b/src/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
diff --git a/src/client/.git-darcs-dir b/src/client/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
diff --git a/src/server/.git-darcs-dir b/src/server/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
diff --git a/tools/.git-darcs-dir b/tools/.git-darcs-dir
deleted file mode 100644
index e69de29..0000000
-- 
1.5.6.5




More information about the telepathy-commits mailing list