Skip to content

Commit 76f7a1b

Browse files
authored
Merge pull request #207 from bollwyvl/patch-1
ensure `requirements.txt` is included in the sdist, exclude `performance` and importable `tests`
2 parents af2c376 + 27e4455 commit 76f7a1b

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
include versioneer.py
22
include jupyterhub_traefik_proxy/_version.py
3+
include requirements.txt
4+
recursive-include tests *.*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"Programming Language :: Python",
3939
"Programming Language :: Python :: 3",
4040
],
41-
packages=find_packages(),
41+
packages=find_packages(exclude=["performance", "tests"]),
4242
include_package_data=True,
4343
entry_points={
4444
"jupyterhub.proxies": [

tests/__init__.py

Whitespace-only changes.

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from urllib.parse import urlparse
1414

1515
import pytest
16-
import utils
1716
from certipy import Certipy
1817
from consul.aio import Consul
1918
from jupyterhub.utils import exponential_backoff
@@ -24,6 +23,8 @@
2423
from jupyterhub_traefik_proxy.fileprovider import TraefikFileProviderProxy
2524
from jupyterhub_traefik_proxy.traefik_utils import deep_merge
2625

26+
from . import utils
27+
2728
HERE = Path(__file__).parent.resolve()
2829
config_files = HERE / "config_files"
2930

tests/test_proxy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from urllib.parse import quote, urlparse
1515

1616
import pytest
17-
import utils
1817
import websockets
1918
from jupyterhub.objects import Hub, Server
2019
from jupyterhub.user import User
@@ -23,6 +22,8 @@
2322

2423
from jupyterhub_traefik_proxy.proxy import TraefikProxy
2524

25+
from . import utils
26+
2627
# Mark all tests in this file as slow
2728
pytestmark = [pytest.mark.slow]
2829

0 commit comments

Comments
 (0)