Skip to content

Commit a41f799

Browse files
authored
fix: update support for Python versions (#9)
* build: increment build version * fix: update support for Python versions --------- Signed-off-by: Emilio Reyes <soda480@gmail.com>
1 parent 85bf4a4 commit a41f799

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: build
1+
name: build+test
22
on:
33
schedule:
4-
- cron: "0 8 * * *"
4+
- cron: "0 8 * * 2,4,6"
55
push:
66
branches:
77
- '**'
@@ -12,7 +12,7 @@ jobs:
1212
build-images:
1313
strategy:
1414
matrix:
15-
version: ['3.7', '3.8', '3.9', '3.10']
15+
version: ['3.8', '3.9', '3.10', '3.11', '3.12']
1616
name: Build Python Docker images
1717
runs-on: ubuntu-20.04
1818
steps:
@@ -27,7 +27,7 @@ jobs:
2727
docker save --output images/ascii-animator-${{ matrix.version }}.tar ascii-animator:${{ matrix.version }}
2828
- name: upload ascii-animator ${{ matrix.version }} image artifact
2929
if: ${{ matrix.version == '3.9' }}
30-
uses: actions/upload-artifact@v2
30+
uses: actions/upload-artifact@v3
3131
with:
3232
name: image
3333
path: images/ascii-animator-${{ matrix.version }}.tar
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-20.04
3838
steps:
3939
- name: download image artifact
40-
uses: actions/download-artifact@v2
40+
uses: actions/download-artifact@v3
4141
with:
4242
name: image
4343
path: images/

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# ascii-animator
2-
[![build](https://github.com/soda480/ascii-animator/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/soda480/ascii-animator/actions/workflows/main.yml)
2+
[![build+test](https://github.com/soda480/ascii-animator/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/soda480/ascii-animator/actions/workflows/main.yml)
33
[![complexity](https://img.shields.io/badge/complexity-A-brightgreen)](https://radon.readthedocs.io/en/latest/api.html#module-radon.complexity)
44
[![vulnerabilities](https://img.shields.io/badge/vulnerabilities-None-brightgreen)](https://pypi.org/project/bandit/)
55
[![PyPI version](https://badge.fury.io/py/ascii-animator.svg)](https://badge.fury.io/py/ascii-animator)
6-
[![python](https://img.shields.io/badge/python-3.7%20%7C%203.8%20%7C%203.9%20%7C%203.10-teal)](https://www.python.org/downloads/)
6+
[![python](https://img.shields.io/badge/python-3.8%20%7C%203.9%20%7C%203.10%20%7C%203.11%20%7C%203.12-teal)](https://www.python.org/downloads/)
77

88
A simple ASCII text animator.
99

@@ -71,8 +71,7 @@ Clone the repository and ensure the latest version of Docker is installed on you
7171
Build the Docker image:
7272
```bash
7373
docker image build \
74-
-t \
75-
ascii-animator:latest .
74+
-t ascii-animator:latest .
7675
```
7776

7877
Run the Docker container:

build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
authors = [Author('Emilio Reyes', 'soda480@gmail.com')]
1616
summary = 'A simple ASCII art animator'
1717
url = 'https://github.com/soda480/ascii-animator'
18-
version = '0.1.7'
18+
version = '0.1.8'
1919
default_task = [
2020
'clean',
2121
'analyze',
@@ -45,10 +45,11 @@ def set_properties(project):
4545
project.set_property('distutils_upload_skip_existing', True)
4646
project.set_property('distutils_classifiers', [
4747
'Programming Language :: Python',
48-
'Programming Language :: Python :: 3.7',
4948
'Programming Language :: Python :: 3.8',
5049
'Programming Language :: Python :: 3.9',
51-
'Programming Language :: Python :: 3.10'])
50+
'Programming Language :: Python :: 3.10',
51+
'Programming Language :: Python :: 3.11',
52+
'Programming Language :: Python :: 3.12'])
5253
project.set_property('radon_break_build_average_complexity_threshold', 4)
5354
project.set_property('radon_break_build_complexity_threshold', 10)
5455
project.set_property('bandit_break_build', True)

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
versions=( '3.7' '3.8' '3.9' '3.10' )
2+
versions=( '3.8' '3.9' '3.10' '3.11' '3.12' )
33
for version in "${versions[@]}";
44
do
55
docker image build --build-arg PYTHON_VERSION="$version" -t ascii-animator:"$version" .

0 commit comments

Comments
 (0)