Skip to content

Commit 88ac508

Browse files
authored
Reduce path length of installed package (#157)
1 parent 9305c5f commit 88ac508

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
name: Tests
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
8-
pull_request:
9-
branches:
10-
- "*"
3+
on: [push, pull_request]
114

125
jobs:
136
linux:
@@ -40,10 +33,10 @@ jobs:
4033
architecture: 'x64'
4134
- name: Install python dependencies
4235
run: |
43-
pip install setuptools pip wheel --upgrade --user
36+
pip install setuptools pip wheel --upgrade --user --cache-dir ~/.cache/pip
4437
- name: Install project dependencies
4538
run: |
46-
pip install -v -e ".[test]"
39+
pip install -v -e ".[test]" --cache-dir ~/.cache/pip
4740
- name: Show python environment
4841
run: |
4942
python --version
@@ -56,3 +49,11 @@ jobs:
5649
- name: Upload coverage
5750
run: |
5851
codecov
52+
- name: Install and Test SDist
53+
if: ${{ runner.os != 'Windows' }}
54+
run: |
55+
pip uninstall -y jupyterlab_server
56+
python setup.py sdist
57+
cd dist
58+
pip install *.tar.gz
59+
pytest --pyargs jupyterlab_server

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ include setupbase.py
44
include jupyterlab_server/templates/*.html
55
recursive-include jupyterlab_server/tests *.json *.json.orig *.jupyterlab-workspace
66

7+
# prune translation test data to avoid long path limits on Windows
8+
prune jupyterlab_server/tests/translations
9+
710
# Patterns to exclude from any directory
811
global-exclude *~
912
global-exclude *.pyc

jupyterlab_server/tests/test_translation_api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
# Constants
2424
HERE = os.path.abspath(os.path.dirname(__file__))
2525

26+
if not os.path.exists(os.path.join(HERE, 'translations')):
27+
pytest.skip("skipping translation tests", allow_module_level=True)
28+
2629

2730
def setup_module(module):
2831
""" setup any state specific to the execution of this module."""

0 commit comments

Comments
 (0)