Skip to content

Commit

Permalink
Add Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
vkottler committed Oct 5, 2023
1 parent be05d40 commit f9062f3
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 23 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
python-version:
- "3.10"
- "3.11"
- "3.12"
system:
- ubuntu-latest
- macos-latest
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
env:
PY_TEST_EXTRA_ARGS: --cov-report=xml

- uses: codecov/codecov-action@main
- uses: codecov/codecov-action@v3

- run: mk pypi-upload-ci
env:
Expand All @@ -68,7 +69,7 @@ jobs:
- run: |
mk python-release owner=vkottler \
repo=datazen version=3.1.3
repo=datazen version=3.1.4
if: |
matrix.python-version == '3.11'
&& matrix.system == 'ubuntu-latest'
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
=====================================
generator=datazen
version=3.1.3
hash=1540b6cd01b8a69f0045a669dffd1508
version=3.1.4
hash=fd1a16159a70c17239bad87ae8b0de27
=====================================
-->

# datazen ([3.1.3](https://pypi.org/project/datazen/))
# datazen ([3.1.4](https://pypi.org/project/datazen/))

[![python](https://img.shields.io/pypi/pyversions/datazen.svg)](https://pypi.org/project/datazen/)
![Build Status](https://github.com/vkottler/datazen/workflows/Python%20Package/badge.svg)
Expand All @@ -31,6 +31,7 @@ This package is tested with the following Python minor versions:

* [`python3.10`](https://docs.python.org/3.10/)
* [`python3.11`](https://docs.python.org/3.11/)
* [`python3.12`](https://docs.python.org/3.12/)

## Platform Support

Expand Down
6 changes: 3 additions & 3 deletions datazen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.3
# hash=5556a9ea5670697996e29999640f7636
# version=3.1.4
# hash=e36ad9d1d77e46d4213dff0441754ebd
# =====================================

"""
Expand All @@ -10,7 +10,7 @@

DESCRIPTION = "Compile and render schema-validated configuration data."
PKG_NAME = "datazen"
VERSION = "3.1.3"
VERSION = "3.1.4"

# datazen-specific content.
DEFAULT_TYPE = "yaml"
Expand Down
2 changes: 1 addition & 1 deletion datazen/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# =====================================
# generator=datazen
# version=3.1.3
# version=3.1.4
# hash=8e8dc92c50d7e4c18843c024dde96d7f
# =====================================
"""
Expand Down
2 changes: 1 addition & 1 deletion datazen/data/schemas/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# =====================================
# generator=datazen
# version=3.1.3
# version=3.1.4
# hash=96b5e887b1d934d78879c6fedf46154a
# =====================================
---
Expand Down
10 changes: 6 additions & 4 deletions datazen/entry.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.3
# hash=825956f7f2a679cc10ec94cdc80833c1
# version=3.1.4
# hash=5b6c3f6a7a2743f25e4939b11daf96b1
# =====================================

"""
Expand All @@ -10,13 +10,14 @@

# built-in
import argparse
from logging import getLogger
import os
from pathlib import Path
import sys
from typing import List

# third-party
from vcorelib.logging import init_logging, logging_args
from vcorelib.logging import init_logging, log_time, logging_args

# internal
from datazen import DESCRIPTION, VERSION
Expand Down Expand Up @@ -68,7 +69,8 @@ def main(argv: List[str] = None) -> int:
os.chdir(args.dir)

# run the application
result = entry(args)
with log_time(getLogger(__name__), "Command"):
result = entry(args)
except SystemExit as exc:
result = 1
if exc.code is not None and isinstance(exc.code, int):
Expand Down
3 changes: 3 additions & 0 deletions local/configs/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ name: datazen
version: "{{major}}.{{minor}}.{{patch}}"
description: "Compile and render schema-validated configuration data."
entry: {{entry}}
time_command: true

requirements:
- cerberus
- GitPython
- Jinja2
- vcorelib>=1.2.3

dev_requirements:
- setuptools-wrapper
- pytest
Expand Down
2 changes: 1 addition & 1 deletion local/configs/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author_info:
email: vaughnkottler@gmail.com
username: vkottler

versions: ["3.10", "3.11"]
versions: ["3.10", "3.11", "3.12"]

systems:
- macos-latest
Expand Down
2 changes: 1 addition & 1 deletion local/variables/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
major: 3
minor: 1
patch: 3
patch: 4
entry: dz
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[project]
name = "datazen"
version = "3.1.3"
version = "3.1.4"
description = "Compile and render schema-validated configuration data."
readme = "README.md"
requires-python = ">=3.10"
Expand All @@ -17,6 +17,7 @@ maintainers = [
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# =====================================
# generator=datazen
# version=3.1.3
# hash=d1fab7353162be355521e268424fb26c
# version=3.1.4
# hash=3772d6d13c0e602fe7bb2cefab8f4ef5
# =====================================

"""
Expand Down Expand Up @@ -30,6 +30,7 @@
"versions": [
"3.10",
"3.11",
"3.12",
],
}
setup(
Expand Down
2 changes: 1 addition & 1 deletion tasks/conf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# =====================================
# generator=datazen
# version=3.1.3
# version=3.1.4
# hash=9f62028523c3b5a953733ca89dcc3018
# =====================================
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/data/valid/datazen-out-test/child.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
=====================================
generator=datazen
version=3.1.2
version=3.1.3
hash=2484372c47afe099f7d18f760fe57ce7
=====================================
-->
Expand Down
2 changes: 1 addition & 1 deletion tests/data/valid/datazen-out-test/test.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
=====================================
generator=datazen
version=3.1.2
version=3.1.3
hash=6d844b64ba9b4d34ea3a70c213cf7ea2
=====================================
-->
Expand Down

0 comments on commit f9062f3

Please sign in to comment.