commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2020-08-04 20:22:24 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.3592 (New) Package is "python-requirements-detector" Tue Aug 4 20:22:24 2020 rev:9 rq:824190 version:0.7 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2020-06-03 20:36:26.073908340 +0200 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.3592/python-requirements-detector.changes 2020-08-04 20:22:36.317003067 +0200 @@ -1,0 +2,7 @@ +Mon Aug 3 10:06:26 UTC 2020 - Marketa Calabkova + +- Update to version 0.7 + * support Python 3.8 + * code refactorings and cleanups + +--- Old: 0.6.tar.gz New: 0.7.tar.gz Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.I0gprP/_old 2020-08-04 20:22:37.001003155 +0200 +++ /var/tmp/diff_new_pack.I0gprP/_new 2020-08-04 20:22:37.001003155 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-requirements-detector -Version:0.6 +Version:0.7 Release:0 Summary:Python tool to find and list requirements of a Python project License:MIT @@ -30,12 +30,12 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-astroid >= 1.0.0 +Requires: python-astroid >= 1.4 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module astroid} +BuildRequires: %{python_module astroid >= 1.4} BuildRequires: %{python_module pytest} # /SECTION %ifpython3 ++ 0.6.tar.gz -> 0.7.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.6/.travis.yml new/requirements-detector-0.7/.travis.yml --- old/requirements-detector-0.6/.travis.yml 2018-07-22 10:24:34.0 +0200 +++ new/requirements-detector-0.7/.travis.yml 2020-05-29 11:13:53.0 +0200 @@ -1,12 +1,12 @@ sudo: false language: python python: - - "2.6" - "2.7" - "3.4" - "3.5" - "3.6" - - "3.7-dev" + - "3.7" + - "3.8" install: - "pip install nose coverage coveralls" - "pip install --editable ." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.6/README.md new/requirements-detector-0.7/README.md --- old/requirements-detector-0.6/README.md 2018-07-22 10:24:34.0 +0200 +++ new/requirements-detector-0.7/README.md 2020-05-29 11:13:53.0 +0200 @@ -47,3 +47,12 @@ >>> find_requirements(os.getcwd()) [DetectedRequirement:Django==1.5.2, DetectedRequirement:South>=0.8, ...] ``` + + +If you know the relevant file or directory, you can use `from_requirements_txt`, `from_setup_py` or `from_requirements_dir` directly. + +``` +>>> from requirements_detector import from_requirements_txt +>>> from_requirements_txt("/path/to/requirements.txt") +[DetectedRequirement:Django==1.5.2, DetectedRequirement:South>=0.8, ...] +``` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.6/requirements_detector/__compat__.py new/requirements-detector-0.7/requirements_detector/__compat__.py --- old/requirements-detector-0.6/requirements_detector/__compat__.py 2018-07-22 10:24:34.0 +0200 +++ new/requirements-detector-0.7/requirements_detector/__compat__.py 2020-05-29 11:13:53.0 +0200 @@ -3,14 +3,12 @@ # translated to new. try: - from astroid import Call +from astroid import Call except ImportError: - from astroid import CallFunc as Call +from astroid import CallFunc as Call try: - from astroid import AssignName +from astroid import AssignName except ImportError: - from astroid import AssName as AssignName - - +from astroid import AssName as AssignName diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.6/requirements_detector/__init__.py new/requirements-detector-0.7/requirements_detector/__init__.py --- old/requirements-detector-0.6/requirements_detector/__init__.py 2018-07-22 10:24:34.0 +0200 +++ new/requirements-detector-0.7/requirements_detector/__init__.py 2020-05-29 11:13:53.0
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2020-06-03 20:35:40 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.3606 (New) Package is "python-requirements-detector" Wed Jun 3 20:35:40 2020 rev:8 rq:811094 version:0.6 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2020-05-19 14:57:40.637293306 +0200 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.3606/python-requirements-detector.changes 2020-06-03 20:36:26.073908340 +0200 @@ -1,0 +2,5 @@ +Wed Jun 3 10:48:17 UTC 2020 - Marketa Calabkova + +- replace nose with pytest + +--- Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.t7SgPN/_old 2020-06-03 20:36:27.165911763 +0200 +++ /var/tmp/diff_new_pack.t7SgPN/_new 2020-06-03 20:36:27.169911775 +0200 @@ -36,7 +36,7 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module astroid} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pytest} # /SECTION %ifpython3 Conflicts: %{oldpython}-requirements-detector < 0.6 @@ -63,7 +63,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} +%pytest %post %python_install_alternative detect-requirements
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2020-05-19 14:57:35 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.2738 (New) Package is "python-requirements-detector" Tue May 19 14:57:35 2020 rev:7 rq:807273 version:0.6 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2020-01-10 17:51:40.530131094 +0100 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.2738/python-requirements-detector.changes 2020-05-19 14:57:40.637293306 +0200 @@ -1,0 +2,5 @@ +Tue May 19 09:27:42 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +--- Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.HTyg0w/_old 2020-05-19 14:57:42.045296429 +0200 +++ /var/tmp/diff_new_pack.HTyg0w/_new 2020-05-19 14:57:42.045296429 +0200 @@ -28,18 +28,19 @@ # https://github.com/landscapeio/requirements-detector/issues/25 Source: https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-astroid >= 1.0.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module astroid} BuildRequires: %{python_module nose} # /SECTION -Requires: python-astroid >= 1.0.0 -BuildRequires: fdupes -BuildArch: noarch %ifpython3 Conflicts: %{oldpython}-requirements-detector < 0.6 %endif - %python_subpackages %description @@ -58,15 +59,22 @@ %install %python_install +%python_clone -a %{buildroot}%{_bindir}/detect-requirements %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} +%post +%python_install_alternative detect-requirements + +%postun +%python_uninstall_alternative detect-requirements + %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/* -%python3_only %{_bindir}/detect-requirements +%python_alternative %{_bindir}/detect-requirements %changelog
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2020-01-10 17:51:32 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.6675 (New) Package is "python-requirements-detector" Fri Jan 10 17:51:32 2020 rev:6 rq:762869 version:0.6 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2020-01-09 22:54:44.186833654 +0100 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.6675/python-requirements-detector.changes 2020-01-10 17:51:40.530131094 +0100 @@ -1,0 +2,5 @@ +Fri Jan 10 15:06:41 UTC 2020 - Tomáš Chvátal + +- Revert back the previous commit + +--- Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.wtOGdz/_old 2020-01-10 17:51:41.698131682 +0100 +++ /var/tmp/diff_new_pack.wtOGdz/_new 2020-01-10 17:51:41.702131684 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# Copyright (c) 2020 SUSE LLC. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 %define oldpython python Name: python-requirements-detector Version:0.6 @@ -25,7 +24,7 @@ Summary:Python tool to find and list requirements of a Python project License:MIT Group: Development/Languages/Python -Url:https://github.com/landscapeio/requirements-detector +URL:https://github.com/landscapeio/requirements-detector # https://github.com/landscapeio/requirements-detector/issues/25 Source: https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz BuildRequires: %{python_module setuptools}
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2020-01-09 22:54:06 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.6675 (New) Package is "python-requirements-detector" Thu Jan 9 22:54:06 2020 rev:5 rq:762537 version:0.6 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2019-05-22 11:18:10.414453471 +0200 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.6675/python-requirements-detector.changes 2020-01-09 22:54:44.186833654 +0100 @@ -1,0 +2,5 @@ +Thu Jan 9 18:56:36 UTC 2020 - Todd R + +- Drop python2 subpackage due to dependencies dropping python2. + +--- Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.NyciDy/_old 2020-01-09 22:54:44.826833974 +0100 +++ /var/tmp/diff_new_pack.NyciDy/_new 2020-01-09 22:54:44.826833974 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 %define oldpython python Name: python-requirements-detector Version:0.6 @@ -39,8 +40,6 @@ %ifpython3 Conflicts: %{oldpython}-requirements-detector < 0.6 %endif -Requires(post): update-alternatives -Requires(postun): update-alternatives %python_subpackages @@ -60,22 +59,15 @@ %install %python_install -%python_clone -a %{buildroot}%{_bindir}/detect-requirements %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} -%post -%python_install_alternative detect-requirements - -%postun -%python_uninstall_alternative detect-requirements - %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/* -%python_alternative %{_bindir}/detect-requirements +%python3_only %{_bindir}/detect-requirements %changelog
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2019-05-22 11:17:52 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new.5148 (New) Package is "python-requirements-detector" Wed May 22 11:17:52 2019 rev:4 rq:704548 version:0.6 Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2015-05-16 19:01:50.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new.5148/python-requirements-detector.changes 2019-05-22 11:18:10.414453471 +0200 @@ -1,0 +2,14 @@ +Tue May 21 20:07:52 UTC 2019 - Todd R + +- Fix conflicts with old python2-only version +- Fix description formatting. + +--- +Mon May 20 12:56:43 UTC 2019 - pgaj...@suse.com + +- version update to 0.6 + * no changelog available +- run tests +- convert to singlespec + +--- Old: requirements-detector-0.4.tar.gz New: 0.6.tar.gz Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.g43M5A/_old 2019-05-22 11:18:11.238453167 +0200 +++ /var/tmp/diff_new_pack.g43M5A/_new 2019-05-22 11:18:11.250453162 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,45 +12,70 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-requirements-detector -Version:0.4 +Version:0.6 Release:0 Summary:Python tool to find and list requirements of a Python project License:MIT Group: Development/Languages/Python Url:https://github.com/landscapeio/requirements-detector -Source: https://pypi.python.org/packages/source/r/requirements-detector/requirements-detector-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools +# https://github.com/landscapeio/requirements-detector/issues/25 +Source: https://github.com/landscapeio/requirements-detector/archive/%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module astroid} +BuildRequires: %{python_module nose} +# /SECTION Requires: python-astroid >= 1.0.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: fdupes BuildArch: noarch +%ifpython3 +Conflicts: %{oldpython}-requirements-detector < 0.6 %endif +Requires(post): update-alternatives +Requires(postun): update-alternatives + +%python_subpackages %description -requirements-detector is a simple Python tool which attempts to find and list the requirements of a Python project. +Requirements-detector is a Python tool which attempts to find and list +the requirements of a Python project. -When run from the root of a Python project, it will try to ascertain which libraries and the versions of those libraries that the project depends on. +When run from the root of a Python project, it will try to ascertain +which libraries and the versions of those libraries that the project +depends on. %prep %setup -q -n requirements-detector-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%files -%defattr(-,root,root,-) -%{_bindir}/detect-requirements +%python_install +%python_clone -a %{buildroot}%{_bindir}/detect-requirements +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_expand PYTHONPATH=%{buildroot}%{$pthon_sitelib} nosetests-%{$python_bin_suffix} + +%post +%python_install_alternative detect-requirements + +%postun +%python_uninstall_alternative detect-requirements + +%files %{python_files} +%doc README.md +%license LICENSE %{pyth
commit python-requirements-detector for openSUSE:Factory
Hello community, here is the log from the commit of package python-requirements-detector for openSUSE:Factory checked in at 2015-05-16 19:01:50 Comparing /work/SRC/openSUSE:Factory/python-requirements-detector (Old) and /work/SRC/openSUSE:Factory/.python-requirements-detector.new (New) Package is "python-requirements-detector" Changes: --- /work/SRC/openSUSE:Factory/python-requirements-detector/python-requirements-detector.changes 2014-01-23 15:54:42.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-requirements-detector.new/python-requirements-detector.changes 2015-05-16 19:01:50.0 +0200 @@ -1,0 +2,6 @@ +Tue May 12 14:22:20 UTC 2015 - benoit.mo...@gmx.fr + +- update to version 0.4: + * no changelog available + +--- Old: requirements-detector-0.1.1.tar.gz New: requirements-detector-0.4.tar.gz Other differences: -- ++ python-requirements-detector.spec ++ --- /var/tmp/diff_new_pack.wDojQR/_old 2015-05-16 19:01:51.0 +0200 +++ /var/tmp/diff_new_pack.wDojQR/_new 2015-05-16 19:01:51.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-requirements-detector # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-requirements-detector -Version:0.1.1 +Version:0.4 Release:0 Summary:Python tool to find and list requirements of a Python project License:MIT ++ requirements-detector-0.1.1.tar.gz -> requirements-detector-0.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.1.1/PKG-INFO new/requirements-detector-0.4/PKG-INFO --- old/requirements-detector-0.1.1/PKG-INFO2013-10-26 17:50:56.0 +0200 +++ new/requirements-detector-0.4/PKG-INFO 2015-03-24 07:41:47.0 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: requirements-detector -Version: 0.1.1 +Version: 0.4 Summary: Python tool to find and list requirements of a Python project Home-page: https://github.com/landscapeio/requirements-detector Author: landscape.io @@ -9,3 +9,12 @@ Description: UNKNOWN Keywords: python requirements detector Platform: UNKNOWN +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: Intended Audience :: Developers +Classifier: Operating System :: Unix +Classifier: Topic :: Software Development :: Quality Assurance +Classifier: Programming Language :: Python :: 2.6 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3.3 +Classifier: License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/requirements-detector-0.1.1/requirements_detector/detect.py new/requirements-detector-0.4/requirements_detector/detect.py --- old/requirements-detector-0.1.1/requirements_detector/detect.py 2013-10-26 17:48:58.0 +0200 +++ new/requirements-detector-0.4/requirements_detector/detect.py 2015-03-23 23:06:42.0 +0100 @@ -1,14 +1,21 @@ import re import os +import sys from astroid.builder import AstroidBuilder from astroid import MANAGER, CallFunc, Name, Assign, Keyword, List, Tuple, Const, AssName from requirements_detector.requirement import DetectedRequirement -__all__ = ['find_dependencies', +__all__ = ['find_requirements', 'RequirementsNotFound', - 'CouldNotParseRequirements', - 'get_prospector_profiles'] + 'CouldNotParseRequirements'] + + +# PEP263, see http://legacy.python.org/dev/peps/pep-0263/ +_ENCODING_REGEXP = re.compile(r'coding[:=]\s*([-\w.]+)') + + +_PY3K = sys.version_info >= (3, 0) _PIP_OPTIONS = ( @@ -28,6 +35,34 @@ pass +def _load_file_contents(filepath): +# This function is a bit of a tedious workaround (AKA 'hack'). +# Astroid calls 'compile' under the hood, which refuses to accept a Unicode +# object which contains a PEP-263 encoding definition. However if we give +# Astroid raw bytes, it'll assume ASCII. Therefore we need to detect the encoding +# here, convert the file contents to a Unicode object, *and also strip the encoding +# declaration* to avoid the compile step breaking. +with open(filepath) as f: +if _PY3K: +return f.read() + +conte