Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions evtk/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pyevtk import *

import warnings
warnings.warn('the "evtk" package is deprecated, use "pyevtk" instead', DeprecationWarning)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def readme(fname):
maintainer='Adamos Kyriakou',
maintainer_email='[email protected]',
url='https://bitbucket.org/pauloh/pyevtk',
packages=['pyevtk'],
packages=['pyevtk', 'evtk'],
package_dir={'pyevtk': 'pyevtk'},
package_data={'pyevtk': ['LICENSE.txt', 'examples/*.py']},
install_requires=[
Expand Down
11 changes: 11 additions & 0 deletions tests/dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ def test_examples():
examples = [os.path.join(root, f) for f in files if f.endswith('.py')]
for ex in examples:
runpy.run_path(ex)


def test_compat_lib():
with pytest.warns(DeprecationWarning):
import evtk
import pyevtk
assert pyevtk.evtk is evtk.evtk
assert pyevtk.hl is evtk.hl
assert pyevtk.vtk is evtk.vtk
assert pyevtk.xml is evtk.xml