Tue Nov 20 14:09:59 2018 UTC ()
py-eradicate: added version 0.2.1
With modern revision control available, there is no reason to save
commented-out code to your repository. eradicate helps cleans up existing junk
comments. It does this by detecting block comments that contain valid Python
syntax that are likely to be commented out code. (It avoids false positives
like the sentence this is not good, which is valid Python syntax, but is
probably not code.)
(adam)
diff -r1.1012 -r1.1013 pkgsrc/textproc/Makefile
diff -r0 -r1.1 pkgsrc/textproc/py-eradicate/DESCR
diff -r0 -r1.1 pkgsrc/textproc/py-eradicate/Makefile
diff -r0 -r1.1 pkgsrc/textproc/py-eradicate/PLIST
diff -r0 -r1.1 pkgsrc/textproc/py-eradicate/distinfo
--- pkgsrc/textproc/Makefile 2018/11/18 08:28:37 1.1012
+++ pkgsrc/textproc/Makefile 2018/11/20 14:09:58 1.1013
| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.1012 2018/11/18 08:28:37 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.1013 2018/11/20 14:09:58 adam Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | COMMENT= Text processing utilities (does not include desktop publishing) | | 4 | COMMENT= Text processing utilities (does not include desktop publishing) |
5 | | | 5 | |
6 | SUBDIR+= CRF++ | | 6 | SUBDIR+= CRF++ |
7 | SUBDIR+= DWB | | 7 | SUBDIR+= DWB |
8 | SUBDIR+= FlightCrew | | 8 | SUBDIR+= FlightCrew |
9 | SUBDIR+= GutenMark | | 9 | SUBDIR+= GutenMark |
10 | SUBDIR+= GutenMark-words | | 10 | SUBDIR+= GutenMark-words |
11 | SUBDIR+= LDoc | | 11 | SUBDIR+= LDoc |
12 | SUBDIR+= Markdown | | 12 | SUBDIR+= Markdown |
13 | SUBDIR+= OdfConverter | | 13 | SUBDIR+= OdfConverter |
14 | SUBDIR+= R-formatR | | 14 | SUBDIR+= R-formatR |
| @@ -752,26 +752,27 @@ SUBDIR+= py-cssselect | | | @@ -752,26 +752,27 @@ SUBDIR+= py-cssselect |
752 | SUBDIR+= py-cssselect2 | | 752 | SUBDIR+= py-cssselect2 |
753 | SUBDIR+= py-cssutils | | 753 | SUBDIR+= py-cssutils |
754 | SUBDIR+= py-deepdiff | | 754 | SUBDIR+= py-deepdiff |
755 | SUBDIR+= py-defusedxml | | 755 | SUBDIR+= py-defusedxml |
756 | SUBDIR+= py-dicttoxml | | 756 | SUBDIR+= py-dicttoxml |
757 | SUBDIR+= py-diff-match-patch | | 757 | SUBDIR+= py-diff-match-patch |
758 | SUBDIR+= py-docutils | | 758 | SUBDIR+= py-docutils |
759 | SUBDIR+= py-docx | | 759 | SUBDIR+= py-docx |
760 | SUBDIR+= py-dominate | | 760 | SUBDIR+= py-dominate |
761 | SUBDIR+= py-ejson | | 761 | SUBDIR+= py-ejson |
762 | SUBDIR+= py-elementtree | | 762 | SUBDIR+= py-elementtree |
763 | SUBDIR+= py-empy | | 763 | SUBDIR+= py-empy |
764 | SUBDIR+= py-enchant | | 764 | SUBDIR+= py-enchant |
| | | 765 | SUBDIR+= py-eradicate |
765 | SUBDIR+= py-expat | | 766 | SUBDIR+= py-expat |
766 | SUBDIR+= py-feedparser | | 767 | SUBDIR+= py-feedparser |
767 | SUBDIR+= py-ftfy | | 768 | SUBDIR+= py-ftfy |
768 | SUBDIR+= py-generateDS | | 769 | SUBDIR+= py-generateDS |
769 | SUBDIR+= py-gnosis-utils | | 770 | SUBDIR+= py-gnosis-utils |
770 | SUBDIR+= py-guessit | | 771 | SUBDIR+= py-guessit |
771 | SUBDIR+= py-html-sanitizer | | 772 | SUBDIR+= py-html-sanitizer |
772 | SUBDIR+= py-html2text | | 773 | SUBDIR+= py-html2text |
773 | SUBDIR+= py-html5-parser | | 774 | SUBDIR+= py-html5-parser |
774 | SUBDIR+= py-html5lib | | 775 | SUBDIR+= py-html5lib |
775 | SUBDIR+= py-humanize | | 776 | SUBDIR+= py-humanize |
776 | SUBDIR+= py-inflection | | 777 | SUBDIR+= py-inflection |
777 | SUBDIR+= py-iniparse | | 778 | SUBDIR+= py-iniparse |
With modern revision control available, there is no reason to save
commented-out code to your repository. eradicate helps cleans up existing junk
comments. It does this by detecting block comments that contain valid Python
syntax that are likely to be commented out code. (It avoids false positives
like the sentence this is not good, which is valid Python syntax, but is
probably not code.)
# $NetBSD: Makefile,v 1.1 2018/11/20 14:09:58 adam Exp $
DISTNAME= eradicate-0.2.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=e/eradicate/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/myint/eradicate
COMMENT= Removes commented-out code
LICENSE= mit
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} eradicate eradicate-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/distutils.mk"
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2018/11/20 14:09:58 adam Exp $
bin/eradicate-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_FILE}
${PYSITELIB}/eradicate.py
${PYSITELIB}/eradicate.pyc
${PYSITELIB}/eradicate.pyo
$NetBSD: distinfo,v 1.1 2018/11/20 14:09:58 adam Exp $
SHA1 (eradicate-0.2.1.tar.gz) = 92c106b801f88459f2edadc884cce1bc479c9374
RMD160 (eradicate-0.2.1.tar.gz) = 0fd21cb6152ad6f8aee490640e40b38200131b98
SHA512 (eradicate-0.2.1.tar.gz) = 726db51e1d5ecc89a256e2c28835c20e60f4f42cef55193ec8cd3323c06f00e7c1bc270517baebcd69a145bc189f392c96d60b4582f48aef10ece05582942167
Size (eradicate-0.2.1.tar.gz) = 4357 bytes