-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
264c6b9
commit ba0c04c
Showing
9 changed files
with
1,240 additions
and
1,192 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.DS_Store | ||
.coverage | ||
.coverage* | ||
.env | ||
.tox | ||
.vscode | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
ci: lint test | ||
|
||
lint: | ||
poetry run black --check . | ||
uv run ruff check | ||
|
||
test: | ||
poetry run pytest --cov=authum --cov-report=term-missing | ||
uv run pytest --cov=authum --cov-report=term-missing | ||
|
||
tdd: | ||
poetry run pytest -f --color=yes -o log_cli=1 --capture=tee-sys --log-level=DEBUG | ||
uv run pytest -f --color=yes -o log_cli=1 --capture=tee-sys --log-level=DEBUG | ||
|
||
# FIXME: run `dist/athm --version` at the end of CI to make sure it works. | ||
# Need to get keyring working on headless Ubuntu first. | ||
# See: https://pypi.org/project/keyring/ | ||
pex: | ||
$(eval REQUIREMENTS=${TMPDIR}requirements.txt) | ||
poetry export --without-hashes > ${REQUIREMENTS} | ||
poetry run pex -r ${REQUIREMENTS} -e authum.cli:main -o dist/athm . | ||
uv export --no-hashes --no-emit-project > ${REQUIREMENTS} | ||
uv run pex -r ${REQUIREMENTS} -e authum.cli:main -o dist/athm . | ||
|
||
release: | ||
$(eval VERSION=`poetry version -s`) | ||
$(eval VERSION=`uvx --from=toml-cli toml get --toml-path=pyproject.toml project.version`) | ||
git tag -a v${VERSION} -m "Release version ${VERSION}" | ||
git push --tags |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,43 +1,42 @@ | ||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
[project] | ||
name = "authum" | ||
version = "1.1.0" | ||
authors = [ | ||
{ name = "CirrusMD", email = "devops@cirrusmd.com" } | ||
] | ||
description = "Awesome authentication tool for connecting command line applications to SAML/OIDC identity and service providers" | ||
authors = ["CirrusMD <devops@cirrusmd.com>"] | ||
homepage = "https://github.com/CirrusMD/authum" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8,<3.13" | ||
readme = "README.md" | ||
requires-python = "~=3.8" | ||
dependencies = [ | ||
"arn~=0.1.5", | ||
"beautifulsoup4~=4.10", | ||
"boto3~=1.19", | ||
"click~=8.0", | ||
"Flask~=2.0", | ||
"keyring~=23.2", | ||
"pluggy~=1.0", | ||
"pyyaml~=6.0", | ||
"requests~=2.26", | ||
"rich~=10.12" | ||
] | ||
|
||
arn = "^0.1" | ||
beautifulsoup4 = "^4.10" | ||
boto3 = "^1.19" | ||
click = "^8.0" | ||
Flask = "^2.0" | ||
keyring = "^23.2" | ||
pluggy = "^1.0" | ||
pyyaml = "^6.0" | ||
requests = "^2.26" | ||
rich = "^10.12" | ||
[dependency-groups] | ||
dev = [ | ||
"Mako~=1.1", | ||
"pex~=2.1", | ||
"pytest~=6.2", | ||
"pytest-cov~=3.0", | ||
"pytest-xdist~=2.4", | ||
"responses~=0.15", | ||
"ruff~=0.9.4", | ||
] | ||
|
||
[tool.poetry.dev-dependencies] | ||
black = "*" | ||
Mako = "^1.1" | ||
pex = "^2.1" | ||
pytest = "^6.2" | ||
pytest-cov = "^3.0" | ||
pytest-xdist = "^2.4" | ||
responses = "^0.15" | ||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.poetry.scripts] | ||
[project.scripts] | ||
athm = "authum.cli:main" | ||
|
||
[tool.pyright] | ||
venvPath = "." | ||
venv = ".venv" | ||
|
||
[tool.pytest.ini_options] | ||
log_level = "DEBUG" |
Oops, something went wrong.