diff --git a/devel/py-linecache2/Makefile b/devel/py-linecache2/Makefile new file mode 100644 index 00000000000..30a938f5b91 --- /dev/null +++ b/devel/py-linecache2/Makefile @@ -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 + +# 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 diff --git a/devel/py-linecache2/distinfo b/devel/py-linecache2/distinfo new file mode 100644 index 00000000000..1542e4a4fd3 --- /dev/null +++ b/devel/py-linecache2/distinfo @@ -0,0 +1,2 @@ +SHA256 (linecache2-1.0.0.tar.gz) = Syb/TnEQ23butvWntkqCYjg51ZXCA47tpmLyott46Xw= +SIZE (linecache2-1.0.0.tar.gz) = 11013 diff --git a/devel/py-linecache2/pkg/DESCR b/devel/py-linecache2/pkg/DESCR new file mode 100644 index 00000000000..e94f6c9e9b1 --- /dev/null +++ b/devel/py-linecache2/pkg/DESCR @@ -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. diff --git a/devel/py-linecache2/pkg/PLIST b/devel/py-linecache2/pkg/PLIST new file mode 100644 index 00000000000..1f0864abacb --- /dev/null +++ b/devel/py-linecache2/pkg/PLIST @@ -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