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
12 changes: 6 additions & 6 deletions ci/edmtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
}

dependencies = {
"coverage",
"mock",
"numpy",
"pandas",
Expand Down Expand Up @@ -159,14 +160,14 @@ def install(runtime, toolkit, environment, source):
)

if toolkit == "pyside2":
additional_repositories = "--add-repository enthought/lgpl"
addn_repositories = "--add-repository enthought/lgpl"
else:
additional_repositories = ""
addn_repositories = ""

# edm commands to setup the development environment
commands = [
"edm environments create {environment} --force --version={runtime}",
"edm install -y -e {environment} {packages} " + additional_repositories,
"edm install -y -e {environment} {packages} " + addn_repositories,
("edm run -e {environment} -- pip install -r ci/requirements.txt"
" --no-dependencies"),
]
Expand Down Expand Up @@ -223,8 +224,6 @@ def test(runtime, toolkit, environment):
"coverage run -m unittest discover -v chaco"
]

cwd = os.getcwd()

# We run in a tempdir to avoid accidentally picking up wrong traitsui
# code from a local dir. We need to ensure a good .coveragerc is in
# that directory, plus coverage has a bug that means a non-local coverage
Expand Down Expand Up @@ -321,7 +320,8 @@ def docs(runtime, toolkit, environment):
"Regenerating API docs in '{environment}'".format(**parameters)
)
commands = [
"edm run -e {environment} -- python -m sphinx.ext.apidoc -e --no-toc -o "
"edm run -e {environment} -- "
+ "python -m sphinx.ext.apidoc -e --no-toc -o "
+ api_path
+ " -t {templates_dir}"
+ " chaco "
Expand Down
1 change: 0 additions & 1 deletion ci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
coverage
48 changes: 24 additions & 24 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def write_version_py(filename=_VERSION_FILENAME):
# write_version_py(), otherwise the import of _version messes
# up the build under Python 3.
fullversion = VERSION
chaco_version_path = os.path.join(
chaco_version_path = os.path.join(
os.path.dirname(__file__), 'chaco', '_version.py')
if os.path.exists('.git'):
git_rev, dev_num = git_version()
Expand All @@ -108,7 +108,6 @@ def write_version_py(filename=_VERSION_FILENAME):
"chaco/_version.py and the build directory "
"before building.")


match = re.match(r'.*?\.dev(?P<dev_num>\d+)', fullversion)
if match is None:
dev_num = '0'
Expand Down Expand Up @@ -158,15 +157,15 @@ def write_version_py(filename=_VERSION_FILENAME):
extensions = [contour] + cython_extensions

setup(
name = 'chaco',
version = __version__,
author = 'Peter Wang, et. al.',
author_email = 'info@enthought.com',
maintainer = 'ETS Developers',
maintainer_email = 'enthought-dev@enthought.com',
url = 'http://docs.enthought.com/chaco',
download_url = 'https://github.com/enthought/chaco',
classifiers = [c.strip() for c in """\
name='chaco',
version=__version__,
author='Peter Wang, et. al.',
author_email='info@enthought.com',
maintainer='ETS Developers',
maintainer_email='enthought-dev@enthought.com',
url='http://docs.enthought.com/chaco',
download_url='https://github.com/enthought/chaco',
classifiers=[c.strip() for c in """\
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Intended Audience :: Science/Research
Expand All @@ -183,18 +182,19 @@ def write_version_py(filename=_VERSION_FILENAME):
Topic :: Software Development :: Libraries
""".splitlines() if len(c.strip()) > 0],
package_data={
'chaco': ['tools/toolbars/images/*.png',
'layers/data/*.svg',
'tests/data/PngSuite/*.png']
'chaco': [
'layers/data/*.svg',
'tests/data/PngSuite/*.png',
'tools/toolbars/images/*.png',
]
},
description = 'interactive 2-dimensional plotting',
long_description = open('README.rst').read(),
ext_modules = extensions,
include_package_data = True,
install_requires = __requires__,
license = 'BSD',
packages = find_packages(),
platforms = ["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
zip_safe = False,
use_2to3=False,
description='interactive 2-dimensional plotting',
long_description=open('README.rst').read(),
ext_modules=extensions,
include_package_data=True,
install_requires=__requires__,
license='BSD',
packages=find_packages(),
platforms=["Windows", "Linux", "Mac OS-X", "Unix", "Solaris"],
zip_safe=False,
)
6 changes: 0 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ per-file-ignores = */api.py:F401
exclude =
# The following list should eventually be empty.
# list can be found with flake8 -q
setup.py
ci/edmtool.py
docs/source/conf.py
chaco/quiverplot.py
chaco/abstract_colormap.py
Expand Down Expand Up @@ -150,7 +148,6 @@ exclude =
examples/demo/coordinate_line_overlay_demo.py
examples/demo/cursor_tool_demo.py
examples/demo/toolbar_plot.py
examples/demo/vtk_example.py
examples/demo/world_map.py
examples/demo/financial_plot_dates.py
examples/demo/advanced/asynchronous_updates.py
Expand Down Expand Up @@ -214,9 +211,6 @@ exclude =
examples/demo/canvas/data_source_button.py
examples/demo/canvas/plot_clone_tool.py
examples/demo/canvas/canvas.py
examples/demo/vtk/spectrum.py
examples/demo/vtk/cmap_scatter.py
examples/demo/vtk/vtk_example.py
examples/tutorials/tutorial10.py
examples/tutorials/scipy2008/custom_tool_click.py
examples/tutorials/scipy2008/data_chooser.py
Expand Down
6 changes: 0 additions & 6 deletions travis-ci-requirements.txt

This file was deleted.