Skip to content

Commit

Permalink
Merge pull request #9 from soda480/0.3.0
Browse files Browse the repository at this point in the history
Upgrade to Python 3.9
  • Loading branch information
soda480 authored Oct 2, 2021
2 parents c453e9f + b3f9e26 commit a79e5e7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ on:

jobs:
build:
runs-on: ubuntu-16.04
container: python:3.6-slim
runs-on: ubuntu-20.04
container: python:3.9-slim

steps:
- uses: actions/checkout@v2

- name: Install pybuilder
run: pip install pybuilder

- name: Install dependencies
run: pyb install_dependencies

- name: Execute build
run: pyb

Expand All @@ -31,5 +34,4 @@ jobs:
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml

file: coverage.xml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ dmypy.json

# PyBuilder
target/
.pybuilder
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
FROM python:3.6-slim
FROM python:3.9-slim

ENV PYTHONDONTWRITEBYTECODE 1
WORKDIR /pybuilder-radon

COPY . /pybuilder-radon/

WORKDIR /code
COPY . /code/
RUN pip install pybuilder
RUN pyb
RUN pyb
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# pybuilder-radon #
[![GitHub Workflow Status](https://github.com/soda480/pybuilder-radon/workflows/build/badge.svg)](https://github.com/soda480/pybuilder-radon/actions)
[![Code Coverage](https://codecov.io/gh/soda480/pybuilder-radon/branch/main/graph/badge.svg)](https://codecov.io/gh/soda480/pybuilder-radon)
[![Code Grade](https://www.code-inspector.com/project/19887/status/svg)](https://frontend.code-inspector.com/project/19887/dashboard)
[![PyPI version](https://badge.fury.io/py/pybuilder-radon.svg)](https://badge.fury.io/py/pybuilder-radon)

# pybuilder-radon #
[![python](https://img.shields.io/badge/python-3.9-teal)](https://www.python.org/downloads/)

A pybuilder plugin that checks the cyclomatic complexity of your project using `radon`. For more information about radon refer to the [radon pypi page](https://pypi.org/project/radon/).

Expand Down Expand Up @@ -62,9 +62,9 @@ Run the Docker container:
docker container run \
--rm \
-it \
-v $PWD:/pybuilder-radon \
-v $PWD:/code \
pybradon:latest \
/bin/sh
/bin/bash
```

Execute the build:
Expand Down
11 changes: 9 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

use_plugin('python.core')
use_plugin('python.unittest')
use_plugin('python.install_dependencies')
use_plugin('python.flake8')
use_plugin('python.coverage')
use_plugin('python.distutils')
Expand All @@ -17,8 +18,11 @@
authors = [Author('Emilio Reyes', '[email protected]')]
summary = 'Pybuilder plugin for radon cyclomatic complexity'
url = 'https://github.com/soda480/pybuilder-radon'
version = '0.2.3'
default_task = ['clean', 'publish']
version = '0.3.0'
default_task = [
'clean',
'publish'
]
license = 'Apache License, Version 2.0'
description = summary

Expand Down Expand Up @@ -48,6 +52,9 @@ def set_properties(project):
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Software Development :: Build Tools'])
# only for functional testing plugin
# project.set_property('radon_break_build_average_complexity_threshold', 2.74)
Expand Down

0 comments on commit a79e5e7

Please sign in to comment.