Skip to content

Commit ea50f96

Browse files
committed
revert some unnecessary changes
1 parent 6d52822 commit ea50f96

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

py_sourcemap/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from .py_sourcemap import SourcemapParser
1+
from .py_sourcemap import SourcemapParser as InternalParser
22

33
name = 'py_sourcemap'
44

5-
__all__ = ["PySourcemapParser"]
5+
__all__ = ['SourcemapParser', 'Token']
66

77

88
class Token:
@@ -29,9 +29,9 @@ def __repr__(self):
2929
)
3030

3131

32-
class PySourcemapParser:
32+
class SourcemapParser:
3333
def __init__(self, map_path):
34-
self.parser = SourcemapParser(map_path)
34+
self.parser = InternalParser(map_path)
3535

3636
def lookup(self, line, column):
3737
(src_line, src_col, source, name) = self.parser.original_location_for(line, column)

setup.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from setuptools import setup
88
from setuptools.command.install import install as InstallCommand
9-
from setuptools.command.test import test as TestCommand
109

1110

1211
version = '0.3.8'
@@ -55,17 +54,6 @@ def run(self):
5554
InstallCommand.run(self)
5655

5756

58-
class PyTestCommand(TestCommand):
59-
user_options = []
60-
61-
def run(self):
62-
self.run_command('test_rust')
63-
64-
import subprocess
65-
66-
subprocess.check_call([sys.executable, '-m', 'pytest', 'tests'])
67-
68-
6957
install_requires = ['wheel']
7058
tests_require = install_requires + ['pytest', 'pytest-benchmark']
7159

@@ -93,7 +81,6 @@ def run(self):
9381
tests_require=tests_require,
9482
cmdclass={
9583
'install': PostInstallCommand,
96-
# 'test': PyTestCommand,
9784
},
9885
# rust extensions are not zip safe, just like C-extensions.
9986
zip_safe=False)

0 commit comments

Comments
 (0)