Skip to content

Commit

Permalink
Modernize CI + Upgrade Dependencies + Drop <Py3.9 Support + Misc Impr…
Browse files Browse the repository at this point in the history
…ovements (#9)
  • Loading branch information
Iapetus-11 authored Jan 17, 2025
1 parent 973d8a7 commit 29d1ee7
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 257 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/black.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Run Checks

on: [ push, pull_request, workflow_dispatch ]

jobs:
checks:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4

- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -

- name: Configure Poetry
run: poetry config virtualenvs.in-project true

- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
run: poetry install

- name: Run Ruff linter
run: poetry run ruff check . --no-fix

- name: Run Ruff formatter
run: poetry run ruff format . --check
31 changes: 0 additions & 31 deletions .github/workflows/flake8.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ dmypy.json
.pyre/

.idea/

.ruff_cache/
12 changes: 12 additions & 0 deletions aiomcrcon/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
import importlib
from .client import MessageType, Client
from .errors import RCONConnectionError, ClientNotConnectedError, IncorrectPasswordError

__version__ = importlib.metadata.version("aio-mc-rcon")

__all__ = (
"MessageType",
"Client",
"RCONConnectionError",
"ClientNotConnectedError",
"IncorrectPasswordError",
"__version__",
)
209 changes: 23 additions & 186 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,24 @@
[tool.poetry]
name = "aio-mc-rcon"
version = "3.2.2"
version = "3.3.0"
description = "An async library for utilizing remote console on Minecraft Java Edition servers"
authors = ["Milo Weinberg <iapetus011@gmail.com>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/Iapetus-11/aio-mc-rcon"
keywords = ["rcon", "mcrcon", "async"]
keywords = ["rcon", "mcrcon", "async", "remote console", "minecraft"]
packages = [{ include = "aiomcrcon" }]

[tool.poetry.dependencies]
python = "^3.8,<4.0"

[tool.poetry.dev-dependencies]
black = "^21.11b0"
flake8 = "^4.0.1"

[tool.poetry.group.dev.dependencies]
black = "^23.12.1"
ruff = "^0.9.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.black]
[tool.ruff]
line-length = 100
target-version = ['py37', 'py38']
include = '\.pyi?$'
target-version = "py39"

0 comments on commit 29d1ee7

Please sign in to comment.