From owner-dev-commits-ports-all@freebsd.org Mon Sep 27 20:34:13 2021 Return-Path: Delivered-To: dev-commits-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B4B6566F7EB; Mon, 27 Sep 2021 20:34:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HJDrP2nQtz4n6D; Mon, 27 Sep 2021 20:34:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3B9E4178C4; Mon, 27 Sep 2021 20:34:13 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 18RKYD1i009705; Mon, 27 Sep 2021 20:34:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18RKYDAD009704; Mon, 27 Sep 2021 20:34:13 GMT (envelope-from git) Date: Mon, 27 Sep 2021 20:34:13 GMT Message-Id: <202109272034.18RKYDAD009704@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: edcdb5ee3405 - main - www/py-ghp-import: Add py-ghp-import 2.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: edcdb5ee3405f9fa4dcb33a256ed28e6ca9ccfea Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Sep 2021 20:34:14 -0000 The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=edcdb5ee3405f9fa4dcb33a256ed28e6ca9ccfea commit edcdb5ee3405f9fa4dcb33a256ed28e6ca9ccfea Author: Po-Chuan Hsieh AuthorDate: 2021-09-27 20:33:37 +0000 Commit: Po-Chuan Hsieh CommitDate: 2021-09-27 20:33:37 +0000 www/py-ghp-import: Add py-ghp-import 2.0.2 GitHub Pages is a pretty awesome service that GitHub provides for hosting project documentation. The only thing is that it requires a gh-pages branch that is the site's document root. This means that keeping documentation sources in the branch with code is a bit difficult. And it really turns into a head scratcher for things like Sphinx that want to access documentation sources and code sources at the same time. Then I stumbled across an interesting looking package called github-tools that looked almost like what I wanted. It was a tad complicated and more involved than I wanted but it gave me an idea. Why not just write a script that can copy a directory to the gh-pages branch of the repository. This saves me from even having to think about the branch and everything becomes magical. This is what ghp-import was written for. WWW: https://github.com/c-w/ghp-import --- www/Makefile | 1 + www/py-ghp-import/Makefile | 22 ++++++++++++++++++++++ www/py-ghp-import/distinfo | 3 +++ www/py-ghp-import/pkg-descr | 16 ++++++++++++++++ 4 files changed, 42 insertions(+) diff --git a/www/Makefile b/www/Makefile index 0b8c2f140771..d3ee8ebb6b98 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1635,6 +1635,7 @@ SUBDIR += py-frozen-flask SUBDIR += py-gandi.cli SUBDIR += py-gevent-websocket + SUBDIR += py-ghp-import SUBDIR += py-google SUBDIR += py-google-api-core SUBDIR += py-google-api-python-client diff --git a/www/py-ghp-import/Makefile b/www/py-ghp-import/Makefile new file mode 100644 index 000000000000..a83005d7eb0b --- /dev/null +++ b/www/py-ghp-import/Makefile @@ -0,0 +1,22 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= ghp-import +PORTVERSION= 2.0.2 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Copy your docs directly to the gh-pages branch + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.1:devel/py-dateutil@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-ghp-import/distinfo b/www/py-ghp-import/distinfo new file mode 100644 index 000000000000..81c74343f6cd --- /dev/null +++ b/www/py-ghp-import/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1632773097 +SHA256 (ghp-import-2.0.2.tar.gz) = 947b3771f11be850c852c64b561c600fdddf794bab363060854c1ee7ad05e071 +SIZE (ghp-import-2.0.2.tar.gz) = 10928 diff --git a/www/py-ghp-import/pkg-descr b/www/py-ghp-import/pkg-descr new file mode 100644 index 000000000000..5c34eb2101d4 --- /dev/null +++ b/www/py-ghp-import/pkg-descr @@ -0,0 +1,16 @@ +GitHub Pages is a pretty awesome service that GitHub provides for hosting +project documentation. The only thing is that it requires a gh-pages branch that +is the site's document root. This means that keeping documentation sources in +the branch with code is a bit difficult. And it really turns into a head +scratcher for things like Sphinx that want to access documentation sources and +code sources at the same time. + +Then I stumbled across an interesting looking package called github-tools that +looked almost like what I wanted. It was a tad complicated and more involved +than I wanted but it gave me an idea. Why not just write a script that can copy +a directory to the gh-pages branch of the repository. This saves me from even +having to think about the branch and everything becomes magical. + +This is what ghp-import was written for. + +WWW: https://github.com/c-w/ghp-import