Skip to content

Commit 434aa04

Browse files
committed
general cleanup of misc files & closing opened file in setup.py
1 parent fab6f23 commit 434aa04

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
include *.txt
2-
recursive-include doc *.rst
2+
recursive-include doc *.rst

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# -*- coding: utf-8 -*-
1+
#!/usr/bin/env python
2+
# coding: utf-8
23

34
"""
45
python-can requires the setuptools package to be installed.
@@ -12,6 +13,8 @@
1213
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
1314
fd.read(), re.MULTILINE).group(1)
1415

16+
with open('README.rst', 'r') as f:
17+
long_description = f.read()
1518

1619
logging.basicConfig(level=logging.WARNING)
1720

@@ -23,7 +26,7 @@
2326
author="Brian Thorne",
2427
author_email="brian@thorne.link",
2528
description="Controller Area Network interface module for Python",
26-
long_description=open('README.rst').read(),
29+
long_description=long_description,
2730
license="LGPL v3",
2831
package_data={
2932
"": ["CONTRIBUTORS.txt", "LICENSE.txt"],

0 commit comments

Comments
 (0)