pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-pybitbucket: Import py-pybitbucket-0.12.0 as wip/py-pybitbucket



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Dec 31 15:27:41 2017 +0100
Changeset:	6aecea9940f81f59c86c3f9c7608560614ca13db

Modified Files:
	Makefile
Added Files:
	py-pybitbucket/ALTERNATIVES
	py-pybitbucket/DESCR
	py-pybitbucket/Makefile
	py-pybitbucket/PLIST
	py-pybitbucket/distinfo
	py-pybitbucket/patches/patch-setup.py

Log Message:
py-pybitbucket: Import py-pybitbucket-0.12.0 as wip/py-pybitbucket

A Python wrapper for the Bitbucket Cloud REST API. This is not known to work
with Bitbucket Server, previously known as Stash.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6aecea9940f81f59c86c3f9c7608560614ca13db

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                              |  2 ++
 py-pybitbucket/ALTERNATIVES           |  1 +
 py-pybitbucket/DESCR                  |  2 ++
 py-pybitbucket/Makefile               | 35 +++++++++++++++++++
 py-pybitbucket/PLIST                  | 63 +++++++++++++++++++++++++++++++++++
 py-pybitbucket/distinfo               |  7 ++++
 py-pybitbucket/patches/patch-setup.py | 41 +++++++++++++++++++++++
 7 files changed, 151 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 956b9d75ad..45d1498e6d 100644
--- a/Makefile
+++ b/Makefile
@@ -3505,6 +3505,7 @@ SUBDIR+=	py-pweave
 SUBDIR+=	py-pyaiml
 SUBDIR+=	py-pyamf
 SUBDIR+=	py-pyamg
+SUBDIR+=	py-pybitbucket
 SUBDIR+=	py-pycifrw
 SUBDIR+=	py-pycryptodomex
 SUBDIR+=	py-pydelay
@@ -3803,6 +3804,7 @@ SUBDIR+=	py-visionegg-demos
 SUBDIR+=	py-visionegg-docs
 SUBDIR+=	py-vispy
 SUBDIR+=	py-vo
+SUBDIR+=	py-voluptuous
 SUBDIR+=	py-voronoi
 SUBDIR+=	py-voropy
 SUBDIR+=	py-vtk
