Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 30 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,41 @@ name: CI

on:
push:
branches:
- master
pull_request:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Install xrandr
run: sudo apt-get install -y x11-xserver-utils
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r dev-requirements.txt
- name: Test
run: |
python setup.py test
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch full history for version detection from git tags

- name: Install xrandr
run: sudo apt-get install -y x11-xserver-utils

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install dependencies
run: |
uv sync --dev

- name: Run tests
run: |
uv run pytest

- name: Build package
run: |
uv build

Binary file added .pyproject.toml.swp
Binary file not shown.
1 change: 0 additions & 1 deletion dev-requirements.txt

This file was deleted.

53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[project]
name = "randrctl"
description = "Profile based screen manager for X"
authors = [
{ name = "Dmytro Kostiuchenko" }
]
license = { text = "GPL-3.0" }
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: X11 Applications",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Desktop Environment",
"Topic :: Utilities"
]
dependencies = [
"argcomplete",
"PyYAML"
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/koiuo/randrctl"
Repository = "https://github.com/koiuo/randrctl"
Issues = "https://github.com/koiuo/randrctl/issues"

[project.scripts]
randrctl = "randrctl.cli:main"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.targets.wheel]
packages = ["randrctl"]

[dependency-groups]
dev = [
"pytest>=7.4.4",
]
17 changes: 0 additions & 17 deletions setup.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions setup.py

This file was deleted.

477 changes: 477 additions & 0 deletions uv.lock

Large diffs are not rendered by default.