Skip to content

Commit 4e22c39

Browse files
author
dzsekijo
committed
make setup.py PyPI compatible
1 parent fdc0577 commit 4e22c39

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

setup.py

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
1414

1515
from fuseparts import __version__
1616

17+
classifiers = """\
18+
Development Status :: 4 - Beta
19+
Intended Audience :: Developers
20+
License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)
21+
Operating System :: POSIX
22+
Programming Language :: C
23+
Programming Language :: Python
24+
Topic :: System :: Filesystems
25+
"""
26+
1727
# write default fuse.pc path into environment if PKG_CONFIG_PATH is unset
1828
#if not os.environ.has_key('PKG_CONFIG_PATH'):
1929
# os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
@@ -62,10 +72,19 @@
6272
libraries = libsonly)
6373

6474
# data_files = []
75+
if sys.version_info < (2, 3):
76+
_setup = setup
77+
def setup(**kwargs):
78+
if kwargs.has_key("classifiers"):
79+
del kwargs["classifiers"]
80+
_setup(**kwargs)
6581
setup (name = 'fuse-python',
6682
version = __version__,
6783
description = 'Bindings for FUSE',
68-
url = 'http://fuse.sourceforge.net',
84+
classifiers = filter(None, classifiers.split("\n")),
85+
license = 'LGPL',
86+
platforms = ['posix'],
87+
url = 'http://fuse.sourceforge.net/wiki/index.php/FusePython',
6988
author = 'Jeff Epler',
7089
author_email = 'jepler@unpythonic.dhs.org',
7190
maintainer = 'Csaba Henk',

0 commit comments

Comments
 (0)