svn commit: r482876 - in head/sysutils: . py-packet-python py-packet-python/files
Dave Cottlehuber
dch at FreeBSD.org
Tue Oct 23 22:41:14 UTC 2018
Author: dch
Date: Tue Oct 23 22:41:12 2018
New Revision: 482876
URL: https://svnweb.freebsd.org/changeset/ports/482876
Log:
new port: sysutils/py-packet-python: provides packet.net API wrapper
packet.net is a "bare metal as a service" infrastructure provider, with
a python-enabled API. This module plays nicely with ansible, see
upstream module docs for that integration.
Approved by: jrm (mentor)
Differential Revision: https://reviews.freebsd.org/D17517
Added:
head/sysutils/py-packet-python/
head/sysutils/py-packet-python/Makefile (contents, props changed)
head/sysutils/py-packet-python/distinfo (contents, props changed)
head/sysutils/py-packet-python/files/
head/sysutils/py-packet-python/files/patch-setup.py (contents, props changed)
head/sysutils/py-packet-python/pkg-descr (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Tue Oct 23 22:40:16 2018 (r482875)
+++ head/sysutils/Makefile Tue Oct 23 22:41:12 2018 (r482876)
@@ -859,6 +859,7 @@
SUBDIR += p5-arclog
SUBDIR += p5-reslog
SUBDIR += packer
+ SUBDIR += packet-python
SUBDIR += pacman
SUBDIR += paicc
SUBDIR += paladin
Added: head/sysutils/py-packet-python/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/py-packet-python/Makefile Tue Oct 23 22:41:12 2018 (r482876)
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME= packet-python
+DISTVERSION= 1.37.1
+CATEGORIES= sysutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dch at FreeBSD.org
+COMMENT= Python client for Packet.net API
+
+LICENSE= LGPL3+
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>2.18.0:www/py-requests@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= distutils autoplist concurrent
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/sysutils/py-packet-python/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/py-packet-python/distinfo Tue Oct 23 22:41:12 2018 (r482876)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1539263425
+SHA256 (packet-python-1.37.1.tar.gz) = 316941d2473c0f42ac17ac89e9aa63a023bb96f35cf8eafe9e091ea424892778
+SIZE (packet-python-1.37.1.tar.gz) = 9607
Added: head/sysutils/py-packet-python/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/py-packet-python/files/patch-setup.py Tue Oct 23 22:41:12 2018 (r482876)
@@ -0,0 +1,29 @@
+--- setup.py.orig 2018-01-08 17:58:49 UTC
++++ setup.py
+@@ -1,7 +1,6 @@
+ #!/usr/bin/env python
+
+ import os
+-import pypandoc
+
+ # Notes for the not-an-everyday-python-dev for package distribution on pypi
+ #
+@@ -45,10 +44,6 @@ except ImportError:
+ from setuptools import setup
+
+ long_description = 'This library provides the python client for the Packet API.'
+-if os.path.isfile('README.md') and os.path.isfile('CHANGELOG.md'):
+- readme = pypandoc.convert_file('README.md', 'rst')
+- changelog = pypandoc.convert_file('CHANGELOG.md', 'rst')
+- long_description = readme + '\n' + changelog
+
+ setup(
+ name='packet-python',
+@@ -61,7 +56,6 @@ setup(
+ keywords='packet api client',
+ packages=['packet'],
+ install_requires='requests',
+- setup_requires='pypandoc',
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
Added: head/sysutils/py-packet-python/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/py-packet-python/pkg-descr Tue Oct 23 22:41:12 2018 (r482876)
@@ -0,0 +1,4 @@
+Python client for the packet.net API. Full Packet API documentation is available
+at https://www.packet.net/developers/api
+
+WWW: https://pypi.python.org/pypi/packet-python
More information about the svn-ports-all
mailing list