Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2015 10:41:06 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r377931 - in head/www: . py-gandi.cli py-gandi.cli/files
Message-ID:  <201501261041.t0QAf6is071047@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Mon Jan 26 10:41:05 2015
New Revision: 377931
URL: https://svnweb.freebsd.org/changeset/ports/377931
QAT: https://qat.redports.org/buildarchive/r377931/

Log:
  www/py-gandi.cli: Gandi command line interface
  
  Use `$ gandi` to easily create and manage web resources from the command line.
  
    * `$ gandi domain` to buy and manage your domain names
    * `$ gandi paas` to create and deploy your web applications
    * `$ gandi vm` to spin up and upgrade your virtual machines
    * `$ gandi` to list all available commands
  
  WWW: https://github.com/Gandi/gandi.cli

Added:
  head/www/py-gandi.cli/
  head/www/py-gandi.cli/Makefile   (contents, props changed)
  head/www/py-gandi.cli/distinfo   (contents, props changed)
  head/www/py-gandi.cli/files/
  head/www/py-gandi.cli/files/patch-setup.py   (contents, props changed)
  head/www/py-gandi.cli/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Mon Jan 26 10:24:08 2015	(r377930)
+++ head/www/Makefile	Mon Jan 26 10:41:05 2015	(r377931)
@@ -1551,6 +1551,7 @@
     SUBDIR += py-formencode
     SUBDIR += py-frozen-flask
     SUBDIR += py-funkload
+    SUBDIR += py-gandi.cli
     SUBDIR += py-gevent-websocket
     SUBDIR += py-google-api-python-client
     SUBDIR += py-graphite-web

Added: head/www/py-gandi.cli/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-gandi.cli/Makefile	Mon Jan 26 10:41:05 2015	(r377931)
@@ -0,0 +1,39 @@
+# Created by: Kubilay Kocak <koobs@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	gandi.cli
+PORTVERSION=	0.12
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	koobs@FreeBSD.org
+COMMENT=	Gandi command line interface
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml \
+		${PYTHON_PKGNAMEPREFIX}click>0:${PORTSDIR}/devel/py-click \
+		${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests \
+		${PYTHON_PKGNAMEPREFIX}ipy>0:${PORTSDIR}/net-mgmt/py-ipy
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
+		${PYTHON_PKGNAMEPREFIX}coverage>0:${PORTSDIR}/devel/py-coverage
+
+OPTIONS_DEFINE=		TESTS
+TESTS_DESC=		Install test suite requirements
+TESTS_BUILD_DEPENDS=	${TEST_DEPENDS}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 330
+TEST_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
+.endif
+
+regression-test: build
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
+
+.include <bsd.port.post.mk>

Added: head/www/py-gandi.cli/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-gandi.cli/distinfo	Mon Jan 26 10:41:05 2015	(r377931)
@@ -0,0 +1,2 @@
+SHA256 (gandi.cli-0.12.tar.gz) = 14856de8bf8ee411e85ef63cc3bb1dc30c983d503649d1e367fb27397487696b
+SIZE (gandi.cli-0.12.tar.gz) = 152756

Added: head/www/py-gandi.cli/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-gandi.cli/files/patch-setup.py	Mon Jan 26 10:41:05 2015	(r377931)
@@ -0,0 +1,24 @@
+--- setup.py.orig	2015-01-08 09:26:15 UTC
++++ setup.py
+@@ -6,10 +6,11 @@ import os
+ import sys
+ 
+ from setuptools import setup, find_packages
++from io import open
+ 
+ here = os.path.abspath(os.path.dirname(__file__))
+-README = open(os.path.join(here, 'README.md')).read()
+-CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
++README = open(os.path.join(here, 'README.md'), encoding='utf-8').read()
++CHANGES = open(os.path.join(here, 'CHANGES.rst'), encoding='utf-8').read()
+ 
+ 
+ with open(os.path.join(here, 'gandi', 'cli', '__init__.py')) as v_file:
+@@ -49,6 +50,7 @@ setup(name='gandi.cli',
+       zip_safe=False,
+       install_requires=requires,
+       tests_require=tests_require,
++      test_suite='gandi.cli.tests',
+       extras_require=extras_require,
+       entry_points="""\
+ [console_scripts]

Added: head/www/py-gandi.cli/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-gandi.cli/pkg-descr	Mon Jan 26 10:41:05 2015	(r377931)
@@ -0,0 +1,10 @@
+Gandi command line interface
+
+Use `$ gandi` to easily create and manage web resources from the command line.
+
+  * `$ gandi domain` to buy and manage your domain names
+  * `$ gandi paas` to create and deploy your web applications
+  * `$ gandi vm` to spin up and upgrade your virtual machines
+  * `$ gandi` to list all available commands
+
+WWW: https://github.com/Gandi/gandi.cli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501261041.t0QAf6is071047>