Skip to content

Commit

Permalink
Minor fixes in the publishing process
Browse files Browse the repository at this point in the history
Fixes are:

- Update badges in `README.md`
- Fix `pip search` as it's deprecated
    - See: pypa/pip#5216
  • Loading branch information
rarylson committed Oct 21, 2022
1 parent f70e7dc commit 1ea92c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: tests

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]

jobs:
test:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ develop-deps-macos:

install-develop:
virtualenv $(VENV)
. $(VENV)/bin/activate && pip install --upgrade pip
. $(VENV)/bin/activate && pip install -r requirements-dev.txt
. $(VENV)/bin/activate && python setup.py develop

Expand Down Expand Up @@ -114,10 +115,10 @@ publish-github:
git push origin "v$(VERSION)"

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

check-publish:
pip search $(NAME) | grep -o $(VERSION)
pip index versions $(NAME) | grep -o "Available versions: $(VERSION)"

publish-test: publish-pypitest check-publish-test

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
update-conf.py
==============

[![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)
[![Coveralls - Coverage Percentage](https://img.shields.io/coveralls/rarylson/update-conf.py/master.svg)](https://coveralls.io/r/rarylson/update-conf.py)
[![Pypi - Downloads](https://img.shields.io/pypi/dm/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
[![Pypi - Version](https://img.shields.io/pypi/v/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
[![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)
[![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)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
[![PyPI - Version](https://img.shields.io/pypi/v/update-conf.py.svg)](https://pypi.python.org/pypi/update-conf.py/)
[![License](https://img.shields.io/pypi/l/update-conf.py.svg)](LICENSE)

Generate config files from `conf.d` like directories.
Expand Down

0 comments on commit 1ea92c8

Please sign in to comment.