diff options
author | koobs <koobs@FreeBSD.org> | 2015-01-26 18:41:05 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2015-01-26 18:41:05 +0800 |
commit | e7f159577cb570e03909766e6444e1ba8089556b (patch) | |
tree | b0bae23feba66024df99ae05cbfece8ec84d92c8 /www | |
parent | 38ac5666c7dc250b2cf827c2bb6ead620d21620e (diff) | |
download | freebsd-ports-gnome-e7f159577cb570e03909766e6444e1ba8089556b.tar.gz freebsd-ports-gnome-e7f159577cb570e03909766e6444e1ba8089556b.tar.zst freebsd-ports-gnome-e7f159577cb570e03909766e6444e1ba8089556b.zip |
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
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/py-gandi.cli/Makefile | 39 | ||||
-rw-r--r-- | www/py-gandi.cli/distinfo | 2 | ||||
-rw-r--r-- | www/py-gandi.cli/files/patch-setup.py | 24 | ||||
-rw-r--r-- | www/py-gandi.cli/pkg-descr | 10 |
5 files changed, 76 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 264d911bb7f2..8af407346a6f 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/py-gandi.cli/Makefile b/www/py-gandi.cli/Makefile new file mode 100644 index 000000000000..2f5a46bc56b2 --- /dev/null +++ b/www/py-gandi.cli/Makefile @@ -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> diff --git a/www/py-gandi.cli/distinfo b/www/py-gandi.cli/distinfo new file mode 100644 index 000000000000..7306f96e7543 --- /dev/null +++ b/www/py-gandi.cli/distinfo @@ -0,0 +1,2 @@ +SHA256 (gandi.cli-0.12.tar.gz) = 14856de8bf8ee411e85ef63cc3bb1dc30c983d503649d1e367fb27397487696b +SIZE (gandi.cli-0.12.tar.gz) = 152756 diff --git a/www/py-gandi.cli/files/patch-setup.py b/www/py-gandi.cli/files/patch-setup.py new file mode 100644 index 000000000000..6c7022a40861 --- /dev/null +++ b/www/py-gandi.cli/files/patch-setup.py @@ -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] diff --git a/www/py-gandi.cli/pkg-descr b/www/py-gandi.cli/pkg-descr new file mode 100644 index 000000000000..5f1979ffdec3 --- /dev/null +++ b/www/py-gandi.cli/pkg-descr @@ -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 |