Skip to content

Commit 68372ad

Browse files
committed
Add copyright notices to files
1 parent 156aa53 commit 68372ad

10 files changed

Lines changed: 187 additions & 37 deletions

File tree

.github/actions/setup-environment/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
name: 'Setup CI Environment'
217
description: 'Setup the environment in which CI scripts for the NVDA Remote Access server can be run'
318

.github/workflows/coverage.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
name: Run automated tests
217

318
on: push

.github/workflows/pyright.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
name: Check types with Pyright
217

318
on:

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
# Pre-commit configuration
217
# See https://pre-commit.com for more information
318
# See https://pre-commit.com/hooks.html for more hooks

Dockerfile

Lines changed: 42 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,42 @@
1-
FROM ubuntu:focal
2-
3-
ENV DEBIAN_FRONTEND=noninteractive
4-
5-
RUN apt-get -y update && apt-get -y upgrade
6-
7-
RUN apt-get install -y -q tini curl python3 python3-pip
8-
9-
ENV PYTHONDONTWRITEBYTECODE 1
10-
11-
ENV PYTHONUNBUFFERED 1
12-
13-
WORKDIR /usr/src/app
14-
15-
ADD requirements.txt /usr/src/app
16-
17-
RUN pip3 install --no-cache-dir -r requirements.txt
18-
19-
ADD . /usr/src/app
20-
21-
RUN useradd remote
22-
23-
USER remote
24-
25-
EXPOSE 6837
26-
27-
ENTRYPOINT ["tini", "--", "python3", "server.py", "--certificate=certificate/cert", "--privkey=certificate/key", "--chain=certificate/chain"]
1+
# Copyright 2020 Christopher Toth
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
16+
FROM ubuntu:focal
17+
18+
ENV DEBIAN_FRONTEND=noninteractive
19+
20+
RUN apt-get -y update && apt-get -y upgrade
21+
22+
RUN apt-get install -y -q tini curl python3 python3-pip
23+
24+
ENV PYTHONDONTWRITEBYTECODE 1
25+
26+
ENV PYTHONUNBUFFERED 1
27+
28+
WORKDIR /usr/src/app
29+
30+
ADD requirements.txt /usr/src/app
31+
32+
RUN pip3 install --no-cache-dir -r requirements.txt
33+
34+
ADD . /usr/src/app
35+
36+
RUN useradd remote
37+
38+
USER remote
39+
40+
EXPOSE 6837
41+
42+
ENTRYPOINT ["tini", "--", "python3", "server.py", "--certificate=certificate/cert", "--privkey=certificate/key", "--chain=certificate/chain"]

docker-compose.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1-
version: "3.9"
2-
3-
services:
4-
remote_server:
5-
build: "."
6-
image: "remote_server:latest"
7-
volumes:
8-
- ./certificate:/usr/src/app/certificate
9-
ports:
10-
- "6837:6837"
1+
# Copyright 2020 Christopher Toth
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
16+
version: "3.9"
17+
18+
services:
19+
remote_server:
20+
build: "."
21+
image: "remote_server:latest"
22+
volumes:
23+
- ./certificate:/usr/src/app/certificate
24+
ports:
25+
- "6837:6837"

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
[project]
217
name = "remote-server"
318
version = "0.1.0"

server.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2020, 2021, 2023, 2025 NV Access Limited, Christopher Toth, Tyler Spivey
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
import json
217
import os
318
import random

setup.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2020 Christopher Toth
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
from distutils.core import setup
217

318
setup(console=["server.py"])

test.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2025 NV Access Limited
2+
#
3+
# This file is part of NVDA Remote Access Relay Server.
4+
#
5+
# NVDA Remote Access Relay Server is free software: you can redistribute it and/or modify it under the terms
6+
# of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of
7+
# the License, or (at your option) any later version.
8+
#
9+
# NVDA Remote Access Relay Server is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10+
# without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
11+
# General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU Affero General Public License along with NVDA Remote Access Relay
14+
# Server. If not, see <https://www.gnu.org/licenses/>.
15+
116
from collections.abc import Iterable
217
from itertools import islice
318
import json

0 commit comments

Comments
 (0)