Skip to content

Commit

Permalink
Merge pull request #27 from jacebrowning/python-3.12
Browse files Browse the repository at this point in the history
Add support for Python 3.12
  • Loading branch information
jacebrowning committed Apr 8, 2024
2 parents 6bc2f2b + b7e571c commit 866d47c
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 112 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.11.7
poetry 1.7.1
python 3.12.2
poetry 1.8.2
2 changes: 1 addition & 1 deletion .verchew.ini
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ version = 1

cli = dot
cli_version_arg = -V
version = 7 || 9
version = 10
optional = true
message = This is only needed to generate UML diagrams for documentation.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes

## 1.2 (2024-04-08)

- Added support for Python 3.12.

## 1.1 (2024-02-04)

- Added `--mute`/`--unmute` option to control specific channels.
Expand Down
198 changes: 99 additions & 99 deletions poetry.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "slackoff"
version = "1.1"
version = "1.2"
description = "Automatically sign out of Slack workspaces on macOS."

license = "MIT"
Expand All @@ -27,6 +27,7 @@ classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Communications :: Chat",
]

Expand All @@ -37,7 +38,7 @@ python = "^3.10"
click = "^8.0"
minilog = "^2.1"
applescript = "^2021.2.9"
datafiles = "^2.1"
datafiles = "^2.2.2"
pync = "^2.0.3"

[tool.poetry.dev-dependencies]
Expand All @@ -47,10 +48,9 @@ black = "^22.1"
isort = "^5.10"

# Linters
mypy = "^1.0"
mypy = "^1.9"
pydocstyle = "^6.1"
pylint = "~2.15"
types-setuptools = "*"

# Testing
pytest = "^6.2"
Expand Down
10 changes: 5 additions & 5 deletions slackoff/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import PackageNotFoundError, version

try:
__version__ = get_distribution("slackoff").version
except DistributionNotFound:
__version__ = version("slackoff")
except PackageNotFoundError:
__version__ = "(local)"

del DistributionNotFound
del get_distribution
del PackageNotFoundError
del version

0 comments on commit 866d47c

Please sign in to comment.