Update to 0.2.1 Unfortunately upstream does not provide any NEWS/CHANGESdiff -r1.10 -r1.11 pkgsrc/textproc/csvtomd/Makefile
(cheusov)
@@ -1,23 +1,31 @@ | @@ -1,23 +1,31 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2023/08/14 05:25:21 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2024/05/16 17:06:24 cheusov Exp $ | |
2 | 2 | |||
3 | DISTNAME= csvtomd-0.1.1 | 3 | DISTNAME= csvtomd-0.2.1 | |
4 | PKGREVISION= 6 | |||
5 | CATEGORIES= textproc | 4 | CATEGORIES= textproc | |
6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mplewis/} | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mplewis/} | |
7 | GITHUB_TAG= v${PKGVERSION_NOREV} | |||
8 | 6 | |||
9 | MAINTAINER= cheusov@tut.by | 7 | MAINTAINER= cheusov@NetBSD.org | |
10 | HOMEPAGE= https://github.com/mplewis/csvtomd/ | 8 | HOMEPAGE= https://github.com/mplewis/csvtomd/ | |
11 | COMMENT= Convert your CSV files into Markdown tables | 9 | COMMENT= Convert your CSV files into Markdown tables | |
12 | LICENSE= mit | 10 | LICENSE= mit | |
13 | 11 | |||
12 | TOOL_DEPENDS+= ${PYPKGPREFIX}-pandocfilters-[0-9]*:../../textproc/py-pandocfilters | |||
13 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sure-[0-9]*:../../devel/py-sure | |||
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test | |||
15 | TOOL_DEPENDS+= ${PYPKGPREFIX}-pypandoc-[0-9]*:../../wip/py-pandoc | |||
16 | ||||
14 | USE_LANGUAGES= # none | 17 | USE_LANGUAGES= # none | |
15 | 18 | |||
16 | REPLACE_PYTHON+= csvtomd | 19 | REPLACE_PYTHON+= csvtomd | |
17 | 20 | |||
18 | USE_PKG_RESOURCES= yes | 21 | USE_PKG_RESOURCES= yes | |
19 | 22 | |||
20 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 23 | # PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
24 | ||||
25 | PYSETUP= setup.py | |||
26 | ||||
27 | do-test: | |||
28 | ${RUN} cd ${WRKSRC} ; ${SETENV} ${TEST_ENV} py.test | |||
21 | 29 | |||
22 | .include "../../lang/python/egg.mk" | 30 | .include "../../lang/python/egg.mk" | |
23 | .include "../../mk/bsd.pkg.mk" | 31 | .include "../../mk/bsd.pkg.mk" |
@@ -1,10 +1,13 @@ | @@ -1,10 +1,13 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.2 2016/07/28 09:54:59 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.3 2024/05/16 17:06:24 cheusov Exp $ | |
2 | bin/csvtomd | 2 | bin/csvtomd | |
3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | 3 | ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO | |
4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | 4 | ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt | |
5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | 5 | ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt | |
6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | 6 | ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt | |
7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | 7 | ${PYSITELIB}/${EGG_INFODIR}/top_level.txt | |
8 | ${PYSITELIB}/csvtomd.py | 8 | ${PYSITELIB}/csvtomd/__init__.py | |
9 | ${PYSITELIB}/csvtomd.pyc | 9 | ${PYSITELIB}/csvtomd/__init__.pyc | |
10 | ${PYSITELIB}/csvtomd.pyo | 10 | ${PYSITELIB}/csvtomd/__init__.pyo | |
11 | ${PYSITELIB}/csvtomd/csvtomd.py | |||
12 | ${PYSITELIB}/csvtomd/csvtomd.pyc | |||
13 | ${PYSITELIB}/csvtomd/csvtomd.pyo |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2021/10/26 11:21:48 nia Exp $ | 1 | $NetBSD: distinfo,v 1.5 2024/05/16 17:06:24 cheusov Exp $ | |
2 | 2 | |||
3 | BLAKE2s (csvtomd-0.1.1.tar.gz) = d8e67a6f3dfcbda0c4d7659d7120e8a6079cfa3bd4c28891383f3f1d8c9ab621 | 3 | BLAKE2s (csvtomd-0.2.1.tar.gz) = bc2ae9beb40143f1850095118bf025e915cdcbada690d8a1d3371e70cdb4a652 | |
4 | SHA512 (csvtomd-0.1.1.tar.gz) = 05ab281ed75b5ceb5dc876b4a54f415d217a80652e49a5c0ee5b1dd8fb7db83abb3c8fa2fa8faa7281f956e63fb2c5e35a15aa2b0c6c0c0afaf679213fa70dca | 4 | SHA512 (csvtomd-0.2.1.tar.gz) = 2f51e8cee9f464ebcdf8ef70931a22d50e642091b74a23412a730323d3254da4017867b3df66223c533951db90a5198bfc15a2dc9809f6207e108559c1438838 | |
5 | Size (csvtomd-0.1.1.tar.gz) = 4438 bytes | 5 | Size (csvtomd-0.2.1.tar.gz) = 6324 bytes | |
6 | SHA1 (patch-setup.py) = 3d8022721a1569cf805a731d2d27f24bbcb1bb62 | 6 | SHA1 (patch-csvtomd_csvtomd.py) = de931a85a0396bb927558858f586961a9b373918 | |
7 | SHA1 (patch-setup.py) = 917f1a2695cca1f77d027c85ca15f604a93cb286 |
$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
@@ -1,17 +1,14 @@ | @@ -1,17 +1,14 @@ | |||
1 | $NetBSD: patch-setup.py,v 1.2 2016/07/28 09:54:59 wiz Exp $ | 1 | $NetBSD: patch-setup.py,v 1.3 2024/05/16 17:06:25 cheusov Exp $ | |
2 | 2 | |||
3 | https://github.com/mplewis/csvtomd/issues/10 | 3 | https://github.com/mplewis/csvtomd/issues/10 | |
4 | 4 | |||
5 | --- setup.py.orig 2014-07-14 00:13:47.000000000 +0000 | 5 | --- setup.py.orig 2016-12-18 21:43:02.000000000 +0000 | |
6 | +++ setup.py | 6 | +++ setup.py | |
7 | @@ -1,7 +1,8 @@ | 7 | @@ -1,6 +1,6 @@ | |
8 | from setuptools import setup | 8 | from setuptools import setup | |
9 | 9 | |||
10 | -with open('README.rst') as f: | 10 | -with open('README.rst') as f: | |
11 | - long_description = f.read() | 11 | +with open('README.md') as f: | |
12 | +#with open('README.rst') as f: | 12 | long_description = f.read() | |
13 | +# long_description = f.read() | |||
14 | +long_description='' | |||
15 | 13 | |||
16 | setup( | 14 | setup( | |
17 | name='csvtomd', |