Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit edbae30

Browse files
committed
Add Python 3.6 to metadata, better long_description, bump up version number
1 parent b763a94 commit edbae30

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

scandir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
warnings.warn("scandir can't find the compiled _scandir C module "
4242
"or ctypes, using slow generic fallback")
4343

44-
__version__ = '1.4'
44+
__version__ = '1.5'
4545
__all__ = ['scandir', 'walk']
4646

4747
# Windows FILE_ATTRIBUTE constants for interpreting the

setup.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
else:
2020
raise Exception("Couldn't find version in setup.py")
2121

22+
with open('README.rst') as f:
23+
long_description = f.read()
24+
2225
setup(
2326
name='scandir',
2427
version=version,
@@ -27,16 +30,7 @@
2730
url='https://github.com/benhoyt/scandir',
2831
license='New BSD License',
2932
description='scandir, a better directory iterator and faster os.walk()',
30-
long_description="scandir() is a generator version of os.listdir() that returns an "
31-
"iterator over files in a directory, and also exposes the extra "
32-
"information most OSes provide while iterating files in a directory "
33-
"(such as type and stat information).\n"
34-
"\n"
35-
"This module also includes a version of os.walk() that uses scandir() "
36-
"to speed it up significantly.\n"
37-
"\n"
38-
"NOTE: If you're using Python version 3.5+, os.scandir() and the speed "
39-
"improvements to os.walk() are already available in the standard library.",
33+
long_description=long_description,
4034
py_modules=['scandir'],
4135
ext_modules=[Extension('_scandir', ['_scandir.c'])],
4236
classifiers=[
@@ -56,6 +50,7 @@
5650
'Programming Language :: Python :: 3.3',
5751
'Programming Language :: Python :: 3.4',
5852
'Programming Language :: Python :: 3.5',
53+
'Programming Language :: Python :: 3.6',
5954
'Programming Language :: Python :: Implementation :: CPython',
6055
]
6156
)

0 commit comments

Comments
 (0)