summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-x[-rw-r--r--]setup.py99
1 files changed, 56 insertions, 43 deletions
diff --git a/setup.py b/setup.py
index d0b87b8..6f6a6bd 100644..100755
--- a/setup.py
+++ b/setup.py
@@ -1,45 +1,58 @@
-# urlgrabber distutils setup
-import re as _re
-import urlgrabber as _urlgrabber
+from setuptools import setup
-name = "urlgrabber"
-description = "A high-level cross-protocol url-grabber"
-long_description = _urlgrabber.__doc__
-license = "LGPL"
-version = _urlgrabber.__version__
-_authors = _re.split(r',\s+', _urlgrabber.__author__)
-author = ', '.join([_re.sub(r'\s+<.*', r'', _) for _ in _authors])
-author_email = ', '.join([_re.sub(r'(^.*<)|(>.*$)', r'', _) for _ in _authors])
-url = _urlgrabber.__url__
+pkg_name = "urlgrabber"
+pkg_version = "4.1.0"
-packages = ['urlgrabber']
-package_dir = {'urlgrabber':'urlgrabber'}
-scripts = ['scripts/urlgrabber']
-data_files = [('share/doc/' + name + '-' + version,
- ['README','LICENSE', 'TODO', 'ChangeLog'])]
-options = { 'clean' : { 'all' : 1 } }
-classifiers = [
- 'Development Status :: 4 - Beta',
- 'Environment :: Console',
- 'Environment :: Web Environment',
- 'Intended Audience :: Developers',
- 'Intended Audience :: System Administrators',
- 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)',
- 'Operating System :: POSIX',
- 'Operating System :: POSIX :: Linux',
- 'Programming Language :: Python',
- 'Topic :: Internet :: File Transfer Protocol (FTP)',
- 'Topic :: Internet :: WWW/HTTP',
- 'Topic :: Software Development :: Libraries :: Python Modules'
- ]
-
-# load up distutils
-if __name__ == '__main__':
- config = globals().copy()
- keys = config.keys()
- for k in keys:
- #print '%-20s -> %s' % (k, config[k])
- if k.startswith('_'): del config[k]
-
- from distutils.core import setup
- setup(**config)
+setup(
+ name=pkg_name,
+ version=pkg_version,
+ license="LGPLv2+",
+ description="A high-level cross-protocol url-grabber",
+ keywords="urlgrabber yum http ftp",
+ # From https://pypi.python.org/pypi?%3Aaction=list_classifiers
+ classifiers=[
+ # Development status
+ "Development Status :: 5 - Production/Stable",
+ # Target audience
+ "Intended Audience :: Developers",
+ "Intended Audience :: System Administrators",
+ # Type of software
+ "Topic :: Internet :: File Transfer Protocol (FTP)",
+ "Topic :: Internet :: WWW/HTTP",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ # Kind of software
+ "Environment :: Console",
+ "Environment :: Web Environment",
+ # License (must match license field)
+ "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
+ # Operating systems supported
+ "Operating System :: POSIX",
+ "Operating System :: POSIX :: Linux",
+ # Supported Python versions
+ "Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 2.6",
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: 3.7",
+ ],
+ url="http://urlgrabber.baseurl.org/",
+ author="Michael D. Stenner, Ryan Tomayko, Seth Vidal, Zdenek Pavlas",
+ author_email="mstenner@linux.duke.edu, rtomayko@naeblis.cx, skvidal@fedoraproject.org, zpavlas@redhat.com",
+ maintainer="Neal Gompa",
+ maintainer_email="ngompa@fedoraproject.org",
+ packages=["urlgrabber"],
+ package_dir = {'urlgrabber':'urlgrabber'},
+ include_package_data=True,
+ install_requires=[
+ "pycurl",
+ "six",
+ "setuptools",
+ ],
+ scripts = ['scripts/urlgrabber'],
+ data_files = [
+ ('share/doc/' + pkg_name + '-' + pkg_version, ['README','LICENSE', 'TODO', 'ChangeLog']),
+ ('libexec', ['scripts/urlgrabber-ext-down']),
+ ],
+)