Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159822126
D17517.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D17517.diff
View Options
Index: head/sysutils/Makefile
===================================================================
--- head/sysutils/Makefile
+++ head/sysutils/Makefile
@@ -859,6 +859,7 @@
SUBDIR += p5-arclog
SUBDIR += p5-reslog
SUBDIR += packer
+ SUBDIR += packet-python
SUBDIR += pacman
SUBDIR += paicc
SUBDIR += paladin
Index: head/sysutils/py-packet-python/Makefile
===================================================================
--- head/sysutils/py-packet-python/Makefile
+++ head/sysutils/py-packet-python/Makefile
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME= packet-python
+DISTVERSION= 1.37.1
+CATEGORIES= sysutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= dch@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>
Index: head/sysutils/py-packet-python/distinfo
===================================================================
--- head/sysutils/py-packet-python/distinfo
+++ head/sysutils/py-packet-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1539263425
+SHA256 (packet-python-1.37.1.tar.gz) = 316941d2473c0f42ac17ac89e9aa63a023bb96f35cf8eafe9e091ea424892778
+SIZE (packet-python-1.37.1.tar.gz) = 9607
Index: head/sysutils/py-packet-python/files/patch-setup.py
===================================================================
--- head/sysutils/py-packet-python/files/patch-setup.py
+++ head/sysutils/py-packet-python/files/patch-setup.py
@@ -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',
Index: head/sysutils/py-packet-python/pkg-descr
===================================================================
--- head/sysutils/py-packet-python/pkg-descr
+++ head/sysutils/py-packet-python/pkg-descr
@@ -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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 19, 1:50 PM (6 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34082845
Default Alt Text
D17517.diff (2 KB)
Attached To
Mode
D17517: sysutils/py-packet-python: new port providing packet.net API wrapper in python
Attached
Detach File
Event Timeline
Log In to Comment