28 Commits

Author SHA1 Message Date
Tiago Costa
ea2db2c29a Strip alias from import name for multiple imports on the same line. Fix for #13 2015-05-08 23:57:19 +01:00
cclauss
00695850a5 Sorted so it is easier to edit 2015-05-08 18:05:07 +02:00
Vadim Kravcenko
d4e1e9144d style: PEP8 cleanup 2015-05-08 17:36:41 +02:00
Vadim Kravcenko
f2024cbc40 fix(pipreqs): fix package import names (case sensitive) 2015-05-08 17:28:39 +02:00
Vadim Kravcenko
a0c796bc6b feat(pipreqs): Add ImportName -> PackageName mapping, fix for #5 2015-05-08 16:56:53 +02:00
Vadim Kravcenko
50470f7836 improve(pipreqs): Remove unnecessary if statements 2015-05-08 11:15:37 +02:00
Colton J. Provias
505ee3b939 Fix for TypeError for implicit conversion
`package_import` is a list, and on Python 3.4 it must be implicitly converted to a string before concatenation.
2015-05-07 18:30:16 -04:00
Vadim Kravcenko
099af5594c style(pipreqs): pep8 2015-05-06 15:21:19 +02:00
Vadim Kravcenko
c4d0fb8cf0 feat(cli): Add --use-local option
When --use-local option is passed, only package information in local
site-packages directory is considered, otherwise BOTH local and PyPI
information is loaded.
2015-05-06 15:18:03 +02:00
littmus
8538d10ee3 Use "latest_release_id" instead of "release_ids[-1]" cause it is inexact. 2015-05-02 15:44:36 +09:00
littmus
2c5906ea58 Exclude relative imports.
ex) from .foo import bar
2015-05-02 13:42:03 +09:00
Harri Berglund
b8a88e3c94 Update help text 2015-04-28 23:11:19 +03:00
Harri Berglund
57626670ce Return sorted list from get_all_imports() 2015-04-28 23:11:19 +03:00
Harri Berglund
177c156b38 Use str.format() 2015-04-28 23:11:01 +03:00
Harri Berglund
fb87e41b63 Fix typos 2015-04-28 21:53:10 +03:00
cclauss
0b4b522c38 str.partition() simplifies the logic, thighten up write()
str.partition() has nice advantages over str.split():

```python
to_append = item if "." not in item else item.split(".")[0]
# is equivalent to...
to_append = item.partition(".")[0]
```

Also tightened up generate_requirements_file() to send all data in a single write() operation
2015-04-28 07:35:54 +02:00
cclauss
a04bb6f0fc Minor edits 2015-04-28 00:30:12 +02:00
littmus
eca9884b25 Change map and filter to list comprehension for py2 and py3 compatible 2015-04-27 00:10:05 +09:00
littmus
a438406f68 - Pre-filter python files only and remove empty lines in file.
- Exclude local packages import.
2015-04-26 23:32:41 +09:00
littmus
1dee19e3f5 Include packages imported with "as" and add tests. 2015-04-26 23:32:17 +09:00
Michael
655b32797a Fix indentation, pep8. Optimize imports and adding missing import for sys module.
Improvements in some parts of  get_all_imports method and removing unused path variable.
2015-04-25 12:31:05 +03:00
Vadim Kravcenko
9fcb4216a2 Fix(tests): Increase test coverage 2015-04-24 10:57:25 +02:00
Vadim Kravcenko
ecc8db88f5 fix(pipreqs): More verbose output 2015-04-24 08:32:38 +02:00
Vadim Kravcenko
b55814a40d fix(pipreqs): py3 print support 2015-04-22 22:49:59 +02:00
Vadim Kravcenko
8c7604ad99 Fix readme, add more verbose output 2015-04-22 22:40:17 +02:00
Vadim Kravcenko
68e08af6c5 fix(package): include stdlib in package 2015-04-22 21:45:48 +02:00
Vadim Kravcenko
4ea48f9c7c fix(pipreqs): Fix regular expressions matching 2015-04-22 20:04:31 +02:00
Vadim Kravcenko
6a3019427c Initial commit 2015-04-22 18:40:17 +02:00