Skip to content

Commit dd58ad9

Browse files
committed
pimp the repo (1)
1 parent 3f063b3 commit dd58ad9

File tree

5 files changed

+51
-5
lines changed

5 files changed

+51
-5
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [ $default-branch ]
6+
pull_request:
7+
branches: [ $default-branch ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.6, 3.7, 3.8]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install flake8 pytest
27+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28+
- name: Lint with flake8
29+
run: |
30+
# stop the build if there are Python syntax errors or undefined names
31+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
32+
# exit-zero treats all errors as warnings
33+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+
- name: Test with pytest
35+
run: |
36+
pytest

environment.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
# run: conda env create --file environment.yml
2+
name: jupyter-xprahtml5-proxy
13
channels:
24
- conda-forge
35
dependencies:
4-
- xpra>=4.0.4
5-
- jupyter-server-proxy>=1.4
6+
- jupyterlab=2
7+
- jupyterlab_server
8+
- jupyter_conda
69
- pip
710
- pip:
8-
- .
11+
- xpra>=4.0.4
12+
- -r file:requirements.txt

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jupyter-server-proxy>=1.4

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
long_description = fh.read()
77

88
setup(
9-
name="jupyter-xprahtml5-server",
9+
name="jupyter-xprahtml5-proxy",
1010
packages=find_packages(),
1111
version='0.2.0',
1212

1313
author_email="[email protected]",
1414
description="Xpra for JupyterLab",
1515
long_description=long_description,
1616
long_description_content_type="text/markdown",
17-
url="https://github.com/FZJ_JSC/jupyter-xprahtml5-server",
17+
url="https://github.com/FZJ_JSC/jupyter-xprahtml5-proxy",
1818

1919
keywords=["jupyter", "xpra", "jupyterhub", "jupyter-server-proxy"],
2020
classifiers=[

test/test_nothing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def test_nothing():
2+
"""
3+
Placeholder test
4+
"""
5+
print("\nRunning test_nothing...")

0 commit comments

Comments
 (0)