-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
69 lines (63 loc) · 2.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env python
import os.path
from io import open # Remove this import when dropping Python 2 support
from setuptools import setup, find_packages
with open("README.md", 'r', encoding="utf8") as f:
long_description = f.read()
def get_version():
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "PySquashfsImage/__init__.py")) as f:
for line in f:
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
raise RuntimeError("Unable to find version string.")
setup(
name='PySquashfsImage',
version=get_version(),
description='Squashfs image parser',
long_description=long_description,
long_description_content_type="text/markdown",
author='Matteo Mattei; Nicola Ponzeveroni;',
author_email='[email protected]',
url='https://github.com/matteomattei/PySquashfsImage',
packages=find_packages(),
keywords=["filesystem", "parser", "squash", "squashfs"],
python_requires=">=2.7, !=3.0.*",
install_requires=[
"argparse;python_version == '3.1'",
"enum34;python_version < '3.4'",
"python-dateutil;python_version < '3.6'"
],
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.1",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Filesystems",
"Topic :: Utilities",
],
entry_points={
"console_scripts": [
"pysquashfs = PySquashfsImage.__main__:main",
]
}
)