Skip to content

Commit

Permalink
Add Python 3.6 to metadata, better long_description, bump up version …
Browse files Browse the repository at this point in the history
…number
  • Loading branch information
benhoyt committed Feb 20, 2017
1 parent b763a94 commit edbae30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion scandir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 5 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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=[
Expand All @@ -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',
]
)

0 comments on commit edbae30

Please sign in to comment.