setup: use setuptools, seems standard now
[rarfile.git] / setup.py
blob8a3dabaecfdb651ccf8573219576e61e94a451e0
1 """Setup script for rarfile.
2 """
4 from setuptools import setup
6 import re
8 vrx = r"""^__version__ *= *['"]([^'"]+)['"]"""
9 src = open("rarfile.py").read()
10 ver = re.search(vrx, src, re.M).group(1)
12 ldesc = open("README.rst").read().strip()
13 sdesc = ldesc.split('\n')[0].split(' - ')[1].strip()
15 setup(
16 name = "rarfile",
17 version = ver,
18 description = sdesc,
19 long_description = ldesc,
20 author = "Marko Kreen",
21 license = "ISC",
22 author_email = "markokr@gmail.com",
23 url = "https://github.com/markokr/rarfile",
24 py_modules = ['rarfile'],
25 keywords = ['rar', 'unrar', 'archive'],
26 classifiers = [
27 "Development Status :: 5 - Production/Stable",
28 "Intended Audience :: Developers",
29 "License :: OSI Approved :: ISC License (ISCL)",
30 "Operating System :: OS Independent",
31 "Programming Language :: Python :: 2",
32 "Programming Language :: Python :: 3",
33 "Topic :: Software Development :: Libraries :: Python Modules",
34 "Topic :: System :: Archiving :: Compression",