summaryrefslogtreecommitdiff
path: root/sysutils/py-packet-python/files/patch-setup.py
diff options
context:
space:
mode:
authorDave Cottlehuber <dch@FreeBSD.org>2018-10-23 22:41:12 +0000
committerDave Cottlehuber <dch@FreeBSD.org>2018-10-23 22:41:12 +0000
commit321e5c4d1b231f1b647a4c7cd0dbf3e6e7518578 (patch)
tree054fcd81c7350da5620692cc82d9a9641a579c2b /sysutils/py-packet-python/files/patch-setup.py
parentnew port: net/rabbiteer: amqp/rabbitmq command-line tool (diff)
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
Notes
Notes: svn path=/head/; revision=482876
Diffstat (limited to 'sysutils/py-packet-python/files/patch-setup.py')
-rw-r--r--sysutils/py-packet-python/files/patch-setup.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/py-packet-python/files/patch-setup.py b/sysutils/py-packet-python/files/patch-setup.py
new file mode 100644
index 000000000000..c92c3da61128
--- /dev/null
+++ b/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',