Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
- 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
ramereth committed Jul 26, 2022
1 parent a399697 commit 0416051
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 5 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
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
18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0416051

Please sign in to comment.