|
19 | 19 | else:
|
20 | 20 | raise Exception("Couldn't find version in setup.py")
|
21 | 21 |
|
| 22 | +with open('README.rst') as f: |
| 23 | + long_description = f.read() |
| 24 | + |
22 | 25 | setup(
|
23 | 26 | name='scandir',
|
24 | 27 | version=version,
|
|
27 | 30 | url='https://github.com/benhoyt/scandir',
|
28 | 31 | license='New BSD License',
|
29 | 32 | 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, |
40 | 34 | py_modules=['scandir'],
|
41 | 35 | ext_modules=[Extension('_scandir', ['_scandir.c'])],
|
42 | 36 | classifiers=[
|
|
56 | 50 | 'Programming Language :: Python :: 3.3',
|
57 | 51 | 'Programming Language :: Python :: 3.4',
|
58 | 52 | 'Programming Language :: Python :: 3.5',
|
| 53 | + 'Programming Language :: Python :: 3.6', |
59 | 54 | 'Programming Language :: Python :: Implementation :: CPython',
|
60 | 55 | ]
|
61 | 56 | )
|
0 commit comments