Skip to content

Commit

Permalink
Test with Python 3.13.0rc1 (#25)
Browse files Browse the repository at this point in the history
* Remove Brewfile.lock.json
* Add support for Python 3.13.0rc1
* Update dev pipeline
  • Loading branch information
makukha authored Aug 5, 2024
1 parent 6d0f413 commit 2bf80d4
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 262 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "0.6.1"
current_version = "0.6.2"
allow_dirty = true

[[tool.bumpversion.files]]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Brewfile.lock.json
dist/
.idea/
.pdm-build/
Expand Down
252 changes: 0 additions & 252 deletions Brewfile.lock.json

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# caseutil ⇄ 🐍🐫🍢
[![license](https://img.shields.io/github/license/makukha/caseutil.svg)](https://github.com/makukha/caseutil/blob/main/LICENSE)
[![Tests](https://raw.githubusercontent.com/makukha/caseutil/0.6.1/docs/badge/tests.svg)](https://github.com/makukha/caseutil)
[![Coverage](https://raw.githubusercontent.com/makukha/caseutil/0.6.1/docs/badge/coverage.svg)](https://github.com/makukha/caseutil)
[![Tests](https://raw.githubusercontent.com/makukha/caseutil/0.6.2/docs/badge/tests.svg)](https://github.com/makukha/caseutil)
[![Coverage](https://raw.githubusercontent.com/makukha/caseutil/0.6.2/docs/badge/coverage.svg)](https://github.com/makukha/caseutil)
[![pypi](https://img.shields.io/pypi/v/caseutil.svg)](https://pypi.python.org/pypi/caseutil)
[![versions](https://img.shields.io/pypi/pyversions/caseutil.svg)](https://pypi.org/project/caseutil)

Expand Down
20 changes: 16 additions & 4 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
version: '3'

vars:
GET_PYTHON_VERSIONS: tox --listenvs | sed -e 's/^py//' | xargs echo

tasks:

init:
Expand All @@ -14,12 +17,10 @@ tasks:
sources:
- tox.ini
vars:
VERSIONS:
sh: >
sed -ne '/^env_list/ s/^.*{\(.*\)}.*/\1/; s/,/ /gp' < tox.ini
PYTHON_VERSIONS: {sh: '{{.GET_PYTHON_VERSIONS}}'}
cmds:
- cmd: pyenv install --skip-existing {{.ITEM}}
for: {var: VERSIONS}
for: {var: PYTHON_VERSIONS}

install:
desc: Install dev python environment.
Expand Down Expand Up @@ -53,3 +54,14 @@ tasks:
desc: Publish package on PyPi.
cmds:
- pdm publish

check:python-versions:
desc: Check python versions available to pyenv.
vars:
PYTHON_VERSIONS: {sh: '{{.GET_PYTHON_VERSIONS}}'}
cmds:
- brew upgrade --quiet pyenv
- cmd: echo {{.ITEM}}; pyenv install --list | grep " $(echo {{.ITEM}} | cut -d. -f1-2)" | tac
for: {var: PYTHON_VERSIONS}
silent: true

2 changes: 1 addition & 1 deletion src/caseutil.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Case convert and verify for Python: snake_case, camelCase, kebab-case, and more.
"""
__version__ = '0.6.1'
__version__ = '0.6.2'

from argparse import ArgumentParser
from io import TextIOBase
Expand Down
14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
[tox]
# see https://devguide.python.org/versions/
env_list = py{3.13.0b4,3.12.4,3.11.9,3.10.14,3.9.19,3.8.19,3.7.17,3.6.15,3.5.10,2.7.18}
env_list =
py2.7.18
py3.5.10
py3.6.15
py3.7.17
py3.8.19
py3.9.19
py3.10.14
py3.11.9
py3.12.4
py3.13.0rc1
setenv = VIRTUALENV_DISCOVERY=pyenv

[testenv]
package = externals
package = external
allowlist_externals = sh
commands = sh -c 'python -m doctest tests/test_*.txt'

Expand Down

0 comments on commit 2bf80d4

Please sign in to comment.