Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔇 remove the warning as it might confuse non dash usage #1015

Merged
merged 9 commits into from
Nov 22, 2019
4 changes: 1 addition & 3 deletions dash/testing/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
except ImportError:
pass

WEBDRIVERS = {"Chrome", "Firefox"}


def pytest_addoption(parser):
dash = parser.getgroup("Dash", "Dash Integration Tests")

dash.addoption(
"--webdriver",
choices=tuple(WEBDRIVERS),
choices=("Chrome", "Firefox"),
default="Chrome",
help="Name of the selenium driver to use",
)
Expand Down
25 changes: 16 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
import io
import pkgutil
from setuptools import setup, find_packages

ENTRY_POINTS = {
"console_scripts": [
"dash-generate-components = "
"dash.development.component_generator:cli",
"renderer = dash.development.build_process:renderer",
]
}

# this is not a complete guess, but picking two typical dash dependencies in
# require-testing.txt
if pkgutil.find_loader("waitress") and pkgutil.find_loader("percy"):
ENTRY_POINTS["pytest11"] = ["dash = dash.testing.plugin"]
byronz marked this conversation as resolved.
Show resolved Hide resolved

main_ns = {}
exec(open("dash/version.py").read(), main_ns) # pylint: disable=exec-used

Expand All @@ -26,19 +40,12 @@ def read_req_file(req_type):
long_description=io.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
install_requires=read_req_file("install"),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*',
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*",
extras_require={
"dev": read_req_file("dev"),
"testing": read_req_file("testing"),
},
entry_points={
"console_scripts": [
"dash-generate-components = "
"dash.development.component_generator:cli",
"renderer = dash.development.build_process:renderer",
],
"pytest11": ["dash = dash.testing.plugin"],
},
entry_points=ENTRY_POINTS,
url="https://plot.ly/dash",
classifiers=[
"Development Status :: 5 - Production/Stable",
Expand Down