Bug 221090 - [NEW PORT] net/py-pyenet: Python wrapper for the ENet library
Summary: [NEW PORT] net/py-pyenet: Python wrapper for the ENet library
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords: feature, needs-qa
Depends on:
Blocks: 216459
  Show dependency treegraph
 
Reported: 2017-07-29 14:43 UTC by Ilia Skalozubov
Modified: 2019-12-09 15:35 UTC (History)
3 users (show)

See Also:
koobs: maintainer-feedback? (freebsd)


Attachments
py-pyenet.shar (1.64 KB, text/plain)
2017-07-29 14:43 UTC, Ilia Skalozubov
no flags Details
py-pyenet.shar based on source from PyPI (2.10 KB, text/plain)
2018-03-16 20:05 UTC, Ilia Skalozubov
freebsd: maintainer-approval+
Details
Updated shar (1.62 KB, text/plain)
2019-11-22 13:55 UTC, Dmitry Marakasov
koobs: maintainer-approval? (freebsd)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilia Skalozubov 2017-07-29 14:43:11 UTC
Created attachment 184833 [details]
py-pyenet.shar

pyenet is a python wrapper for the ENet library by Lee Salzman,
http://enet.bespin.org

WWW: https://github.com/swalladge/pyenet


portlint: OK (looks fine.)
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2017-08-01 06:04:28 UTC
Thank you Ilia. Some review items:

- Prefer MASTER_SITES=CHEESESHOP by default (unless important files missing from PyPI sdist). Remove USE_GITHUB/GH_* accordingly.
- setup.py (and PyPI) says version is lib_version = "1.3.13" (plus "post3" suffix). Consider using DISTVERSION=1.3.13.post3 to match
- cython is listed in both setup.py: setup_requires and install_requires. this makes it both a BUILD_DEPENDS and a RUN_DEPENDS (the latter is missing).
- setup.py:description is "A python wrapper for the ENet library". Set COMMENT to match (minus leading "A", for portlint compliance)

Please also confirm this port passes poudriere QA if possible. For more information and instructions, see: https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/testing.html
Comment 2 fiziologus 2017-09-28 07:47:53 UTC
https://github.com/swalladge/pyenet -- broken (404), port itself no tested.


Copy distfile here: https://drive.google.com/file/d/0B40aWdSzJGYvZWlYWklqR1E4UEU/view?usp=sharing (open for all).
Comment 3 Dmitry Marakasov freebsd_committer freebsd_triage 2017-12-05 12:01:41 UTC
Does not build.

===>  Configuring for py27-pyenet-1.3.13.post3
pypandoc not available, using plain contents of readme
Downloading enet
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 71, in <module>
    urllib_request.urlretrieve(enet_url, enet_file, reporthook)
  File "/usr/local/lib/python2.7/urllib.py", line 98, in urlretrieve
    return opener.retrieve(url, filename, reporthook, data)
  File "/usr/local/lib/python2.7/urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "/usr/local/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/local/lib/python2.7/urllib.py", line 350, in open_http
    h.endheaders(data)
  File "/usr/local/lib/python2.7/httplib.py", line 1038, in endheaders
    self._send_output(message_body)
  File "/usr/local/lib/python2.7/httplib.py", line 882, in _send_output
    self.send(msg)
  File "/usr/local/lib/python2.7/httplib.py", line 844, in send
    self.connect()
  File "/usr/local/lib/python2.7/httplib.py", line 821, in connect
    self.timeout, self.source_address)
  File "/usr/local/lib/python2.7/socket.py", line 557, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno 8] hostname nor servname provided, or not known

Of course it is not allowed to access the network while building.
Comment 4 Ilia Skalozubov 2018-03-16 20:05:55 UTC
Created attachment 191560 [details]
py-pyenet.shar based on source from PyPI

Sorry for the wait, I needed to understand the situation with the removal of the sources from GitHub.
According to the information received, swalladge removed his project in favor of PyPI version of pyenet from Piqueserver Team.

portlint: OK (looks fine.)
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2019-11-22 13:55:52 UTC
Created attachment 209341 [details]
Updated shar

Time to finish this. I've updated the shar, how does it look like? Updated to 1.3.13.post7 which bundles enet sources (not that I like it, but it's likely the most painless way to handle it) which allows to simplify the port.
Comment 6 Dmitry Marakasov freebsd_committer freebsd_triage 2019-11-22 13:56:32 UTC
(In reply to Dmitry Marakasov from comment #5)
(not tested with unknown horizons yet)
Comment 7 commit-hook freebsd_committer freebsd_triage 2019-12-09 15:35:35 UTC
A commit references this bug:

Author: amdmi3
Date: Mon Dec  9 15:34:49 UTC 2019
New revision: 519620
URL: https://svnweb.freebsd.org/changeset/ports/519620

Log:
  - Add net/py-pyenet

  pyenet is a python wrapper for the ENet library by Lee Salzman,
  http://enet.bespin.org

  WWW: https://pypi.python.org/pypi/pyenet

  PR:		221090
  Submitted by:	freebsd@skinc.ru

Changes:
  head/net/Makefile
  head/net/py-pyenet/
  head/net/py-pyenet/Makefile
  head/net/py-pyenet/distinfo
  head/net/py-pyenet/files/
  head/net/py-pyenet/files/patch-README.rst
  head/net/py-pyenet/pkg-descr