Skip to content

Commit

Permalink
unbreak py3-steam and steamctl by switching to source with protobuf
Browse files Browse the repository at this point in the history
files regenerated with our more up-to-date version
  • Loading branch information
rfht committed May 4, 2024
1 parent 036b1a2 commit 38b4698
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 35 deletions.
8 changes: 3 additions & 5 deletions games/py-steam/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
COMMENT = module for interacting with various Steam features

MODPY_EGG_VERSION = 1.4.4
DISTNAME = steam-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
PKGNAME = py-steam-1.4.4pl0
DIST_TUPLE += github rfht py-steam \
e26d2eb52c90dc2c07cc88ea910d59bf873d330d .
CATEGORIES = games
HOMEPAGE = https://github.com/ValvePython/steam

# MIT
PERMIT_PACKAGE = Yes

MODULES = lang/python
MODPY_PI = Yes
MODPY_PYBUILD = setuptools

RUN_DEPENDS = converters/py-vdf${MODPY_FLAVOR} \
Expand Down
4 changes: 2 additions & 2 deletions games/py-steam/distinfo
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SHA256 (steam-1.4.4.tar.gz) = K1vWkRwNSnMS9EG40WK52NR8i+u478bIhnOTsDI/pS4=
SIZE (steam-1.4.4.tar.gz) = 644071
SHA256 (rfht-py-steam-e26d2eb52c90dc2c07cc88ea910d59bf873d330d.tar.gz) = pxX2a3DBS2g9f5m6BiAN6qayea8yoMEdNy+dh2vAxXg=
SIZE (rfht-py-steam-e26d2eb52c90dc2c07cc88ea910d59bf873d330d.tar.gz) = 713366
17 changes: 17 additions & 0 deletions games/py-steam/patches/patch-requirements_txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Index: requirements.txt
--- requirements.txt.orig
+++ requirements.txt
@@ -1,11 +1,10 @@
six>=1.10.0
-pycryptodomex>=3.7.0
+pycryptodome>=3.7.0
requests>=2.9.1
urllib3<2
vdf>=3.3
gevent>=1.3.0
-protobuf~=3.0; python_version >= '3'
-protobuf<3.18.0; python_version < '3'
+protobuf
gevent-eventemitter~=2.1
cachetools>=3.0.0
enum34==1.1.2; python_version < '3.4'
4 changes: 2 additions & 2 deletions games/py-steam/patches/patch-setup_py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ Index: setup.py
- 'pycryptodomex>=3.7.0',
+ 'pycryptodome>=3.7.0',
'requests>=2.9.1',
'urllib3<2',
'vdf>=3.3',
'cachetools>=3.0.0',
@@ -26,7 +26,7 @@ install_requires = [
@@ -27,7 +27,7 @@ install_requires = [
install_extras = {
'client': [
'gevent>=1.3.0',
Expand Down
16 changes: 16 additions & 0 deletions games/py-steam/patches/patch-steam_client_builtins_apps_py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
fix:
AttributeError: Protocol message CMsgClientPICSProductInfoRequest has no
"supports_package_tokens" field.

Index: steam/client/builtins/apps.py
--- steam/client/builtins/apps.py.orig
+++ steam/client/builtins/apps.py
@@ -129,7 +129,7 @@ class Apps(object):

message.body.meta_data_only = meta_data_only
message.body.num_prev_failed = 0
- message.body.supports_package_tokens = 1
+ #message.body.supports_package_tokens = 1

job_id = self.send_job(message)

19 changes: 0 additions & 19 deletions games/py-steam/patches/patch-steam_egg-info_requires_txt

This file was deleted.

107 changes: 100 additions & 7 deletions games/py-steam/pkg/PLIST

Large diffs are not rendered by default.

0 comments on commit 38b4698

Please sign in to comment.