Skip to content

Commit

Permalink
Possible fix for git tag not working in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
howroyd committed Aug 27, 2023
1 parent fc6e60a commit 0335363
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "simonsays_drgreengiant",
"justMyCode": true
},
{
"name": "Python: main.py",
"type": "python",
Expand Down
8 changes: 4 additions & 4 deletions local.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"path": "."
}
],
//"settings": {
// "editor.fontSize": 13,
// "window.zoomLevel": 1.75
//},
"settings": {
"editor.fontSize": 13,
"window.zoomLevel": 1.75
},
"launch": {
"version": "0.2.0",
"configurations": []
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "simonsays_drgreengiant"
version = "2.0.0rc1"
version = "2.0.0rc2"
authors = [{ name = "Simon Howroyd", email = "howroydlsu@gmail.com" }]
description = "A Twitch Plays style programme to allow users in Twitch chats to control the broadcasters mouse and keyboard"
keywords = ["twitch", "chat", "twitchplays", "troll"]
Expand Down
3 changes: 3 additions & 0 deletions src/simonsays_drgreengiant/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from simonsays_drgreengiant import simonsays

simonsays.main()
7 changes: 6 additions & 1 deletion src/simonsays_drgreengiant/simonsays.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

from . import config, errorcodes, gui, twitchactions

VERSION = git.Repo().tags[-1].name
VERSION = "0.0.0dev"

try:
VERSION = git.Repo().tags[-1].name
except IndexErrror:
pass


def done_callback(future: cf.Future, msg: twitchirc.TwitchMessage, tag: str) -> None:
Expand Down

0 comments on commit 0335363

Please sign in to comment.