-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add basic CI tests - Add python_requires and set to not support 3.x - Set ceilings which still support python2 for dependencies - Update author to include OSUOSL catch-all - Update project URL to github Signed-off-by: Lance Albertson <[email protected]>
- Loading branch information
Showing
2 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
name: Python package | ||
|
||
"on": | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["2.7"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
pip install . | ||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: | | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,30 @@ | |
setup( | ||
name="VNCAuthProxy", | ||
version="1.1.1", | ||
python_requires='<3.0', | ||
packages=[ | ||
"twisted.plugins", | ||
"vncap", | ||
"vncap.vnc", | ||
"vncap.ssh" | ||
], | ||
install_requires=[ | ||
"Twisted>=10.2.0", | ||
"Twisted>=10.2.0,<20.4.0", | ||
"txWS==0.9.1", | ||
"pyopenssl", | ||
"pyopenssl<22.0.0", | ||
# Set ceilings which still support python2 for dependencies | ||
"cryptography<3.4", | ||
"idna<3.0", | ||
"pyasn1", | ||
"PyHamcrest<2.0", | ||
"service-identity", | ||
"typing<3.10", | ||
], | ||
author="Corbin Simpson", | ||
author_email="[email protected]", | ||
author="Corbin Simpson, OSU Open Source Lab", | ||
author_email="[email protected], [email protected]", | ||
description="A Twisted-based VNC proxy", | ||
license="GPL2", | ||
url="http://code.osuosl.org/projects/twisted-vncauthproxy", | ||
url="https://github.com/osuosl/twisted_vncauthproxy", | ||
) | ||
|
||
# Regenerate Twisted plugin cache. | ||
|