Bug 251847 - [NEW PORT] www/py-httpbin: A simple HTTP Request & Response Service
Summary: [NEW PORT] www/py-httpbin: A simple HTTP Request & Response Service
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: Ruslan Makhmatkhanov
URL: https://httpbin.org/
Keywords: patch
Depends on:
Blocks: 251848 252187
  Show dependency treegraph
 
Reported: 2020-12-14 21:33 UTC by Evilham
Modified: 2021-02-24 10:02 UTC (History)
2 users (show)

See Also:


Attachments
py-httpbin_0.7.0 (4.67 KB, patch)
2020-12-14 21:34 UTC, Evilham
no flags Details | Diff
v2 (3.41 KB, patch)
2020-12-27 06:26 UTC, Charlie Li
no flags Details | Diff
py-httpbin_0.7.0 (5.28 KB, patch)
2020-12-27 14:31 UTC, Evilham
contact: maintainer-approval+
Details | Diff
py-httpbin_0.7.0 (5.27 KB, patch)
2020-12-27 14:36 UTC, Evilham
contact: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!