pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/url2pkg/files/python pkgtools/url2pkg: fix li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd0463364608
branches:  trunk
changeset: 384008:bd0463364608
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Aug 25 19:56:07 2022 +0000

description:
pkgtools/url2pkg: fix line ends

diffstat:

 pkgtools/url2pkg/files/python/distutils/__init__.py           |  18 +-
 pkgtools/url2pkg/files/python/distutils/core.py               |  36 ++--
 pkgtools/url2pkg/files/python/distutils/extension.py          |  20 +-
 pkgtools/url2pkg/files/python/distutils/version.py            |  18 +-
 pkgtools/url2pkg/files/python/setuptools/command/build_ext.py |  14 +-
 pkgtools/url2pkg/files/python/setuptools/command/install.py   |  14 +-
 pkgtools/url2pkg/files/python/setuptools/command/sdist.py     |  14 +-
 pkgtools/url2pkg/files/python/setuptools/dist.py              |  14 +-
 pkgtools/url2pkg/files/python/url2pkg.py                      |  80 +++++-----
 9 files changed, 114 insertions(+), 114 deletions(-)

diffs (264 lines):

diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/distutils/__init__.py
--- a/pkgtools/url2pkg/files/python/distutils/__init__.py       Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/distutils/__init__.py       Thu Aug 25 19:56:07 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: __init__.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# This is a drop-in replacement for the distutils Python module. Instead
-# of actually searching for the dependencies, it extracts the dependency
-# information and includes it in the generated pkgsrc package Makefile.
-#
-# https://docs.python.org/3/distutils/
-# As of Python 3.10, distutils is deprecated.
-# The successor is setuptools.
+# $NetBSD: __init__.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# This is a drop-in replacement for the distutils Python module. Instead
+# of actually searching for the dependencies, it extracts the dependency
+# information and includes it in the generated pkgsrc package Makefile.
+#
+# https://docs.python.org/3/distutils/
+# As of Python 3.10, distutils is deprecated.
+# The successor is setuptools.
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/distutils/core.py
--- a/pkgtools/url2pkg/files/python/distutils/core.py   Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/distutils/core.py   Thu Aug 25 19:56:07 2022 +0000
@@ -1,18 +1,18 @@
-# $NetBSD: core.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of distutils.core.
-#
-# https://docs.python.org/3/distutils/apiref.html#module-distutils.core
-
-import url2pkg
-
-
-# used by pkgsrc package devel/py-pysha3 1.0.2
-def setup(**kwargs):
-    url2pkg.setup(**kwargs)
-
-
-# Originally from distutils.cmd.
-# used by pkgsrc package devel/py-pysha3 1.0.2
-class Command:
-    pass
+# $NetBSD: core.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of distutils.core.
+#
+# https://docs.python.org/3/distutils/apiref.html#module-distutils.core
+
+import url2pkg
+
+
+# used by pkgsrc package devel/py-pysha3 1.0.2
+def setup(**kwargs):
+    url2pkg.setup(**kwargs)
+
+
+# Originally from distutils.cmd.
+# used by pkgsrc package devel/py-pysha3 1.0.2
+class Command:
+    pass
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/distutils/extension.py
--- a/pkgtools/url2pkg/files/python/distutils/extension.py      Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/distutils/extension.py      Thu Aug 25 19:56:07 2022 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: extension.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of distutils.extension
-#
-# https://docs.python.org/3/distutils/apiref.html#module-distutils.extension
-
-# used by pkgsrc package devel/py-pysha3 1.0.2
-class Extension:
-    def __init__(self, *args, **kwargs):
-        pass
+# $NetBSD: extension.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of distutils.extension
+#
+# https://docs.python.org/3/distutils/apiref.html#module-distutils.extension
+
+# used by pkgsrc package devel/py-pysha3 1.0.2
+class Extension:
+    def __init__(self, *args, **kwargs):
+        pass
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/distutils/version.py
--- a/pkgtools/url2pkg/files/python/distutils/version.py        Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/distutils/version.py        Thu Aug 25 19:56:07 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: version.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of distutils.version.
-#
-# https://docs.python.org/3/distutils/apiref.html#module-distutils.version
-
-# used by pkgsrc package wip/py-torch 1.12.0
-class LooseVersion:
-    pass
+# $NetBSD: version.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of distutils.version.
+#
+# https://docs.python.org/3/distutils/apiref.html#module-distutils.version
+
+# used by pkgsrc package wip/py-torch 1.12.0
+class LooseVersion:
+    pass
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/setuptools/command/build_ext.py
--- a/pkgtools/url2pkg/files/python/setuptools/command/build_ext.py     Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/setuptools/command/build_ext.py     Thu Aug 25 19:56:07 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: build_ext.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of setuptools.command.build_ext.
-#
-# https://github.com/pypa/setuptools/blob/main/setuptools/command/build_ext.py
-
-# used by pkgsrc package wip/pytorch 1.12.0
+# $NetBSD: build_ext.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of setuptools.command.build_ext.
+#
+# https://github.com/pypa/setuptools/blob/main/setuptools/command/build_ext.py
+
+# used by pkgsrc package wip/pytorch 1.12.0
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/setuptools/command/install.py
--- a/pkgtools/url2pkg/files/python/setuptools/command/install.py       Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/setuptools/command/install.py       Thu Aug 25 19:56:07 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: install.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of setuptools.command.install.
-#
-# https://github.com/pypa/setuptools/blob/main/setuptools/command/install.py
-
-# used by pkgsrc package wip/pytorch 1.12.0
+# $NetBSD: install.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of setuptools.command.install.
+#
+# https://github.com/pypa/setuptools/blob/main/setuptools/command/install.py
+
+# used by pkgsrc package wip/pytorch 1.12.0
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/setuptools/command/sdist.py
--- a/pkgtools/url2pkg/files/python/setuptools/command/sdist.py Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/setuptools/command/sdist.py Thu Aug 25 19:56:07 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: sdist.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation of setuptools.command.sdist.
-#
-# https://github.com/pypa/setuptools/blob/main/setuptools/command/sdist.py
-
-# used by pkgsrc package wip/pytorch 1.12.0
+# $NetBSD: sdist.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation of setuptools.command.sdist.
+#
+# https://github.com/pypa/setuptools/blob/main/setuptools/command/sdist.py
+
+# used by pkgsrc package wip/pytorch 1.12.0
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/setuptools/dist.py
--- a/pkgtools/url2pkg/files/python/setuptools/dist.py  Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/setuptools/dist.py  Thu Aug 25 19:56:07 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: dist.py,v 1.1 2022/07/16 08:59:39 rillig Exp $
-#
-# Fake implementation for setuptools.dist.
-
-# used by pkgsrc package wip/py-torch 1.12.0
-class Distribution:
-    pass
+# $NetBSD: dist.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Fake implementation for setuptools.dist.
+
+# used by pkgsrc package wip/py-torch 1.12.0
+class Distribution:
+    pass
diff -r f1880c089284 -r bd0463364608 pkgtools/url2pkg/files/python/url2pkg.py
--- a/pkgtools/url2pkg/files/python/url2pkg.py  Thu Aug 25 19:51:59 2022 +0000
+++ b/pkgtools/url2pkg/files/python/url2pkg.py  Thu Aug 25 19:56:07 2022 +0000
@@ -1,40 +1,40 @@
-# $NetBSD: url2pkg.py,v 1.1 2022/07/16 08:59:38 rillig Exp $
-#
-# Forwards the module metadata from distutils and setuptools to url2pkg.
-
-def print_depends(varname, depends):
-    for dep in depends:
-        print('%s\t%s%s' % (varname, dep.replace(' ', ''), '' if '>' in dep else '>=0'))
-
-
-def print_var(varname, value):
-    if value != '':
-        print('var\t%s\t%s' % (varname, value))
-
-
-def print_cmd(cmd, arg):
-    print('\t'.join(('cmd', cmd, arg)))
-
-
-def print_license(license_name):
-    if license_name == '':
-        return
-    print_cmd('license', license_name)
-    print_cmd(
-        'license_default',
-        '%s # TODO: from setup.py; needs to be adjusted' % license_name)
-
-
-def setup(**kwargs):
-    print_depends('DEPENDS', kwargs.get('requires', []))  # only for distutils.core
-    print_depends('DEPENDS', kwargs.get('install_requires', []))
-    print_depends('TEST_DEPENDS', kwargs.get('tests_require', []))
-    print_depends('BUILD_DEPENDS', kwargs.get('extras_require', {}).get('dev', []))
-    print_depends('BUILD_DEPENDS', kwargs.get('setup_requires', []))
-    print_var('COMMENT', kwargs.get('description', '').rstrip('.'))
-    print_var('HOMEPAGE', kwargs.get('url', ''))
-    print_license(kwargs.get('license', ''))
-
-    # TODO: implement 'python_requires'
-    #  example pkgsrc package: devel/py-futures
-    #  example values: >=2.6, <3, >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
+# $NetBSD: url2pkg.py,v 1.2 2022/08/25 19:56:07 rillig Exp $
+#
+# Forwards the module metadata from distutils and setuptools to url2pkg.
+
+def print_depends(varname, depends):
+    for dep in depends:
+        print('%s\t%s%s' % (varname, dep.replace(' ', ''), '' if '>' in dep else '>=0'))
+
+
+def print_var(varname, value):
+    if value != '':
+        print('var\t%s\t%s' % (varname, value))
+
+
+def print_cmd(cmd, arg):
+    print('\t'.join(('cmd', cmd, arg)))
+
+
+def print_license(license_name):
+    if license_name == '':
+        return
+    print_cmd('license', license_name)
+    print_cmd(
+        'license_default',
+        '%s # TODO: from setup.py; needs to be adjusted' % license_name)
+
+
+def setup(**kwargs):
+    print_depends('DEPENDS', kwargs.get('requires', []))  # only for distutils.core
+    print_depends('DEPENDS', kwargs.get('install_requires', []))
+    print_depends('TEST_DEPENDS', kwargs.get('tests_require', []))
+    print_depends('BUILD_DEPENDS', kwargs.get('extras_require', {}).get('dev', []))
+    print_depends('BUILD_DEPENDS', kwargs.get('setup_requires', []))
+    print_var('COMMENT', kwargs.get('description', '').rstrip('.'))
+    print_var('HOMEPAGE', kwargs.get('url', ''))
+    print_license(kwargs.get('license', ''))
+
+    # TODO: implement 'python_requires'
+    #  example pkgsrc package: devel/py-futures
+    #  example values: >=2.6, <3, >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*



Home | Main Index | Thread Index | Old Index