From 4307aa0770da9d32dce294e50415f0b565239db7 Mon Sep 17 00:00:00 2001 From: ziggi Date: Wed, 27 May 2020 10:00:53 +0000 Subject: [PATCH] add httpi --- python/py-httpie/Makefile | 23 +++++++++++++++++++++++ python/py-httpie/distinfo | 3 +++ python/py-httpie/files/patch-setup.cfg | 11 +++++++++++ python/py-httpie/pkg-descr | 8 ++++++++ 4 files changed, 45 insertions(+) create mode 100644 python/py-httpie/Makefile create mode 100644 python/py-httpie/distinfo create mode 100644 python/py-httpie/files/patch-setup.cfg create mode 100644 python/py-httpie/pkg-descr diff --git a/python/py-httpie/Makefile b/python/py-httpie/Makefile new file mode 100644 index 00000000..a76d7235 --- /dev/null +++ b/python/py-httpie/Makefile @@ -0,0 +1,23 @@ +# Created by: Alex Dupre +# $FreeBSD: head/www/py-httpie/Makefile 522866 2020-01-13 08:27:10Z ale $ + +PORTNAME= httpie +PORTVERSION= 2.0.0 +CATEGORIES= www +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ale@FreeBSD.org +COMMENT= Command line HTTP client + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.22.0:python/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pygments>=2.5.2:python/py-pygments@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +USE_GITHUB= yes +GH_ACCOUNT= jakubroztocil + +NO_ARCH= yes + +.include diff --git a/python/py-httpie/distinfo b/python/py-httpie/distinfo new file mode 100644 index 00000000..09aaa5a9 --- /dev/null +++ b/python/py-httpie/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1578902674 +SHA256 (jakubroztocil-httpie-2.0.0_GH0.tar.gz) = 92ebdced5620ab56fd9f24e494c7c97eb0afee0f03a55bee41f773395c59dc5c +SIZE (jakubroztocil-httpie-2.0.0_GH0.tar.gz) = 1752529 diff --git a/python/py-httpie/files/patch-setup.cfg b/python/py-httpie/files/patch-setup.cfg new file mode 100644 index 00000000..41ad023e --- /dev/null +++ b/python/py-httpie/files/patch-setup.cfg @@ -0,0 +1,11 @@ +--- setup.cfg.orig 2018-11-10 08:48:27 UTC ++++ setup.cfg +@@ -13,7 +13,7 @@ norecursedirs = tests/fixtures + exclude = .git,.idea,__pycache__,build,dist,.tox,.pytest_cache,*.egg-info + + # +-# E241 - multiple spaces after ‘,’ ++# E241 - multiple spaces after ',' + # E501 - line too long + # W503 - line break before binary operator + ignore = E241,E501,W503 diff --git a/python/py-httpie/pkg-descr b/python/py-httpie/pkg-descr new file mode 100644 index 00000000..bb17d0cc --- /dev/null +++ b/python/py-httpie/pkg-descr @@ -0,0 +1,8 @@ +HTTPie (pronounced aych-tee-tee-pie) is a command line HTTP client. +Its goal is to make CLI interaction with web services as +human-friendly as possible. It provides a simple http command that +allows for sending arbitrary HTTP requests using a simple and natural +syntax, and displays colorized responses. HTTPie can be used for +testing, debugging, and generally interacting with HTTP servers. + +WWW: https://github.com/jakubroztocil/httpie