17
0

4 Commits

Author SHA256 Message Date
9cdad6b0f6 Accepting request 1248408 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1248408
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysol-cards?expand=0&rev=7
2025-02-25 15:48:28 +00:00
ed931c4f34 Accepting request 1248390 from home:glaubitz:branches:devel:languages:python
- Update to 0.18.1
  * Update build for/on fedora41
  * Remove entry point
- from version 0.18.0
  * Avoid "id" as a varname, because it clashes with a python built-in name
  * Remove remaining Python2 compat layer
  * Clean-up pydistman/cookiecutter fluff before PyPI
  * Clean-up pydistman/cookiecutter fluff before prepping a PyPI package
- Adjust sed statement to drop shebangs instead of modifying them
- Drop python-pysol-cards-no-six.patch, fixed upstream
- Remove pysol_cards binary from %files section
- Switch package to modern Python Stack on SLE-15
  * Use Python 3.11 on SLE-15 by default
  * Drop support for older Python versions

OBS-URL: https://build.opensuse.org/request/show/1248390
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysol-cards?expand=0&rev=13
2025-02-25 14:37:13 +00:00
cd148424e5 Accepting request 1227062 from devel:languages:python
- remove unneeded dependencies

OBS-URL: https://build.opensuse.org/request/show/1227062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysol-cards?expand=0&rev=6
2024-11-28 21:42:56 +00:00
764f6175d2 - remove unneeded dependencies
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pysol-cards?expand=0&rev=11
2024-11-28 08:40:51 +00:00
5 changed files with 30 additions and 72 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0b87ca7b3f99155cccd3cfd739f739f7744d6f8198222c6d493a034a3d4570c3
size 18987

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:103c7c0c319e72e836e099bbb47ff54be729d975e35c11ba74d4ac5e4286b8eb
size 17975

View File

@@ -1,59 +0,0 @@
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',

View File

@@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Feb 25 14:04:45 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.18.1
* Update build for/on fedora41
* Remove entry point
- from version 0.18.0
* Avoid "id" as a varname, because it clashes with a python built-in name
* Remove remaining Python2 compat layer
* Clean-up pydistman/cookiecutter fluff before PyPI
* Clean-up pydistman/cookiecutter fluff before prepping a PyPI package
- Adjust sed statement to drop shebangs instead of modifying them
- Drop python-pysol-cards-no-six.patch, fixed upstream
- Remove pysol_cards binary from %files section
- Switch package to modern Python Stack on SLE-15
* Use Python 3.11 on SLE-15 by default
* Drop support for older Python versions
-------------------------------------------------------------------
Thu Nov 28 08:40:26 UTC 2024 - Dirk Müller <dmueller@suse.com>
- remove unneeded dependencies
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 4 00:42:10 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com> Mon Mar 4 00:42:10 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pysol-cards # spec file for package python-pysol-cards
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# Copyright (c) 2020 Malcolm J Lewis <malcolmlewis@opensuse.org> # Copyright (c) 2020 Malcolm J Lewis <malcolmlewis@opensuse.org>
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@@ -17,18 +17,14 @@
# #
%define pythons python3 %{?sle15_python_module_pythons}
Name: python-pysol-cards Name: python-pysol-cards
Version: 0.16.0 Version: 0.18.1
Release: 0 Release: 0
Summary: Python module for pysol-cards Summary: Python module for pysol-cards
License: Apache-2.0 License: Apache-2.0
URL: https://pypi.org/project/pysol-cards/ URL: https://pypi.org/project/pysol-cards/
Source: https://files.pythonhosted.org/packages/source/p/pysol_cards/pysol_cards-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pysol_cards/pysol_cards-%{version}.tar.gz
# https://github.com/shlomif/pysol_cards/issues/6
Patch0: python-pysol-cards-no-six.patch
BuildRequires: %{python_module oslotest}
BuildRequires: %{python_module pbr >= 2.0}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module random2} BuildRequires: %{python_module random2}
@@ -47,8 +43,7 @@ Freecell Pro deals.
%prep %prep
%autosetup -p1 -n pysol_cards-%{version} %autosetup -p1 -n pysol_cards-%{version}
# Fix rpm runtime dependency rpmlint error replace the shebang in all the scripts with %%{_bindir}/python3 find . -name "*.py" -exec sed -i '/\#\!\ \/usr\/bin\/env\ python/d' {} \;
find . -name "*.py" -exec sed -i 's|#! %{_bindir}/env python|#!%{_bindir}/python3|' {} ";"
%build %build
export LC_ALL=en_US.utf8 export LC_ALL=en_US.utf8
@@ -66,7 +61,6 @@ sed -i '/^addopts/d' setup.cfg
%files %{python_files} %files %{python_files}
%doc AUTHORS CHANGELOG.rst README.rst %doc AUTHORS CHANGELOG.rst README.rst
%license LICENSE %license LICENSE
%{_bindir}/pysol_cards
%{python_sitelib}/pysol_cards %{python_sitelib}/pysol_cards
%{python_sitelib}/pysol_cards-%{version}.dist-info %{python_sitelib}/pysol_cards-%{version}.dist-info