Skip to content
This repository was archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
update repo/package name
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb15 committed Jun 11, 2020
1 parent 7b060a5 commit 0cecac2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# python-package-boilerplate [![CircleCI](https://circleci.com/gh/15five/python-circleci-package-boilerplate.svg?style=svg&circle-token=f6c8494ec308088a8a65fe79e366763b02b38d9b)](https://circleci.com/gh/15five/python-package-boilerplate) [![PyPI version](https://badge.fury.io/py/python-package-boilerplate.svg)](https://badge.fury.io/py/python-package-boilerplate)
# python-circleci-package-boilerplate [![CircleCI](https://circleci.com/gh/15five/python-circleci-package-boilerplate.svg?style=svg&circle-token=f6c8494ec308088a8a65fe79e366763b02b38d9b)](https://circleci.com/gh/15five/python-circleci-package-boilerplate) [![PyPI version](https://badge.fury.io/py/python-circleci-package-boilerplate.svg)](https://badge.fury.io/py/python-circleci-package-boilerplate)
boilerplate repo you can use as a base for your python package.

## Features:
Expand All @@ -8,7 +8,7 @@ boilerplate repo you can use as a base for your python package.

## To Use:
1. Copy Repo
2. Replace all instances of "python-package-boilerplate" with your package name
2. Replace all instances of "python-circleci-package-boilerplate" with your package name
3. Replace "healthchecks_manager" folder name with package name. Do search/replace as well.
4. Go over setup.py and configure it to your liking
4. Replace code & tests
Expand Down
4 changes: 2 additions & 2 deletions healthchecks_manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def create_check(check_name: str, creation_params: dict = {}):
channel_name = channel["name"].lower()
if channel_name in channels_by_name:
raise ValueError(
f"python-package-boilerplate requires all channel names to be unique for identifcation purposes. \
f"python-circleci-package-boilerplate requires all channel names to be unique for identifcation purposes. \
{channel}\n\nis a duplicate of channel with id {channels_by_name[channel_name]}"
)
channels_by_name[channel_name] = channel["id"]
Expand Down Expand Up @@ -72,7 +72,7 @@ def get_endpoint(check_name: str, creation_params: dict = {}):
# todo: only raise error if duplicate check_name
# we don't want everything to fail if there is a single duplicate
raise ValueError(
f"python-package-boilerplate requires all check names to be unique for identifcation purposes. \
f"python-circleci-package-boilerplate requires all check names to be unique for identifcation purposes. \
{check}\n\nis a duplicate of check with ping_url {checks_by_name[existing_check_name]}"
)
checks_by_name[existing_check_name] = check["ping_url"]
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@


setup(
name="python-package-boilerplate",
name="python-circleci-package-boilerplate",
version=VERSION,
description="Your description here",
long_description="see repo for readme",
url="https://github.com/15five/python-package-boilerplate",
url="https://github.com/15five/python-circleci-package-boilerplate",
author="Your name here",
author_email="Your email here",
license="MIT",
Expand Down

0 comments on commit 0cecac2

Please sign in to comment.