import py-linecache2

A backport of linecache to older supported Pythons. The linecache
module allows one to get any line from a Python source file, while
attempting to optimize internally, using a cache, the common case
where many lines are read from a single file.

OK bket phessler
This commit is contained in:
pamela 2020-01-16 13:53:02 +00:00
parent f109409b52
commit f889fab02f
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/01/16 13:53:02 pamela Exp $
COMMENT = backports of the Python linecache module
MODPY_EGG_VERSION = 1.0.0
DISTNAME = linecache2-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
HOMEPAGE = https://github.com/testing-cabal/linecache2
MAINTAINER = Pamela Mosiejczuk <pamela@openbsd.org>
# Python Software Foundation License
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
MODPY_PYTEST_ARGS = linecache2
BUILD_DEPENDS = devel/py-pbr
TEST_DEPENDS = devel/py-fixtures \
devel/py-unittest2
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (linecache2-1.0.0.tar.gz) = Syb/TnEQ23butvWntkqCYjg51ZXCA47tpmLyott46Xw=
SIZE (linecache2-1.0.0.tar.gz) = 11013

View File

@ -0,0 +1,4 @@
A backport of linecache to older supported Pythons. The linecache
module allows one to get any line from a Python source file, while
attempting to optimize internally, using a cache, the common case
where many lines are read from a single file.

View File

@ -0,0 +1,21 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/01/16 13:53:02 pamela Exp $
lib/python${MODPY_VERSION}/site-packages/linecache2/
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/pbr.json
lib/python${MODPY_VERSION}/site-packages/linecache2-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/linecache2/__init__.py
lib/python${MODPY_VERSION}/site-packages/linecache2/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/__init__.py
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/inspect_fodder.py
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/inspect_fodder.pyc
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/linecache2/tests/inspect_fodder2.py
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/mapping_tests.py
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/mapping_tests.pyc
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/test_linecache.py
lib/python${MODPY_VERSION}/site-packages/linecache2/tests/test_linecache.pyc