Skip to content

Commit

Permalink
Merge pull request #71 from jacebrowning/critical-level
Browse files Browse the repository at this point in the history
Add critical log level to package namespace
  • Loading branch information
jacebrowning authored Aug 24, 2024
2 parents 6a06bb9 + c08990a commit 79c7e9d
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 60 deletions.
11 changes: 4 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
image: Visual Studio 2019
image: Visual Studio 2022

environment:
global:
RANDOM_SEED: 0
matrix:
- PYTHON_MAJOR: 3
PYTHON_MINOR: 9
PYTHON_MINOR: 8

cache:
- .venv -> poetry.lock

install:
# Add Make and Python to the PATH
- copy C:\MinGW\bin\mingw32-make.exe C:\MinGW\bin\make.exe
- set PATH=%PATH%;C:\MinGW\bin
# Add Python to the PATH
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%;%PATH%
- set PATH=C:\Python%PYTHON_MAJOR%%PYTHON_MINOR%\Scripts;%PATH%
# Install system dependencies
- choco install make
- curl -sSL https://install.python-poetry.org | python -
- set PATH=%USERPROFILE%\AppData\Roaming\Python\Scripts;%PATH%
- make doctor
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: main

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: Gr1N/setup-poetry@v8

- name: Check dependencies
run: make doctor

- uses: actions/cache@v2
with:
path: .venv
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
run: make install

- name: Check code
run: make check

- name: Test code
run: make test

- name: Upload coverage
uses: codecov/codecov-action@v4
if: steps.fork-check.outputs.is-fork == 'false'
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.11.5
poetry 1.7.0
python 3.11.9
poetry 1.8.3
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .verchew.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ version = 1

cli = dot
cli_version_arg = -V
version = 7 || 8 || 9
version = graphviz
optional = true
message = This is only needed to generate UML diagrams for documentation.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"appex",
"autorefs",
"builtins",
"choco",
"classproperties",
"codehilite",
"completly",
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 2.3.1 (2024-10-24)

- Added `CRITICAL` log level to the package namespace.

## 2.3 (2023-12-09)

- Added automatic formatting for dataclasses.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

A minimalistic logging wrapper for Python.

[![Unix Build Status](https://img.shields.io/travis/com/jacebrowning/minilog.svg?label=unix)](https://travis-ci.com/jacebrowning/minilog)
[![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/minilog.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/minilog)
[![Coverage Status](https://img.shields.io/coveralls/jacebrowning/minilog/main.svg)](https://coveralls.io/r/jacebrowning/minilog)
[![Linux Build](https://img.shields.io/github/actions/workflow/status/jacebrowning/minilog/main.yml?branch=main&label=linux)](https://github.com/jacebrowning/minilog/actions)
[![Windows Build](https://img.shields.io/appveyor/ci/jacebrowning/minilog/main.svg?label=windows)](https://ci.appveyor.com/project/jacebrowning/minilog)
[![Code Coverage](https://img.shields.io/codecov/c/github/jacebrowning/minilog)](https://codecov.io/gh/jacebrowning/minilog)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/jacebrowning/minilog.svg)](https://scrutinizer-ci.com/g/jacebrowning/minilog)
[![PyPI License](https://img.shields.io/pypi/l/minilog.svg)](https://pypi.org/project/minilog)
[![PyPI Version](https://img.shields.io/pypi/v/minilog.svg)](https://pypi.org/project/minilog)
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkdocs==1.2.3 ; python_version >= "3.8" and python_version < "4.0"
pygments==2.15.0 ; python_version >= "3.8" and python_version < "4.0"
jinja2==3.0.1 ; python_version >= "3.8" and python_version < "4.0"
jinja2==3.0.3 ; python_version >= "3.8" and python_version < "4.0"
2 changes: 1 addition & 1 deletion log/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylint: disable=wildcard-import

from logging import DEBUG, ERROR, INFO, WARNING
from logging import CRITICAL, DEBUG, ERROR, INFO, WARNING

from .helpers import *
from .logger import *
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "minilog"
version = "2.3"
version = "2.3.1"
description = "Minimalistic wrapper for Python logging."

license = "MIT"
Expand Down Expand Up @@ -64,6 +64,7 @@ coveragespace = "^6.0.1"
# Documentation
mkdocs = "~1.2"
pygments = "^2.15.0"
jinja2 = "~3.0"

# Tooling
pyinstaller = "*"
Expand Down

0 comments on commit 79c7e9d

Please sign in to comment.