mirror of
https://github.com/google/pybadges.git
synced 2025-07-21 04:31:07 +02:00
Ready 3.0.1 release
This commit is contained in:
@@ -2,7 +2,7 @@ version: 2
|
||||
jobs:
|
||||
Unit Test:
|
||||
docker:
|
||||
- image: cimg/python:3.10.2
|
||||
- image: cimg/python:3.12.0
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
@@ -10,6 +10,26 @@ jobs:
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s unit
|
||||
Compatibility Test 3.12.0:
|
||||
docker:
|
||||
- image: cimg/python:3.12.0
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s compatibility
|
||||
Compatibility Test 3.11.6:
|
||||
docker:
|
||||
- image: cimg/python:3.11.6
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s compatibility
|
||||
Compatibility Test 3.10:
|
||||
docker:
|
||||
- image: cimg/python:3.10.2
|
||||
@@ -30,29 +50,9 @@ jobs:
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s compatibility
|
||||
Compatibility Test 3.8:
|
||||
docker:
|
||||
- image: cimg/python:3.8.12
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s compatibility
|
||||
Compatibility Test 3.7:
|
||||
docker:
|
||||
- image: cimg/python:3.7.12
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: |
|
||||
pip install virtualenv
|
||||
pip install nox
|
||||
nox -f noxfile.py -s compatibility
|
||||
Lint:
|
||||
docker:
|
||||
- image: cimg/python:3.10.2
|
||||
- image: cimg/python:3.12.0
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
nox -f noxfile.py -s lint
|
||||
Type Check:
|
||||
docker:
|
||||
- image: cimg/python:3.7.12
|
||||
- image: cimg/python:3.12.0
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
nox -f noxfile.py -s type_check
|
||||
Release:
|
||||
docker:
|
||||
- image: cimg/python:3.10.2
|
||||
- image: cimg/python:3.12.0
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
@@ -92,10 +92,10 @@ workflows:
|
||||
- Lint
|
||||
- Unit Test
|
||||
- Type Check
|
||||
- Compatibility Test 3.12
|
||||
- Compatibility Test 3.11
|
||||
- Compatibility Test 3.10
|
||||
- Compatibility Test 3.9
|
||||
- Compatibility Test 3.8
|
||||
- Compatibility Test 3.7
|
||||
release:
|
||||
jobs:
|
||||
- Release:
|
||||
|
@@ -58,7 +58,7 @@ def compatibility(session, install):
|
||||
_run_tests(session)
|
||||
|
||||
|
||||
@nox.session(python=['3.7'])
|
||||
@nox.session(python=['3.12'])
|
||||
def type_check(session):
|
||||
"""Run type checking using pytype."""
|
||||
if sys.platform.startswith('win'):
|
||||
|
@@ -64,6 +64,11 @@ _NAME_TO_COLOR = {
|
||||
'gray': '#555',
|
||||
'lightgrey': '#9f9f9f',
|
||||
'lightgray': '#9f9f9f',
|
||||
'critical': '#e05d44',
|
||||
'important': '#fe7d37',
|
||||
'success': '#4c1',
|
||||
'informational': '#007ec6',
|
||||
'inactive': '#9f9f9f',
|
||||
}
|
||||
|
||||
|
||||
@@ -160,12 +165,12 @@ def badge(
|
||||
text. Can be an valid CSS color
|
||||
(see https://developer.mozilla.org/en-US/docs/Web/CSS/color) or a
|
||||
color name defined here:
|
||||
https://github.com/badges/shields/blob/master/lib/colorscheme.json
|
||||
https://github.com/badges/shields/blob/master/badge-maker/lib/color.js
|
||||
right_color: The color of the part of the badge containing the
|
||||
right-hand text. Can be an valid CSS color
|
||||
(see https://developer.mozilla.org/en-US/docs/Web/CSS/color) or a
|
||||
color name defined here:
|
||||
https://github.com/badges/shields/blob/master/lib/colorscheme.json
|
||||
https://github.com/badges/shields/blob/master/badge-maker/lib/color.js
|
||||
measurer: A text_measurer.TextMeasurer that can be used to measure the
|
||||
width of left_text and right_text.
|
||||
embed_logo: If True then embed the logo image directly in the badge.
|
||||
|
@@ -12,4 +12,4 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
__version__ = '3.0.0' # Also change in setup.py.
|
||||
__version__ = '3.0.1' # Also change in setup.py.
|
||||
|
4
setup.py
4
setup.py
@@ -39,7 +39,7 @@ def get_long_description():
|
||||
|
||||
setup(
|
||||
name='pybadges',
|
||||
version='3.0.0', # Also change in version.py.
|
||||
version='3.0.1', # Also change in version.py.
|
||||
author='Brian Quinlan',
|
||||
author_email='brian@sweetapp.com',
|
||||
classifiers=[
|
||||
@@ -53,6 +53,8 @@ setup(
|
||||
'Programming Language :: Python :: 3.8',
|
||||
'Programming Language :: Python :: 3.9',
|
||||
'Programming Language :: Python :: 3.10',
|
||||
'Programming Language :: Python :: 3.11',
|
||||
'Programming Language :: Python :: 3.12',
|
||||
'Operating System :: OS Independent',
|
||||
],
|
||||
description='A library and command-line tool for generating Github-style ' +
|
||||
|
Reference in New Issue
Block a user