Skip to content

Commit e8b3074

Browse files
committed
Minor fixes in the publishing process
Fixes are: - Update badges in `README.md` - Fix `pip search` as it's deprecated - See: pypa/pip#5216
1 parent f70e7dc commit e8b3074

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
name: tests
2+
13
on:
24
push:
35
branches: ["master"]
46
pull_request:
57
branches: ["master"]
68

79
jobs:
8-
test:
10+
tests:
911
runs-on: ubuntu-latest
1012
strategy:
1113
matrix:

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ develop-deps-macos:
8686

8787
install-develop:
8888
virtualenv $(VENV)
89+
. $(VENV)/bin/activate && pip install --upgrade pip
8990
. $(VENV)/bin/activate && pip install -r requirements-dev.txt
9091
. $(VENV)/bin/activate && python setup.py develop
9192

@@ -114,10 +115,10 @@ publish-github:
114115
git push origin "v$(VERSION)"
115116

116117
check-publish-test:
117-
pip search --index https://testpypi.python.org/pypi/ $(NAME) | grep -o $(VERSION)
118+
pip index versions --index https://testpypi.python.org/pypi/ $(NAME) | grep -o "Available versions: $(VERSION)"
118119

119120
check-publish:
120-
pip search $(NAME) | grep -o $(VERSION)
121+
pip index versions $(NAME) | grep -o "Available versions: $(VERSION)"
121122

122123
publish-test: publish-pypitest check-publish-test
123124

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
update-conf.py
22
==============
33

4-
[![GitHub Workflow - Build Status](https://github.com/github/docs/actions/workflows/test.yml/badge.svg?branch=master)](https://travis-ci.org/rarylson/update-conf.py)
5-
[![Coveralls - Coverage Percentage](https://img.shields.io/coveralls/rarylson/update-conf.py/master.svg)](https://coveralls.io/r/rarylson/update-conf.py)
6-
[![Pypi - Downloads](https://img.shields.io/pypi/dm/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
7-
[![Pypi - Version](https://img.shields.io/pypi/v/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
4+
[![Test Status](https://github.com/rarylson/update-conf.py/actions/workflows/tests/badge.svg?branch=master&event=push)](https://github.com/rarylson/update-conf.py/actions/workflows/test.yml)
5+
[![Coverage Status](https://coveralls.io/repos/github/rarylson/update-conf.py/badge.svg?branch=master)](https://coveralls.io/github/rarylson/update-conf.py?branch=master)
6+
[![PyPI - Downloads](https://img.shields.io/pypi/dm/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
7+
[![PyPI - Version](https://img.shields.io/pypi/v/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
88
[![License](https://img.shields.io/pypi/l/update-conf.py.svg)](LICENSE)
99

1010
Generate config files from `conf.d` like directories.

0 commit comments

Comments
 (0)