Skip to content

Commit

Permalink
Fix 0.17 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
numirias committed Feb 21, 2021
1 parent 6bcdb55 commit 4b57f31
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
language: python
python:
- "3.5"
- "3.6"
- "3.7-dev"
- "3.7"
- "3.8"
- "3.9"
addons:
apt:
packages:
- xserver-xephyr
jobs:
include:
- python: 3.6
- python: 3.9
env: TOXENV=lint
install:
- pip install tox-travis codecov
Expand Down
2 changes: 1 addition & 1 deletion lib/qtile
Submodule qtile updated 269 files
12 changes: 6 additions & 6 deletions plasma/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ def add(self, client):
def remove(self, client):
self.root.find_payload(client).remove()

def configure(self, client, screen):
self.root.x = screen.x
self.root.y = screen.y
self.root.width = screen.width
self.root.height = screen.height
def configure(self, client, screen_rect):
self.root.x = screen_rect.x
self.root.y = screen_rect.y
self.root.width = screen_rect.width
self.root.height = screen_rect.height
node = self.root.find_payload(client)
border_width = self.border_width_single if self.root.tree == [node] \
else self.border_width
Expand All @@ -90,7 +90,7 @@ def configure(self, client, screen):
width-2*border_width,
height-2*border_width,
border_width,
self.group.qtile.color_pixel(border_color),
border_color,
margin=self.margin,
)
# Always keep tiles below floating windows
Expand Down
2 changes: 1 addition & 1 deletion plasma/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ def restore(self, node):
try:
parent, idx, sizes, fixed, flip = restorables[node.payload]
except KeyError:
raise NotRestorableError()
raise NotRestorableError() # pylint: disable=raise-missing-from
if parent not in self.root:
# Don't try to restore if parent is not part of the tree anymore
raise NotRestorableError()
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
setup(
name='qtile-plasma',
packages=['plasma'],
version='1.5.5',
version='1.5.6',
description='A flexible, tree-based layout for Qtile',
author='numirias',
author_email='[email protected]',
url='https://github.com/numirias/qtile-plasma',
license='MIT',
python_requires='>=3',
install_requires=['xcffib>=0.5.0', 'qtile>=0.14.2'],
install_requires=['xcffib>=0.5.0', 'qtile>=0.17'],
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Desktop Environment :: Window Managers',
],
)
5 changes: 3 additions & 2 deletions tests/test_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
sys.path.insert(0, str(Path(__file__).parents[1] / 'lib')) # noqa: E402
from qtile.libqtile import config
from qtile.libqtile.layout import Floating
from qtile.test.conftest import no_xinerama, qtile, xephyr, xvfb # noqa: F401
from qtile.test.conftest import manager as qtile, no_xinerama, xephyr, xvfb # noqa: F401
from qtile.test.layouts.layout_utils import assert_focused
from qtile.libqtile.confreader import Config as _Config


@fixture
Expand All @@ -25,7 +26,7 @@ def grid(qtile):
qtile.c.layout.mode_vertical()
qtile.test_window('d')

class Config:
class Config(_Config):

auto_fullscreen = True
main = None
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37,lint,coverage-report
envlist = py37,py38,py39,lint,coverage-report

[testenv]
deps =
Expand All @@ -12,7 +12,7 @@ commands =
coverage run --parallel -m pytest -v {posargs} tests/

[testenv:coverage-report]
basepython = python3.7
basepython = python3.9
skip_install = true
deps = coverage
commands =
Expand Down Expand Up @@ -49,3 +49,4 @@ disable =
no-self-use,
too-many-instance-attributes,
fixme,
raise-missing-from,

0 comments on commit 4b57f31

Please sign in to comment.