Skip to content

Commit 3cda44a

Browse files
committed
MAINT: style, setup.cfg
1 parent 3b7c227 commit 3cda44a

File tree

2 files changed

+22
-17
lines changed

2 files changed

+22
-17
lines changed

setup.cfg

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
[egg_info]
22
tag_build = .dev
3-
tag_svn_revision = 1
43

54
[aliases]
65
release = egg_info -RDb ''
76

87
[nosetests]
98
with-doctest=1
109
doctest-tests=1
10+
11+
[bdist_wheel]
12+
universal = 1
13+
14+
[metadata]
15+
description-file = README.txt

setup.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
import os
2+
23
from setuptools import setup
34

45
kwds = {}
56

67
# Read the long description from the README.txt
78
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()
1111

1212

1313
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+
author_email='[email protected]',
18+
description="A grep program configured the way I like it.",
19+
license="BSD",
20+
url='https://github.com/rkern/grin',
21+
classifiers=[
2122
"License :: OSI Approved :: BSD License",
2223
"Development Status :: 5 - Production/Stable",
2324
"Environment :: Console",
@@ -26,17 +27,16 @@
2627
"Programming Language :: Python",
2728
"Topic :: Utilities",
2829
],
29-
30-
py_modules = ["grin"],
31-
entry_points = dict(
32-
console_scripts = [
30+
py_modules=["grin"],
31+
entry_points=dict(
32+
console_scripts=[
3333
"grin = grin:grin_main",
3434
"grind = grin:grind_main",
3535
],
3636
),
37-
tests_require = [
37+
tests_require=[
3838
'nose >= 0.10',
3939
],
40-
test_suite = 'nose.collector',
40+
test_suite='nose.collector',
4141
**kwds
4242
)

0 commit comments

Comments
 (0)