-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor: move source files * Fix: tests and version metadata * Refactor: initial migration to uv + pyproject.toml * Refactor: improve project metadata * Refactor: move tox configuration to pyproject * ci: setup attempt #1 * ci: setup attempt #2 * ci: setup attempt #3 * ci: setup attempt #4 * ci: setup attempt #5 * ci: setup attempt #6 * ci: setup attempt #7 * ci: setup attempt #8 * ci: setup attempt #9 * ci: setup attempt #10 * ci: setup attempt #11 * ci: setup attempt #12 * ci: setup attempt #13 * ci: setup attempt #14 * Update README * Update README * Refactor: move pytest configuration to pyproject.toml * Fix: remove warnings on datetime.utcnow * Refactor: remove setup.cfg, adopt ruff defaults * Test coveralls integration #1 * Test coveralls integration #2 * Test coveralls integration #3 * Test coveralls integration #4 * Test coveralls integration #5 * Test coveralls integration #6 * Test coveralls integration #7 * Test coveralls integration #8 * Remove coveralls * Remove travis-ci references * Remove requirements.txt * Remove setup.py * Sync dependencies * Update pre-commit * Update makefile * Update ci
- Loading branch information
Showing
18 changed files
with
627 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
PIP_DISABLE_PIP_VERSION_CHECK: "1" | ||
PIP_NO_PYTHON_VERSION_WARNING: "1" | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
lint: | ||
name: Linters | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: 3.13 | ||
|
||
- name: Install pre-commit | ||
run: uv tool install pre-commit | ||
|
||
- name: Run pre-commit | ||
run: uv run pre-commit run --all-files --show-diff-on-failure | ||
|
||
tests: | ||
name: Tests with ${{ matrix.env }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
env: | ||
- "3.10" | ||
- "3.11" | ||
- "3.12" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install uv | ||
uses: astral-sh/setup-uv@v4 | ||
with: | ||
python-version: ${{ matrix.env }} | ||
enable-cache: true | ||
cache-dependency-glob: "**/pyproject.toml" | ||
|
||
- name: Install tox | ||
run: uv tool install tox --with tox-uv | ||
|
||
- name: Setup tests | ||
run: tox run -vv --notest --skip-missing-interpreters false -e ${{ matrix.env }} | ||
|
||
- name: Run tests | ||
run: tox run --skip-pkg-install -e ${{ matrix.env }} | ||
|
||
- name: Coverage file | ||
uses: actions/upload-artifact@v4 | ||
if: matrix.env == '3.12' | ||
with: | ||
name: cov-report | ||
path: coverage.lcov | ||
overwrite: true | ||
|
||
coverage: | ||
name: Coverage | ||
needs: tests | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: Coverage file | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cov-report | ||
|
||
- name: Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: coverage.lcov |
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 |
---|---|---|
|
@@ -87,3 +87,5 @@ ENV/ | |
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
tmp/* |
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 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
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[project] | ||
name = "belogging" | ||
dynamic = ["version"] | ||
description = "Easy and opinionated logging configuration for Python apps" | ||
readme = "README.rst" | ||
license = {file = "LICENSE"} | ||
keywords = ["logging"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: System :: Logging", | ||
|
||
] | ||
authors = [{name = "George Y. Kussumoto", email = "[email protected]"}] | ||
requires-python = ">=3.10" | ||
dependencies = [ | ||
"python-json-logger>=3.2.0", | ||
] | ||
|
||
[project.urls] | ||
Github = "https://github.com/georgeyk/belogging/" | ||
Releases = "https://github.com/georgeyk/belogging/releases" | ||
|
||
[tool.hatch.version] | ||
path = "src/belogging/__init__.py" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.uv] | ||
reinstall-package = ["belogging"] | ||
dev-dependencies = [ | ||
"pytest>=8.3.4", | ||
"pytest-cov>=6.0.0", | ||
"tox>=4.23.2", | ||
"tox-uv>=1.16.1", | ||
"pre-commit>=4.0.1", | ||
] | ||
|
||
[tool.ruff] | ||
src = ["src", "tests"] | ||
|
||
[tool.ruff.lint.isort] | ||
lines-between-types = 1 | ||
lines-after-imports = 2 | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
addopts = "-s -x --cov=src/belogging --cov-report=lcov" | ||
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')",] | ||
|
||
[tool.tox] | ||
requires = ["tox>=4.19"] | ||
env_list = ["3.10", "3.11", "3.12"] | ||
|
||
[tool.tox.env_run_base] | ||
runner = "uv-venv-lock-runner" | ||
with_dev = true | ||
commands = [["pytest"]] |
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ | |
|
||
from .loader import BeloggingLoader | ||
|
||
|
||
__version__ = "v0.2.0" | ||
|
||
|
||
# Sugar | ||
|
||
__loaded = False | ||
|
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.