|
1 | 1 | import os |
| 2 | + |
2 | 3 | from setuptools import setup |
3 | 4 |
|
4 | 5 | kwds = {} |
5 | 6 |
|
6 | 7 | # Read the long description from the README.txt |
7 | 8 | thisdir = os.path.abspath(os.path.dirname(__file__)) |
8 | | -f = open(os.path.join(thisdir, 'README.txt')) |
9 | | -kwds['long_description'] = f.read() |
10 | | -f.close() |
| 9 | +with open(os.path.join(thisdir, 'README.txt')) as f: |
| 10 | + kwds['long_description'] = f.read() |
11 | 11 |
|
12 | 12 |
|
13 | 13 | setup( |
14 | | - name = 'grin', |
15 | | - version = '1.2.1', |
16 | | - author = 'Robert Kern', |
17 | | - author_email = '[email protected]', |
18 | | - description = "A grep program configured the way I like it.", |
19 | | - license = "BSD", |
20 | | - classifiers = [ |
| 14 | + name='grin', |
| 15 | + version='1.2.1', |
| 16 | + author='Robert Kern', |
| 17 | + |
| 18 | + description="A grep program configured the way I like it.", |
| 19 | + license="BSD", |
| 20 | + url='https://github.com/rkern/grin', |
| 21 | + classifiers=[ |
21 | 22 | "License :: OSI Approved :: BSD License", |
22 | 23 | "Development Status :: 5 - Production/Stable", |
23 | 24 | "Environment :: Console", |
|
26 | 27 | "Programming Language :: Python", |
27 | 28 | "Topic :: Utilities", |
28 | 29 | ], |
29 | | - |
30 | | - py_modules = ["grin"], |
31 | | - entry_points = dict( |
32 | | - console_scripts = [ |
| 30 | + py_modules=["grin"], |
| 31 | + entry_points=dict( |
| 32 | + console_scripts=[ |
33 | 33 | "grin = grin:grin_main", |
34 | 34 | "grind = grin:grind_main", |
35 | 35 | ], |
36 | 36 | ), |
37 | | - tests_require = [ |
| 37 | + tests_require=[ |
38 | 38 | 'nose >= 0.10', |
39 | 39 | ], |
40 | | - test_suite = 'nose.collector', |
| 40 | + test_suite='nose.collector', |
41 | 41 | **kwds |
42 | 42 | ) |
0 commit comments