[Bug 222112] lang/python36 selectors.select() does not block on named pipes / mkfifo

2017-09-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222112

Jeff Kletsky  changed:

   What|Removed |Added

 Status|New |Closed
 Resolution|--- |Works As Intended

--- Comment #1 from Jeff Kletsky  ---
Based on tobic@ comment, this does not appear to be a bug, but an outcome of
how FIFOs are implemented.

https://forums.freebsd.org/threads/62377/#post-360237

Looking at this on an Ubuntu system and a similar Python version shows similar
behavior to that seen under FreeBSD. It appears that Mac OS X is "different" in
how it is implemented.

Closing as "works as intended"

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


[Bug 222112] lang/python36 selectors.select() does not block on named pipes / mkfifo

2017-09-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222112

--- Comment #2 from Jeff Kletsky  ---
@tobic code, for anyone that finds this through search:

After opening the FIFO for reading, open it again for writing to prevent your
program from ever seeing EOF at all (i.e. pretend there is always at least 1
writer). There is no need to use select() here; readline() will already block
and wait for new data.

Code:
import logging

def test():
command_pipe = 'commands-in'

logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()

logger.info(f"Opening command pipe: '{command_pipe}'")
with open(command_pipe, "r") as cp, open(command_pipe, "w"):
while True:
line = cp.readline()
logger.info(f"Read: '{line}'")


if __name__ == '__main__':
test()

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


[Bug 221889] [NEW PORT] www/py-treq: Requests-like API built on top of twisted.web's Agent

2017-09-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221889

Kubilay Kocak  changed:

   What|Removed |Added

 CC||pyt...@freebsd.org
   Keywords||feature, needs-patch,
   ||needs-qa
 Status|New |Open

--- Comment #1 from Kubilay Kocak  ---
Looks OK, a few considerations:

- Ideally, MAINTAINER for new ports should be author unless compelling reason
not to be. python is happy to be a fallback in the case of maintainers falling
away over time however.

- Consider invoking trial via "${PYTHON_CMD} -m
"  rather than localbase scripts, which cannot
be relied upon to point to the same/expected version of Python over time (users
can change 'default' version of python at any time).

- Add LICENSE_FILE if one exists (or is provided by) in WKRSRC (extracted
tarball). One is provided (named LICENSE)

- Upstream 'Trove classifiers' specify 2.7+ support (2.7,3.3+ precisely), but
USES=python is limited to -2.7:

"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",

- install_requires depends explicitly on "Twisted[tls] >= 16.4.0", you may want
this port to depend 'explicitly' on those optional 'tls' python packages to
ensure they're installed (the twisted port may or may not install them, as
they're, well, optional)

Confirmation of QA also not provided

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"


[Bug 220706] mail/postfix-policyd-spf-python: Update to 2.0.1

2017-09-07 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220706

Yasuhiro KIMURA  changed:

   What|Removed |Added

   See Also||https://bugs.freebsd.org/bu
   ||gzilla/show_bug.cgi?id=2219
   ||63

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
freebsd-python@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"