ci: add 3.7 and 3.11
[rarfile.git] / setup.py
blobf2765ebe86dc71bff8b974b8730ffa39c077fe5c
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 python_requires=">=3.6",
27 classifiers=[
28 "Development Status :: 5 - Production/Stable",
29 "Intended Audience :: Developers",
30 "License :: OSI Approved :: ISC License (ISCL)",
31 "Operating System :: OS Independent",
32 "Programming Language :: Python :: 3",
33 "Topic :: Software Development :: Libraries :: Python Modules",
34 "Topic :: System :: Archiving :: Compression",