]> git.k1024.org Git - pyxattr.git/blob - setup.py
Release version 0.7.2
[pyxattr.git] / setup.py
1 #!/usr/bin/env python3
2
3 import distutils
4 import platform
5 try:
6   from setuptools import setup, Extension
7 except ImportError:
8   from distutils.core import setup, Extension
9
10 long_desc = """This is a C extension module for Python which
11 implements extended attributes manipulation. It is a wrapper on top
12 of the attr C library - see attr(5)."""
13 version = "0.7.2"
14 author = "Iustin Pop"
15 author_email = "iustin@k1024.org"
16 libraries = []
17 macros = [
18     ("_XATTR_VERSION", '"%s"' % version),
19     ("_XATTR_AUTHOR", '"%s"' % author),
20     ("_XATTR_EMAIL", '"%s"' % author_email),
21     ]
22 setup(name = "pyxattr",
23       version = version,
24       description = "Filesystem extended attributes for python",
25       long_description = long_desc,
26       author = author,
27       author_email = author_email,
28       url = "http://pyxattr.k1024.org/",
29       download_url = "http://pyxattr.k1024.org/downloads/",
30       license = "LGPL",
31       ext_modules = [Extension("xattr", ["xattr.c"],
32                                libraries=libraries,
33                                define_macros=macros,
34                                extra_compile_args=["-Wall", "-Werror", "-Wsign-compare"],
35                                )],
36       platforms = ["Linux"],
37       python_requires = ">=3.4",
38       project_urls={
39         "Bug Tracker": "https://github.com/iustin/pyxattr/issues",
40       },
41       classifiers = [
42         "Development Status :: 5 - Production/Stable",
43         "Intended Audience :: Developers",
44         "License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
45         "Programming Language :: Python :: 3 :: Only",
46         "Programming Language :: Python :: Implementation :: CPython",
47         "Programming Language :: Python :: Implementation :: PyPy",
48         "Operating System :: MacOS :: MacOS X",
49         "Operating System :: POSIX :: Linux",
50         "Topic :: Software Development :: Libraries :: Python Modules",
51         "Topic :: System :: Filesystems",
52       ]
53       )