diff --git a/py-pybitbucket/ALTERNATIVES b/py-pybitbucket/ALTERNATIVES
new file mode 100644
index 0000000000..9ffb2ea409
--- /dev/null
+++ b/py-pybitbucket/ALTERNATIVES
@@ -0,0 +1 @@
+bin/pybitbucket_cli @PREFIX@/bin/pybitbucket_cli-@PYVERSSUFFIX@
diff --git a/py-pybitbucket/DESCR b/py-pybitbucket/DESCR
new file mode 100644
index 0000000000..79e1b7e53e
--- /dev/null
+++ b/py-pybitbucket/DESCR
@@ -0,0 +1,2 @@
+A Python wrapper for the Bitbucket Cloud REST API. This is not known to work
+with Bitbucket Server, previously known as Stash.
diff --git a/py-pybitbucket/Makefile b/py-pybitbucket/Makefile
new file mode 100644
index 0000000000..e59c48f405
--- /dev/null
+++ b/py-pybitbucket/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+DISTNAME=	pybitbucket-0.12.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=p/pybitbucket/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://bitbucket.org/atlassian/python-bitbucket
+COMMENT=	Python wrapper for the Bitbucket API
+LICENSE=	apache-2.0
+
+DEPENDS+=	${PYPKGPREFIX}-future>=0.16:../../devel/py-future
+DEPENDS+=	${PYPKGPREFIX}-oauthlib>=2.0:../../security/py-oauthlib
+DEPENDS+=	${PYPKGPREFIX}-requests-oauthlib>=0.7:../../security/py-requests-oauthlib
+DEPENDS+=	${PYPKGPREFIX}-requests>=2.12:../../devel/py-requests
+DEPENDS+=	${PYPKGPREFIX}-simplejson>=3.10:../../converters/py-simplejson
+DEPENDS+=	${PYPKGPREFIX}-six>=1.10:../../lang/py-six
+DEPENDS+=	${PYPKGPREFIX}-uritemplate>=0.6:../../textproc/py-uritemplate
+DEPENDS+=	${PYPKGPREFIX}-voluptuous>=0.9:../../wip/py-voluptuous
+
+.include "../../lang/python/pyversion.mk"
+
+.if "${PYPKGPREFIX}" == "py27"
+DEPENDS+=	${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.endif
+
+USE_LANGUAGES=	# none
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/pybitbucket_cli ${DESTDIR}${PREFIX}/bin/pybitbucket_cli-${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-pybitbucket/PLIST b/py-pybitbucket/PLIST
new file mode 100644
index 0000000000..9c56ae3af9
--- /dev/null
+++ b/py-pybitbucket/PLIST
@@ -0,0 +1,63 @@
+@comment $NetBSD$
+bin/pybitbucket_cli-${PYVERSSUFFIX}
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/pybitbucket/__init__.py
+${PYSITELIB}/pybitbucket/__init__.pyc
+${PYSITELIB}/pybitbucket/__init__.pyo
+${PYSITELIB}/pybitbucket/auth.py
+${PYSITELIB}/pybitbucket/auth.pyc
+${PYSITELIB}/pybitbucket/auth.pyo
+${PYSITELIB}/pybitbucket/bitbucket.py
+${PYSITELIB}/pybitbucket/bitbucket.pyc
+${PYSITELIB}/pybitbucket/bitbucket.pyo
+${PYSITELIB}/pybitbucket/branchrestriction.py
+${PYSITELIB}/pybitbucket/branchrestriction.pyc
+${PYSITELIB}/pybitbucket/branchrestriction.pyo
+${PYSITELIB}/pybitbucket/build.py
+${PYSITELIB}/pybitbucket/build.pyc
+${PYSITELIB}/pybitbucket/build.pyo
+${PYSITELIB}/pybitbucket/comment.py
+${PYSITELIB}/pybitbucket/comment.pyc
+${PYSITELIB}/pybitbucket/comment.pyo
+${PYSITELIB}/pybitbucket/commit.py
+${PYSITELIB}/pybitbucket/commit.pyc
+${PYSITELIB}/pybitbucket/commit.pyo
+${PYSITELIB}/pybitbucket/consumer.py
+${PYSITELIB}/pybitbucket/consumer.pyc
+${PYSITELIB}/pybitbucket/consumer.pyo
+${PYSITELIB}/pybitbucket/entrypoints.py
+${PYSITELIB}/pybitbucket/entrypoints.pyc
+${PYSITELIB}/pybitbucket/entrypoints.pyo
+${PYSITELIB}/pybitbucket/hook.py
+${PYSITELIB}/pybitbucket/hook.pyc
+${PYSITELIB}/pybitbucket/hook.pyo
+${PYSITELIB}/pybitbucket/main.py
+${PYSITELIB}/pybitbucket/main.pyc
+${PYSITELIB}/pybitbucket/main.pyo
+${PYSITELIB}/pybitbucket/metadata.py
+${PYSITELIB}/pybitbucket/metadata.pyc
+${PYSITELIB}/pybitbucket/metadata.pyo
+${PYSITELIB}/pybitbucket/pullrequest.py
+${PYSITELIB}/pybitbucket/pullrequest.pyc
+${PYSITELIB}/pybitbucket/pullrequest.pyo
+${PYSITELIB}/pybitbucket/ref.py
+${PYSITELIB}/pybitbucket/ref.pyc
+${PYSITELIB}/pybitbucket/ref.pyo
+${PYSITELIB}/pybitbucket/repository.py
+${PYSITELIB}/pybitbucket/repository.pyc
+${PYSITELIB}/pybitbucket/repository.pyo
+${PYSITELIB}/pybitbucket/snippet.py
+${PYSITELIB}/pybitbucket/snippet.pyc
+${PYSITELIB}/pybitbucket/snippet.pyo
+${PYSITELIB}/pybitbucket/team.py
+${PYSITELIB}/pybitbucket/team.pyc
+${PYSITELIB}/pybitbucket/team.pyo
+${PYSITELIB}/pybitbucket/user.py
+${PYSITELIB}/pybitbucket/user.pyc
+${PYSITELIB}/pybitbucket/user.pyo
diff --git a/py-pybitbucket/distinfo b/py-pybitbucket/distinfo
new file mode 100644
index 0000000000..6775add30f
--- /dev/null
+++ b/py-pybitbucket/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (pybitbucket-0.12.0.tar.gz) = 9694ac88e25831733ce1ceeddb1cc5c5a720be47
+RMD160 (pybitbucket-0.12.0.tar.gz) = ad9546f62e6ad1a85c5b8512c22c613c33bca0b5
+SHA512 (pybitbucket-0.12.0.tar.gz) = 1bb7f77356c67a950993d1ed4b10dfeb6fdc8d906faa578a675ab1c8960b9fcc16b1d27e15129c5eb0f76dab30a142640be29d242f4001d5c32723f455a8f00c
+Size (pybitbucket-0.12.0.tar.gz) = 84451 bytes
+SHA1 (patch-setup.py) = 133dd004cb5ece741ffd67ec77da30951b4c2486
diff --git a/py-pybitbucket/patches/patch-setup.py b/py-pybitbucket/patches/patch-setup.py
new file mode 100644
index 0000000000..bdf1057f03
--- /dev/null
+++ b/py-pybitbucket/patches/patch-setup.py
@@ -0,0 +1,41 @@
+$NetBSD$
+
+Avoid too strict version requirements.
+
+--- setup.py.orig	2016-12-02 23:14:28.000000000 +0000
++++ setup.py
+@@ -283,22 +283,22 @@ setup_dict = dict(
+     ],
+     packages=find_packages(exclude=(TESTS_DIRECTORY,)),
+     install_requires=[
+-        'six >= 1.10, < 2',
+-        'future >= 0.16, < 1',
+-        'requests >= 2.12, < 3',
+-        'oauthlib >= 2.0, < 3',
+-        'requests_oauthlib >= 0.7, < 1',
+-        'uritemplate >= 0.6, < 1',
+-        'simplejson >= 3.10, < 4',
+-        'voluptuous >= 0.9, < 1'
++        'six >= 1.10',
++        'future >= 0.16',
++        'requests >= 2.12',
++        'oauthlib >= 2.0',
++        'requests_oauthlib >= 0.7',
++        'uritemplate >= 0.6',
++        'simplejson >= 3.10',
++        'voluptuous >= 0.9'
+         # your module dependencies
+     ] + python_version_specific_requires,
+     # Allow tests to be run with `python setup.py test'.
+     tests_require=[
+-        'pytest >= 2.7, < 3',
+-        'mock >= 1.0, < 2',
+-        'flake8 >= 2.4, < 3',
+-        'httpretty >= 0.8, < 1',
++        'pytest >= 2.7',
++        'mock >= 1.0',
++        'flake8 >= 2.4',
++        'httpretty >= 0.8',
+     ],
+     cmdclass={'test': TestAllCommand},
+     zip_safe=False,  # don't use eggs


Home | Main Index | Thread Index | Old Index