Skip to content

Commit

Permalink
Fix noxfile and ci, run black
Browse files Browse the repository at this point in the history
  • Loading branch information
tandemdude committed Sep 11, 2022
1 parent 10a1f8e commit 7f7cbb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
pip install -U requests setuptools twine wheel -r requirements.txt
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
python release_webhook.py send_webhook
python release_helpers.py send_webhook
output=$(python -c "import lightbulb, sys; sys.stdout.write(lightbulb.__version__)")
echo "::set-output name=version::$output"
id: deploy
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SCRIPT_PATHS = [
PATH_TO_PROJECT,
"noxfile.py",
"release_webhook.py",
"release_helpers.py",
"docs/source/conf.py",
]

Expand Down
5 changes: 3 additions & 2 deletions release_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import sys
import re
import sys

import lightbulb

Expand All @@ -13,6 +13,7 @@
command = sys.argv[1]
if command == "send_webhook":
import requests

requests.post(
os.environ["RELEASE_WEBHOOK"],
json={
Expand All @@ -32,7 +33,7 @@

with open("lightbulb/__init__.py") as fp:
content = fp.read()
new_content = version_regex.sub(f"__version__ = \"{new_version}\"", content)
new_content = version_regex.sub(f'__version__ = "{new_version}"', content)

with open("lightbulb/__init__.py", "w") as fp:
fp.write(new_content)
Expand Down

0 comments on commit 7f7cbb3

Please sign in to comment.