Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit f4ac91a

Browse files
committed
More refactoring.
1 parent ccd9a73 commit f4ac91a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

setup.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from setuptools import setup
44

55

6-
with open(os.path.join('src', 'pydocstyle', 'utils.py')) as f:
6+
this_dir = os.path.dirname(__file__)
7+
8+
with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
79
for line in f:
810
if line.startswith('__version__'):
911
version = eval(line.split('=')[-1])
@@ -27,8 +29,9 @@
2729
'License :: OSI Approved :: MIT License',
2830
],
2931
keywords='pydocstyle, PEP 257, pep257, PEP 8, pep8, docstrings',
30-
package_dir={'pydocstyle': 'src/pydocstyle'},
31-
#py_modules=['pydocstyle'],
32+
packages=('pydocstyle',),
33+
py_modules=('main',),
34+
package_dir={'': 'src'},
3235
entry_points={
3336
'console_scripts': [
3437
'pydocstyle = pydocstyle.cli:main',

src/pydocstyle/tests/test_decorators.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22
33
Use tox or py.test to run the test suite.
44
"""
5-
import checker
6-
75
try:
86
from StringIO import StringIO
97
except ImportError:
108
from io import StringIO
119

1210
import textwrap
1311

14-
from .. import pydocstyle, parser
12+
from .. import parser, checker
1513

1614

1715
__all__ = ()

src/pydocstyle/tests/test_integration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from __future__ import with_statement
66
from collections import namedtuple
7-
from functools import partial
87

98
import sys
109
import os

src/tox.ini renamed to tox.ini

File renamed without changes.

0 commit comments

Comments
 (0)