From 638e2f1046199181af584ce6c481d979818873e5 Mon Sep 17 00:00:00 2001 From: Nick Gustafson Date: Thu, 8 Feb 2018 10:10:54 -0800 Subject: [PATCH 1/6] fix oauth2client bug in mapping --- pipreqs/mapping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipreqs/mapping b/pipreqs/mapping index 3608616..b4dfed3 100644 --- a/pipreqs/mapping +++ b/pipreqs/mapping @@ -800,7 +800,7 @@ nester:abofly nester:bssm_pythonSig novaclient:python_novaclient oauth2_provider:alauda_django_oauth -oauth2client:google_api_python_client +oauth2client:oauth2client odf:odfpy ometa:Parsley openid:python_openid From 712879a7becb608d28505355fce5a07769ecdb92 Mon Sep 17 00:00:00 2001 From: Nick Gustafson Date: Thu, 8 Feb 2018 10:11:16 -0800 Subject: [PATCH 2/6] fix sorting bug in get_pkg_names for consistency with pip freeze --- pipreqs/pipreqs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 0186832..4e7b39f 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -267,7 +267,7 @@ def get_pkg_names(pkgs): # simply use the package name. result.add(data.get(pkg, pkg)) # Return a sorted list for backward compatibility. - return sorted(result) + return sorted(result, key=lambda s: s.lower()) def get_name_without_alias(name): From 457174091940cbb2dab25941dfb9efeab0e8feaa Mon Sep 17 00:00:00 2001 From: Nick Gustafson Date: Thu, 8 Feb 2018 11:05:47 -0800 Subject: [PATCH 3/6] add test for get_pkg_names change --- tests/test_pipreqs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_pipreqs.py b/tests/test_pipreqs.py index 2b855fa..a020fab 100755 --- a/tests/test_pipreqs.py +++ b/tests/test_pipreqs.py @@ -69,6 +69,12 @@ class TestPipreqs(unittest.TestCase): item['name'].lower() in self.modules, "Import item appears to be missing " + item['name']) + def test_get_pkg_names(self): + pkgs = ['jury', 'Japan', 'camel', 'Caroline'] + actual_output = pipreqs.get_pkg_names(pkgs) + expected_output = ['camel', 'Caroline', 'Japan', 'jury'] + self.assertEqual(actual_output, expected_output) + def test_get_use_local_only(self): """ Test without checking PyPI, check to see if names of local imports matches what we expect From abd57602fe0a8f2f093a676184e6402ee728d2d6 Mon Sep 17 00:00:00 2001 From: Nikhil VJ Date: Wed, 4 Apr 2018 13:56:19 +0530 Subject: [PATCH 4/6] Replace pycrypto with pycryptodome Replace pycrypto with pycryptodome. See https://github.com/bndr/pipreqs/issues/66 for details. --- pipreqs/mapping | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipreqs/mapping b/pipreqs/mapping index 3608616..1267770 100644 --- a/pipreqs/mapping +++ b/pipreqs/mapping @@ -9,7 +9,7 @@ BeautifulSoupTests:BeautifulSoup BioSQL:biopython BuildbotStatusShields:BuildbotEightStatusShields ComputedAttribute:ExtensionClass -Crypto:pycrypto +Crypto:pycryptodome FSM:pexpect FiftyOneDegrees:51degrees_mobile_detector_v3_wrapper GeoBaseMain:GeoBasesDev From e4817bc68dcceb12a6b4c0103088c960cf4f167f Mon Sep 17 00:00:00 2001 From: Nikhil VJ Date: Fri, 24 Aug 2018 09:20:30 +0530 Subject: [PATCH 5/6] Add Cryptodome:pycryptodomex Ref: https://github.com/bndr/pipreqs/issues/66#issuecomment-415642021 This is a wholly separate package from pycryptodome (which replaced pycrypto in #124 and uses the namespace Crypto in import statments). This uses the namespace `Cryptodome` (is that what we call the parent name of module when importing?) --- pipreqs/mapping | 1 + 1 file changed, 1 insertion(+) diff --git a/pipreqs/mapping b/pipreqs/mapping index f7651a9..da75747 100644 --- a/pipreqs/mapping +++ b/pipreqs/mapping @@ -10,6 +10,7 @@ BioSQL:biopython BuildbotStatusShields:BuildbotEightStatusShields ComputedAttribute:ExtensionClass Crypto:pycryptodome +Cryptodome:pycryptodomex FSM:pexpect FiftyOneDegrees:51degrees_mobile_detector_v3_wrapper GeoBaseMain:GeoBasesDev From ea731aab13f734d29dc6da00b530819fa77d7d69 Mon Sep 17 00:00:00 2001 From: Tyler Hunt Date: Fri, 19 Oct 2018 10:36:52 -0600 Subject: [PATCH 6/6] added a mapping for django-prefetch -> prefetch --- pipreqs/mapping | 1 + 1 file changed, 1 insertion(+) diff --git a/pipreqs/mapping b/pipreqs/mapping index f7651a9..d9cbade 100644 --- a/pipreqs/mapping +++ b/pipreqs/mapping @@ -913,6 +913,7 @@ polymorphic:django_polymorphic portalocker:ConcurrentLogHandler postmark:python_postmark powerprompt:bash_powerprompt +prefetch:django-prefetch printList:AndrewList progressbar:progressbar2 progressbar:progressbar33