Skip to content

Commit 92a92eb

Browse files
authored
Merge pull request #43 from google/new-release
Ready 3.0.1 release
2 parents c855208 + 6f5529b commit 92a92eb

File tree

5 files changed

+26
-19
lines changed

5 files changed

+26
-19
lines changed

.circleci/config.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,47 @@ version: 2
22
jobs:
33
Unit Test:
44
docker:
5-
- image: cimg/python:3.10.2
5+
- image: cimg/python:3.12.0
66
steps:
77
- checkout
88
- run:
99
command: |
1010
pip install virtualenv
1111
pip install nox
1212
nox -f noxfile.py -s unit
13-
Compatibility Test 3.10:
13+
Compatibility Test 3.12.0:
1414
docker:
15-
- image: cimg/python:3.10.2
15+
- image: cimg/python:3.12.0
1616
steps:
1717
- checkout
1818
- run:
1919
command: |
2020
pip install virtualenv
2121
pip install nox
2222
nox -f noxfile.py -s compatibility
23-
Compatibility Test 3.9:
23+
Compatibility Test 3.11.6:
2424
docker:
25-
- image: cimg/python:3.9.10
25+
- image: cimg/python:3.11.6
2626
steps:
2727
- checkout
2828
- run:
2929
command: |
3030
pip install virtualenv
3131
pip install nox
3232
nox -f noxfile.py -s compatibility
33-
Compatibility Test 3.8:
33+
Compatibility Test 3.10:
3434
docker:
35-
- image: cimg/python:3.8.12
35+
- image: cimg/python:3.10.2
3636
steps:
3737
- checkout
3838
- run:
3939
command: |
4040
pip install virtualenv
4141
pip install nox
4242
nox -f noxfile.py -s compatibility
43-
Compatibility Test 3.7:
43+
Compatibility Test 3.9:
4444
docker:
45-
- image: cimg/python:3.7.12
45+
- image: cimg/python:3.9.10
4646
steps:
4747
- checkout
4848
- run:
@@ -52,7 +52,7 @@ jobs:
5252
nox -f noxfile.py -s compatibility
5353
Lint:
5454
docker:
55-
- image: cimg/python:3.10.2
55+
- image: cimg/python:3.12.0
5656
steps:
5757
- checkout
5858
- run:
@@ -62,7 +62,7 @@ jobs:
6262
nox -f noxfile.py -s lint
6363
Type Check:
6464
docker:
65-
- image: cimg/python:3.7.12
65+
- image: cimg/python:3.12.0
6666

6767
steps:
6868
- checkout
@@ -73,7 +73,7 @@ jobs:
7373
nox -f noxfile.py -s type_check
7474
Release:
7575
docker:
76-
- image: cimg/python:3.10.2
76+
- image: cimg/python:3.12.0
7777

7878
steps:
7979
- checkout
@@ -92,10 +92,10 @@ workflows:
9292
- Lint
9393
- Unit Test
9494
- Type Check
95+
- Compatibility Test 3.12
96+
- Compatibility Test 3.11
9597
- Compatibility Test 3.10
9698
- Compatibility Test 3.9
97-
- Compatibility Test 3.8
98-
- Compatibility Test 3.7
9999
release:
100100
jobs:
101101
- Release:

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def compatibility(session, install):
5858
_run_tests(session)
5959

6060

61-
@nox.session(python=['3.7'])
61+
@nox.session(python=['3.12'])
6262
def type_check(session):
6363
"""Run type checking using pytype."""
6464
if sys.platform.startswith('win'):

pybadges/__init__.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
'gray': '#555',
6565
'lightgrey': '#9f9f9f',
6666
'lightgray': '#9f9f9f',
67+
'critical': '#e05d44',
68+
'important': '#fe7d37',
69+
'success': '#4c1',
70+
'informational': '#007ec6',
71+
'inactive': '#9f9f9f',
6772
}
6873

6974

@@ -160,12 +165,12 @@ def badge(
160165
text. Can be an valid CSS color
161166
(see https://developer.mozilla.org/en-US/docs/Web/CSS/color) or a
162167
color name defined here:
163-
https://github.com/badges/shields/blob/master/lib/colorscheme.json
168+
https://github.com/badges/shields/blob/master/badge-maker/lib/color.js
164169
right_color: The color of the part of the badge containing the
165170
right-hand text. Can be an valid CSS color
166171
(see https://developer.mozilla.org/en-US/docs/Web/CSS/color) or a
167172
color name defined here:
168-
https://github.com/badges/shields/blob/master/lib/colorscheme.json
173+
https://github.com/badges/shields/blob/master/badge-maker/lib/color.js
169174
measurer: A text_measurer.TextMeasurer that can be used to measure the
170175
width of left_text and right_text.
171176
embed_logo: If True then embed the logo image directly in the badge.

pybadges/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
__version__ = '3.0.0' # Also change in setup.py.
15+
__version__ = '3.0.1' # Also change in setup.py.

setup.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def replace_relative_with_absolute(match):
3939

4040
setup(
4141
name='pybadges',
42-
version='3.0.0', # Also change in version.py.
42+
version='3.0.1', # Also change in version.py.
4343
author='Brian Quinlan',
4444
author_email='[email protected]',
4545
classifiers=[
@@ -53,6 +53,8 @@ def replace_relative_with_absolute(match):
5353
'Programming Language :: Python :: 3.8',
5454
'Programming Language :: Python :: 3.9',
5555
'Programming Language :: Python :: 3.10',
56+
'Programming Language :: Python :: 3.11',
57+
'Programming Language :: Python :: 3.12',
5658
'Operating System :: OS Independent',
5759
],
5860
description='A library and command-line tool for generating Github-style ' +

0 commit comments

Comments
 (0)