forked from pool/python-pysol-cards
* Add support for dealing "binary_star".
* Add tests.
* Try to fix getstate() / setstate() ; with tests
- Switch to pyproject and autosetup macros.
- No more greedy globs in %files.
- Actually drop {Build,}Requires on six.
- Refresh python-pysol-cards-no-six.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysol-cards?expand=0&rev=9
60 lines
2.1 KiB
Diff
60 lines
2.1 KiB
Diff
Index: pysol_cards-0.16.0/pysol_cards.egg-info/requires.txt
|
|
===================================================================
|
|
--- pysol_cards-0.16.0.orig/pysol_cards.egg-info/requires.txt
|
|
+++ pysol_cards-0.16.0/pysol_cards.egg-info/requires.txt
|
|
@@ -1,2 +1 @@
|
|
random2
|
|
-six
|
|
Index: pysol_cards-0.16.0/pysol_cards/deal_game.py
|
|
===================================================================
|
|
--- pysol_cards-0.16.0.orig/pysol_cards/deal_game.py
|
|
+++ pysol_cards-0.16.0/pysol_cards/deal_game.py
|
|
@@ -13,9 +13,6 @@ from pysol_cards.cards import Card
|
|
from pysol_cards.cards import createCards
|
|
from pysol_cards.random import shuffle
|
|
|
|
-from six import print_
|
|
-
|
|
-
|
|
def empty_card():
|
|
ret = Card(0, 0, 0)
|
|
ret.empty = True
|
|
@@ -170,7 +167,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
|
|
@@ -304,7 +301,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.16.0/requirements.txt
|
|
===================================================================
|
|
--- pysol_cards-0.16.0.orig/requirements.txt
|
|
+++ pysol_cards-0.16.0/requirements.txt
|
|
@@ -1,2 +1 @@
|
|
random2
|
|
-six
|
|
Index: pysol_cards-0.16.0/setup.py
|
|
===================================================================
|
|
--- pysol_cards-0.16.0.orig/setup.py
|
|
+++ pysol_cards-0.16.0/setup.py
|
|
@@ -29,7 +29,7 @@ setup(name='pysol_cards',
|
|
],
|
|
packages=find_packages(exclude=('tests', 'tests.*')),
|
|
include_package_data=True,
|
|
- install_requires=['random2','six'],
|
|
+ install_requires=['random2'],
|
|
entry_points={
|
|
'console_scripts': [
|
|
'pysol_cards = pysol_cards.__main__:main',
|