ci: enable pypi uploads
[rarfile.git] / setup.py
blobdac58aff78c1d77ff5b782c37e3a2bdc56b2dec1
1 """Setup script for rarfile.
2 """
4 import re
6 from setuptools import setup
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 :: 3",
32 "Topic :: Software Development :: Libraries :: Python Modules",
33 "Topic :: System :: Archiving :: Compression",