Commits

Jason R. Coombs committed d35c151

No longer depend on paver for distribution (Python 3 support still in progress)

  • Participants
  • Parent commits 8513afb

Comments (0)

Files changed (3)

 build
 dist
 python-irclib.spec
-setup.py
 paver-minilib.zip
 import os
 import platform
 
-import setuptools
-
 import paver.easy
 import paver.setuputils
 
-def read_long_description():
-    with open('README') as f:
-        data = f.read()
-    return data
+from setup import setup_params
 
-paver.setuputils.setup(
-    name="irc",
-    description="IRC (Internet Relay Chat) protocol client library for Python",
-    long_description=read_long_description(),
-    use_hg_version=True,
-    packages=setuptools.find_packages(),
-    author="Joel Rosdahl",
-    author_email="joel@rosdahl.net",
-    maintainer="Jason R. Coombs",
-    maintainer_email="jaraco@jaraco.com",
-    url="http://python-irclib.sourceforge.net",
-    classifiers = [
-        "Development Status :: 5 - Production/Stable",
-        "Intended Audience :: Developers",
-        "Programming Language :: Python :: 2.6",
-        "Programming Language :: Python :: 2.7",
-    ],
-    setup_requires=[
-        'hgtools',
-    ],
-    use_2to3=True,
-    # TODO: skip NextFixer
-)
+paver.setuputils.setup(**setup_params)
 
 @paver.easy.task
 def upload_project_web():
+import setuptools
+
+def read_long_description():
+    with open('README') as f:
+        data = f.read()
+    return data
+
+setup_params = dict(
+    name="irc",
+    description="IRC (Internet Relay Chat) protocol client library for Python",
+    long_description=read_long_description(),
+    use_hg_version=True,
+    packages=setuptools.find_packages(),
+    author="Joel Rosdahl",
+    author_email="joel@rosdahl.net",
+    maintainer="Jason R. Coombs",
+    maintainer_email="jaraco@jaraco.com",
+    url="http://python-irclib.sourceforge.net",
+    classifiers = [
+        "Development Status :: 5 - Production/Stable",
+        "Intended Audience :: Developers",
+        "Programming Language :: Python :: 2.6",
+        "Programming Language :: Python :: 2.7",
+    ],
+    setup_requires=[
+        'hgtools',
+    ],
+    use_2to3=True,
+    # TODO: skip NextFixer
+)
+
+if __name__ == '__main__':
+	setuptools.setup(**setup_params)