Bug 265122 - [NEW PORT] databases/py-redis4: the Python interface to the Redis key-value store(version 4.x).
Summary: [NEW PORT] databases/py-redis4: the Python interface to the Redis key-value s...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Norikatsu Shigemura
URL: https://github.com/redis/redis-py
Keywords:
Depends on:
Blocks: 265123
  Show dependency treegraph
 
Reported: 2022-07-10 01:22 UTC by Norikatsu Shigemura
Modified: 2023-02-01 07:56 UTC (History)
1 user (show)

See Also:


Attachments
A new port for databases/py-redis4 (2.82 KB, patch)
2022-07-10 01:22 UTC, Norikatsu Shigemura
no flags Details | Diff
A patch to fix dependency on databases/py-redis (18.71 KB, patch)
2022-07-10 01:22 UTC, Norikatsu Shigemura
no flags Details | Diff
A patch to fix dependency on databases/py-redis (1.02 KB, patch)
2022-07-10 01:23 UTC, Norikatsu Shigemura
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Norikatsu Shigemura 2022-07-10 01:22:07 UTC
Created attachment 235159 [details]
A new port for databases/py-redis4

Add new port, databases/py-redis4 is the Python interface
to the Redis key-value store(version 4.x), and I hope to
rename databases/py-redis to databases/py-redis3.

Because I couldn't decide if I could fix dependency on 3.x to 4.x.

Many ports are effected, so fix dependency on databases/py-redis.
Only databases/py-rb is not effected, it was already capped.
I can't understand how to fix only databases/py-fakeredis, maybe...
Comment 1 Norikatsu Shigemura 2022-07-10 01:22:48 UTC
Created attachment 235160 [details]
A patch to fix dependency on databases/py-redis
Comment 2 Norikatsu Shigemura 2022-07-10 01:23:17 UTC
Created attachment 235161 [details]
A patch to fix dependency on databases/py-redis
Comment 3 Norikatsu Shigemura 2022-07-10 01:27:26 UTC
I tested on following environment:

============================= test session starts ==============================
platform freebsd13 -- Python 3.10.5, pytest-7.1.2, pluggy-1.0.0 -- /usr/local/bin/python3.10
cachedir: .pytest_cache
rootdir: /usr/ports/databases/py-redis4/work-py310/redis-4.3.4
plugins: asyncio-0.18.3
asyncio: mode=auto


And I got following result:

==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_ssl.py ______________________
tests/test_ssl.py:15: in <module>
    class TestSSL:
tests/test_ssl.py:29: in TestSSL
    raise IOError(f"No SSL certificates found. They should be in {CERT_DIR}")
E   OSError: No SSL certificates found. They should be in /usr/ports/databases/py-redis4/work-py310/docker/stunnel/keys
------------------------------- Captured stderr --------------------------------
/usr/ports/databases/py-redis4/work-py310/redis-4.3.4/tests/test_ssl.py:14: PytestUnknownMarkWarning: Unknown pytest.mark.ssl - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
  @pytest.mark.ssl
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 4.65s ===============================

test_ssl.py is failed, but it's no problem.
Comment 4 Hiroki Sato freebsd_committer freebsd_triage 2023-02-01 07:56:53 UTC
Assign to himself.