pkgsrc-WIP-changes archive

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

py-xopen: Open compressed files transparently



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Oct 10 15:16:14 2019 -0500
Changeset:	0ce86ca0f79d22fa923a02e6bda93f6038937b8a

Added Files:
	py-xopen/DESCR
	py-xopen/Makefile
	py-xopen/PLIST
	py-xopen/distinfo

Log Message:
py-xopen: Open compressed files transparently

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

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

diffstat:
 py-xopen/DESCR    |  4 ++++
 py-xopen/Makefile | 28 ++++++++++++++++++++++++++++
 py-xopen/PLIST    | 12 ++++++++++++
 py-xopen/distinfo |  6 ++++++
 4 files changed, 50 insertions(+)

diffs:
diff --git a/py-xopen/DESCR b/py-xopen/DESCR
new file mode 100644
index 0000000000..39c2bcac74
--- /dev/null
+++ b/py-xopen/DESCR
@@ -0,0 +1,4 @@
+This small Python module provides an xopen function that works like the
+built-in open function, but can also deal with compressed files. Supported
+compression formats are gzip, bzip2 and xz. They are automatically recognized
+by their file extensions .gz, .bz2 or .xz.
diff --git a/py-xopen/Makefile b/py-xopen/Makefile
new file mode 100644
index 0000000000..ce875642a3
--- /dev/null
+++ b/py-xopen/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.14 2019/09/06 06:04:17 adam Exp $
+
+DISTNAME=	xopen-0.8.2
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	devel python
+MASTER_SITES=	${MASTER_SITE_PYPI:=x/xopen/}
+
+MAINTAINER=	bacon%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/marcelm/xopen
+COMMENT=	Open compressed files transparently
+LICENSE=	mit
+
+BUILD_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+DEPENDS+=	pigz-[0-9]*:../../archivers/pigz
+TEST_DEPENDS+=	${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+=	${PYPKGPREFIX}-bz2file-[0-9]*:../../archivers/py-bz2file
+.endif
+
+USE_LANGUAGES=	# none
+
+do-test:
+	cd ${WRKSRC} && pytest-${PYVERSSUFFIX} tests
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-xopen/PLIST b/py-xopen/PLIST
new file mode 100644
index 0000000000..d92c90de2e
--- /dev/null
+++ b/py-xopen/PLIST
@@ -0,0 +1,12 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/xopen/__init__.py
+${PYSITELIB}/xopen/__init__.pyo
+${PYSITELIB}/xopen/__init__.pyc
+${PYSITELIB}/xopen/_version.pyo
+${PYSITELIB}/xopen/_version.pyc
+${PYSITELIB}/xopen/_version.py
diff --git a/py-xopen/distinfo b/py-xopen/distinfo
new file mode 100644
index 0000000000..03eb612b92
--- /dev/null
+++ b/py-xopen/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (xopen-0.8.2.tar.gz) = dbd3260647238b6ec432c6977ca4c14d9fe5a8f2
+RMD160 (xopen-0.8.2.tar.gz) = 5fcc0d3831318bfef0bfe1561e2a4873d20cbbe2
+SHA512 (xopen-0.8.2.tar.gz) = f63445dc57a1a98e4d78464fe31567542cccb41c2f27f79a58bc4595193ced9580082a0b369eea3f228f505cd39e2b6332d1b96076196ac821c1404c7fa39c8a
+Size (xopen-0.8.2.tar.gz) = 11243 bytes


Home | Main Index | Thread Index | Old Index