pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/csvtomd



Module Name:    pkgsrc
Committed By:   cheusov
Date:           Thu May 16 17:06:25 UTC 2024

Modified Files:
        pkgsrc/textproc/csvtomd: Makefile PLIST distinfo
        pkgsrc/textproc/csvtomd/patches: patch-setup.py
Added Files:
        pkgsrc/textproc/csvtomd/patches: patch-csvtomd_csvtomd.py

Log Message:
Update to 0.2.1

  Unfortunately upstream does not provide any NEWS/CHANGES


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/textproc/csvtomd/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/csvtomd/PLIST
cvs rdiff -u -r1.4 -r1.5 pkgsrc/textproc/csvtomd/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/csvtomd/patches/patch-csvtomd_csvtomd.py
cvs rdiff -u -r1.2 -r1.3 pkgsrc/textproc/csvtomd/patches/patch-setup.py

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

Modified files:

Index: pkgsrc/textproc/csvtomd/Makefile
diff -u pkgsrc/textproc/csvtomd/Makefile:1.10 pkgsrc/textproc/csvtomd/Makefile:1.11
--- pkgsrc/textproc/csvtomd/Makefile:1.10       Mon Aug 14 05:25:21 2023
+++ pkgsrc/textproc/csvtomd/Makefile    Thu May 16 17:06:24 2024
@@ -1,23 +1,31 @@
-# $NetBSD: Makefile,v 1.10 2023/08/14 05:25:21 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2024/05/16 17:06:24 cheusov Exp $
 
-DISTNAME=      csvtomd-0.1.1
-PKGREVISION=   6
+DISTNAME=      csvtomd-0.2.1
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mplewis/}
-GITHUB_TAG=    v${PKGVERSION_NOREV}
 
-MAINTAINER=    cheusov%tut.by@localhost
+MAINTAINER=    cheusov%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/mplewis/csvtomd/
 COMMENT=       Convert your CSV files into Markdown tables
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pandocfilters-[0-9]*:../../textproc/py-pandocfilters
+TOOL_DEPENDS+= ${PYPKGPREFIX}-sure-[0-9]*:../../devel/py-sure
+TOOL_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pypandoc-[0-9]*:../../wip/py-pandoc
+
 USE_LANGUAGES= # none
 
 REPLACE_PYTHON+=       csvtomd
 
 USE_PKG_RESOURCES=     yes
 
-PYTHON_VERSIONS_INCOMPATIBLE=  27
+# PYTHON_VERSIONS_INCOMPATIBLE=        27
+
+PYSETUP=               setup.py
+
+do-test:
+       ${RUN} cd ${WRKSRC} ; ${SETENV} ${TEST_ENV} py.test
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/textproc/csvtomd/PLIST
diff -u pkgsrc/textproc/csvtomd/PLIST:1.2 pkgsrc/textproc/csvtomd/PLIST:1.3
--- pkgsrc/textproc/csvtomd/PLIST:1.2   Thu Jul 28 09:54:59 2016
+++ pkgsrc/textproc/csvtomd/PLIST       Thu May 16 17:06:24 2024
@@ -1,10 +1,13 @@
-@comment $NetBSD: PLIST,v 1.2 2016/07/28 09:54:59 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2024/05/16 17:06:24 cheusov Exp $
 bin/csvtomd
 ${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}/top_level.txt
-${PYSITELIB}/csvtomd.py
-${PYSITELIB}/csvtomd.pyc
-${PYSITELIB}/csvtomd.pyo
+${PYSITELIB}/csvtomd/__init__.py
+${PYSITELIB}/csvtomd/__init__.pyc
+${PYSITELIB}/csvtomd/__init__.pyo
+${PYSITELIB}/csvtomd/csvtomd.py
+${PYSITELIB}/csvtomd/csvtomd.pyc
+${PYSITELIB}/csvtomd/csvtomd.pyo

Index: pkgsrc/textproc/csvtomd/distinfo
diff -u pkgsrc/textproc/csvtomd/distinfo:1.4 pkgsrc/textproc/csvtomd/distinfo:1.5
--- pkgsrc/textproc/csvtomd/distinfo:1.4        Tue Oct 26 11:21:48 2021
+++ pkgsrc/textproc/csvtomd/distinfo    Thu May 16 17:06:24 2024
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 11:21:48 nia Exp $
+$NetBSD: distinfo,v 1.5 2024/05/16 17:06:24 cheusov Exp $
 
