Skip to content

Commit

Permalink
Merge pull request #23 from FirefighterBlu3/develop
Browse files Browse the repository at this point in the history
Preparing for 2.0 release
  • Loading branch information
FirefighterBlu3 authored Sep 4, 2021
2 parents 679c5f5 + f7c5090 commit 08f2586
Show file tree
Hide file tree
Showing 16 changed files with 972 additions and 504 deletions.
9 changes: 8 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
Start of ChangeLog

2019-11-12 v1.8.5
use pam_set_item() to set PAM_TTY for pam_securetty module
add a bunch of tools for code quality
refactored the class slightly so the module can be imported and passive at
runtime until authentication is actually needed

2018-6-15 v1.8.4
include LICENSE file as some distributions rely on the presence of it rather than extracting from setup.py
include LICENSE file as some distributions rely on the presence of it
rather than extracting from setup.py

2018-3-22 v1.8.3
add a test for the existence libpam.pam_end function
Expand Down
61 changes: 61 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
VIRTUALENV = $(shell which virtualenv)
PYTHONEXEC = python

VERSION = `grep VERSION version.py | cut -d \' -f2`

bandit: pydeps
. venv/bin/activate; bandit -r pam/

clean:
rm -rf *.egg-info/
rm -rf .cache/
rm -rf .tox/
rm -rf .coverage
rm -rf build
rm -rf dist
rm -rf htmlcov
rm -rf venv
find . -type d -name '__pycache__' | xargs rm -rf
find . -name "*.pyc" -type f -print0 | xargs -0 /bin/rm -rf

compile:
. venv/bin/activate; python setup.py build install

console:
. venv/bin/activate; python

coverage:
. venv/bin/activate; coverage html

current:
@echo $(VERSION)

deps:
. venv/bin/activate; python -m pip install --upgrade -qr requirements.txt

install: clean venv deps
. venv/bin/activate; python setup.py install

inspectortiger: pydeps
. venv/bin/activate; inspectortiger pam/

lint: pydeps
. venv/bin/activate; python -m flake8 pam/ --max-line-length=120

preflight: bandit coverage test

pydeps:
. venv/bin/activate; pip install --upgrade -q pip; \
pip install --upgrade -q pip flake8 bandit \
pyre-check coverage pytest pytest-mock pytest-cov pytest-runner \
mock minimock faker responses

test: pydeps deps venv lint
. venv/bin/activate; pytest --cov=pam tests -r w --capture=sys -vvv; \
coverage html

tox:
. venv/bin/activate; tox

venv:
$(VIRTUALENV) -p $(PYTHONEXEC) venv
Loading

0 comments on commit 08f2586

Please sign in to comment.