forked from pool/python-pysol-cards
- version update to 0.14.2 0.14.2 * Avoid requiring optional deps - https://github.com/shlomif/pysol_cards/issues/4 . 0.14.1 * Avoid comments in requirements.txt - https://github.com/shlomif/pysol_cards/issues/4 . 0.14.0 * Convert from pbr to https://pypi.org/project/pydistman/ . 0.12.0 * bump ver * enhance the README * 'id' is a builtin * add a test using named arguments * optimize into a class var * optimize * add an integration test - added patches fix https://github.com/shlomif/pysol_cards/issues/6 + python-pysol-cards-no-six.patch OBS-URL: https://build.opensuse.org/request/show/1041363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysol-cards?expand=0&rev=7
58 lines
2.0 KiB
Diff
58 lines
2.0 KiB
Diff
Index: pysol_cards-0.14.2/pysol_cards.egg-info/requires.txt
|
|
===================================================================
|
|
--- pysol_cards-0.14.2.orig/pysol_cards.egg-info/requires.txt
|
|
+++ pysol_cards-0.14.2/pysol_cards.egg-info/requires.txt
|
|
@@ -1,2 +1 @@
|
|
random2
|
|
-six
|
|
Index: pysol_cards-0.14.2/pysol_cards/deal_game.py
|
|
===================================================================
|
|
--- pysol_cards-0.14.2.orig/pysol_cards/deal_game.py
|
|
+++ pysol_cards-0.14.2/pysol_cards/deal_game.py
|
|
@@ -12,9 +12,6 @@
|
|
from pysol_cards.cards import Card, createCards
|
|
from pysol_cards.random import shuffle
|
|
|
|
-from six import print_
|
|
-
|
|
-
|
|
def empty_card():
|
|
ret = Card(0, 0, 0)
|
|
ret.empty = True
|
|
@@ -166,7 +163,7 @@ class Game(object):
|
|
return self.board.calc_string(renderer)
|
|
|
|
def print_layout(self, renderer):
|
|
- print_(self.calc_layout_string(renderer), sep='', end='')
|
|
+ print(self.calc_layout_string(renderer), sep='', end='')
|
|
|
|
def new_cards(self, cards):
|
|
self.cards = cards
|
|
@@ -291,7 +288,7 @@ class Game(object):
|
|
def der_katz(game):
|
|
is_ds = game.game_id == 'die_schlange'
|
|
if is_ds:
|
|
- print_('Foundations: H-A S-A D-A C-A H-A S-A D-A C-A')
|
|
+ print('Foundations: H-A S-A D-A C-A H-A S-A D-A C-A')
|
|
game.board = Board(9)
|
|
i = 0
|
|
for c in game:
|
|
Index: pysol_cards-0.14.2/requirements.txt
|
|
===================================================================
|
|
--- pysol_cards-0.14.2.orig/requirements.txt
|
|
+++ pysol_cards-0.14.2/requirements.txt
|
|
@@ -1,2 +1 @@
|
|
random2
|
|
-six
|
|
Index: pysol_cards-0.14.2/setup.py
|
|
===================================================================
|
|
--- pysol_cards-0.14.2.orig/setup.py
|
|
+++ pysol_cards-0.14.2/setup.py
|
|
@@ -27,5 +27,5 @@ setup(name='pysol_cards',
|
|
],
|
|
packages=find_packages(exclude=('tests', 'tests.*')),
|
|
include_package_data=True,
|
|
- install_requires=['random2','six'],
|
|
+ install_requires=['random2'],
|
|
)
|