-BLAKE2s (csvtomd-0.1.1.tar.gz) = d8e67a6f3dfcbda0c4d7659d7120e8a6079cfa3bd4c28891383f3f1d8c9ab621
-SHA512 (csvtomd-0.1.1.tar.gz) = 05ab281ed75b5ceb5dc876b4a54f415d217a80652e49a5c0ee5b1dd8fb7db83abb3c8fa2fa8faa7281f956e63fb2c5e35a15aa2b0c6c0c0afaf679213fa70dca
-Size (csvtomd-0.1.1.tar.gz) = 4438 bytes
-SHA1 (patch-setup.py) = 3d8022721a1569cf805a731d2d27f24bbcb1bb62
+BLAKE2s (csvtomd-0.2.1.tar.gz) = bc2ae9beb40143f1850095118bf025e915cdcbada690d8a1d3371e70cdb4a652
+SHA512 (csvtomd-0.2.1.tar.gz) = 2f51e8cee9f464ebcdf8ef70931a22d50e642091b74a23412a730323d3254da4017867b3df66223c533951db90a5198bfc15a2dc9809f6207e108559c1438838
+Size (csvtomd-0.2.1.tar.gz) = 6324 bytes
+SHA1 (patch-csvtomd_csvtomd.py) = de931a85a0396bb927558858f586961a9b373918
+SHA1 (patch-setup.py) = 917f1a2695cca1f77d027c85ca15f604a93cb286

Index: pkgsrc/textproc/csvtomd/patches/patch-setup.py
diff -u pkgsrc/textproc/csvtomd/patches/patch-setup.py:1.2 pkgsrc/textproc/csvtomd/patches/patch-setup.py:1.3
--- pkgsrc/textproc/csvtomd/patches/patch-setup.py:1.2  Thu Jul 28 09:54:59 2016
+++ pkgsrc/textproc/csvtomd/patches/patch-setup.py      Thu May 16 17:06:25 2024
@@ -1,17 +1,14 @@
-$NetBSD: patch-setup.py,v 1.2 2016/07/28 09:54:59 wiz Exp $
+$NetBSD: patch-setup.py,v 1.3 2024/05/16 17:06:25 cheusov Exp $
 
 https://github.com/mplewis/csvtomd/issues/10
 
---- setup.py.orig      2014-07-14 00:13:47.000000000 +0000
+--- setup.py.orig      2016-12-18 21:43:02.000000000 +0000
 +++ setup.py
-@@ -1,7 +1,8 @@
+@@ -1,6 +1,6 @@
  from setuptools import setup
  
 -with open('README.rst') as f:
--    long_description = f.read()
-+#with open('README.rst') as f:
-+#    long_description = f.read()
-+long_description=''
++with open('README.md') as f:
+     long_description = f.read()
  
  setup(
-     name='csvtomd',

Added files:

Index: pkgsrc/textproc/csvtomd/patches/patch-csvtomd_csvtomd.py
diff -u /dev/null pkgsrc/textproc/csvtomd/patches/patch-csvtomd_csvtomd.py:1.1
--- /dev/null   Thu May 16 17:06:25 2024
+++ pkgsrc/textproc/csvtomd/patches/patch-csvtomd_csvtomd.py    Thu May 16 17:06:25 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-csvtomd_csvtomd.py,v 1.1 2024/05/16 17:06:25 cheusov Exp $
+
+We support only python3
+
+--- csvtomd/csvtomd.py.orig    2016-12-18 21:43:02.000000000 +0000
++++ csvtomd/csvtomd.py
+@@ -132,7 +132,7 @@ def main():
+         else:
+             first = False
+         # Read the CSV files
+-        with open(filename, 'rU') as f:
++        with open(filename, 'r') as f:
+             table = csv_to_table(f, args.delimiter)
+         # Print filename for each table if --no-filenames wasn't passed and
+         # more than one CSV was provided



Home | Main Index | Thread Index | Old Index