Skip to content

Commit

Permalink
Update project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
xeonvs committed Feb 8, 2024
1 parent 628aefd commit 73082b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,31 @@ jobs:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install build
- 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
#- name: Install pypa/build
# run: >-
# python3 -m
# pip install
# build
# --user
#- name: Build a binary wheel and a source tarball
# run: python3 -m build
#- name: Test with pytest
# run: |
# pytest
- name: Build package with binary wheel and a source tarball
run: python -m build
#- name: Store the distribution packages
# uses: actions/upload-artifact@v3
# uses: actions/upload-artifact@v4
# with:
# name: python-package-distributions
# path: dist/
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
name = "PySSHHelper"
version = "0.1.1"
description = "Python library for executing commands interactively over SSH including sudo su - priveleges"
authors = [
{ name="Max", email="PySSHHelper@proton.me" },
]
authors = ["Max <PySSHHelper@proton.me>"]
license = "MIT"
readme = "README.md"
requires-python = ">=3.8"
Expand Down

0 comments on commit 73082b3

Please sign in to comment.