Bug 251847

Summary: [NEW PORT] www/py-httpbin: A simple HTTP Request & Response Service
Product: Ports & Packages Reporter: Evilham <contact>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: Closed FIXED    
Severity: Affects Only Me CC: cayen14422, ml+freebsd, rm
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://httpbin.org/
Bug Depends on:    
Bug Blocks: 251848, 252187    
Attachments:
Description Flags
py-httpbin_0.7.0
none
v2
none
py-httpbin_0.7.0
contact: maintainer-approval+
py-httpbin_0.7.0 contact: maintainer-approval+

Description Evilham 2020-12-14 21:33:25 UTC
This port is needed by the test suite for www/py-treq as introduced after treq 17.3.1 in: https://github.com/twisted/treq/commit/d827d61f29afaba71619e5d8cba00af45282cdbd

As www/py-treq is commited in the tree right now, the test fails for multiple reasons (patch updating it + fixing tests incoming).
Comment 1 Evilham 2020-12-14 21:34:17 UTC
Created attachment 220556 [details]
py-httpbin_0.7.0
Comment 2 Charlie Li 2020-12-27 06:26:41 UTC
Created attachment 220978 [details]
v2

I put this one under www instead of devel, since it can run standalone as its own httpbin instance (compared to the hosted ones).

devel/py-blinker is not needed for runtime, only test as an ancillary of devel/py-raven.

This port is also needed to run the www/py-requests test suite in bug 250941.
Comment 3 Evilham 2020-12-27 14:31:20 UTC
Created attachment 221001 [details]
py-httpbin_0.7.0

Adding the port to www makes sense with that perspective, thank you.

Regarding blinker: the standalone web app won't start without it and, e.g. the test suite for www/py-treq won't pass without it (ModuleNotFoundError: No module named 'blinker').
Indeed if you pip install httpbin, you will get blinker installed since raven[flask] is listed in setup.py and that lists blinker.

Ideally httpbin's authors would publish a new version without a raven dependency (there is a posterior commit removing it), but I'd argue that it makes more sense for the ports tree not to try to mask out this dependency for the time being.
Comment 4 Evilham 2020-12-27 14:36:23 UTC
Created attachment 221002 [details]
py-httpbin_0.7.0

Caught a typo with portlint.
Comment 5 commit-hook freebsd_committer 2021-02-24 09:54:52 UTC
A commit references this bug:

Author: rm
Date: Wed Feb 24 09:54:20 UTC 2021
New revision: 566461
URL: https://svnweb.freebsd.org/changeset/ports/566461

Log:
  A simple HTTP Request & Response Service.

  WWW: https://github.com/postmanlabs/httpbin

  PR:		251847
  Submitted by:	contact@evilham.com

Changes:
  head/www/Makefile
  head/www/py-httpbin/
  head/www/py-httpbin/Makefile
  head/www/py-httpbin/distinfo
  head/www/py-httpbin/files/
  head/www/py-httpbin/files/patch-test__httpbin.py
  head/www/py-httpbin/pkg-descr
Comment 6 commit-hook freebsd_committer 2021-02-24 10:01:55 UTC
A commit references this bug:

Author: rm
Date: Wed Feb 24 10:01:47 UTC 2021
New revision: 566463
URL: https://svnweb.freebsd.org/changeset/ports/566463

Log:
  www/py-httpbin: add NO_ARCH

  Package installs some binary files (images), but it's not the reason to mark
  it platform-dependent.

  PR:		251847

Changes:
  head/www/py-httpbin/Makefile
Comment 7 Ruslan Makhmatkhanov freebsd_committer 2021-02-24 10:02:36 UTC
New port added, thank you!
Comment 8 cayen14422 2021-03-04 16:17:33 UTC
MARKED AS SPAM