From edbae30f83f370f9d2f1e43d02e3793081e1cd25 Mon Sep 17 00:00:00 2001 From: Ben Hoyt Date: Mon, 20 Feb 2017 11:56:10 -0500 Subject: [PATCH] Add Python 3.6 to metadata, better long_description, bump up version number --- scandir.py | 2 +- setup.py | 15 +++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/scandir.py b/scandir.py index 10fe5c7..15b9fe7 100644 --- a/scandir.py +++ b/scandir.py @@ -41,7 +41,7 @@ warnings.warn("scandir can't find the compiled _scandir C module " "or ctypes, using slow generic fallback") -__version__ = '1.4' +__version__ = '1.5' __all__ = ['scandir', 'walk'] # Windows FILE_ATTRIBUTE constants for interpreting the diff --git a/setup.py b/setup.py index 4ac6a39..0ff4149 100644 --- a/setup.py +++ b/setup.py @@ -19,6 +19,9 @@ else: raise Exception("Couldn't find version in setup.py") +with open('README.rst') as f: + long_description = f.read() + setup( name='scandir', version=version, @@ -27,16 +30,7 @@ url='https://github.com/benhoyt/scandir', license='New BSD License', description='scandir, a better directory iterator and faster os.walk()', - long_description="scandir() is a generator version of os.listdir() that returns an " - "iterator over files in a directory, and also exposes the extra " - "information most OSes provide while iterating files in a directory " - "(such as type and stat information).\n" - "\n" - "This module also includes a version of os.walk() that uses scandir() " - "to speed it up significantly.\n" - "\n" - "NOTE: If you're using Python version 3.5+, os.scandir() and the speed " - "improvements to os.walk() are already available in the standard library.", + long_description=long_description, py_modules=['scandir'], ext_modules=[Extension('_scandir', ['_scandir.c'])], classifiers=[ @@ -56,6 +50,7 @@ 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: Implementation :: CPython', ] )