Antti Kaihola
c69067819a
Fixes #56 : The --pypi-server option now accepts an URL
2016-12-13 16:06:06 +02:00
UTAGAWA Kiki
f31ad89350
Implement --print to output list of requirements to stdout
2016-11-22 00:10:10 +09:00
Vadim Kravcenko
63be6bb253
fix(pipres): Add dependency even if version was not found
2016-07-14 18:57:43 +02:00
Vadim Kravcenko
d93319ccf1
fix(pipres): ignore .tox directory #44
2016-07-14 18:55:13 +02:00
Dmitry Pribysh
36efe7e219
Make pipreqs not write duplicated lines to requirements.txt
2016-02-10 20:48:58 +03:00
Vadim Kravcenko
075436d8e1
fix(pipreqs): allow comma-separated --ignore parameter
2016-02-05 18:00:34 +01:00
nrhine1
c888100470
added ignore option
2016-02-05 10:57:26 -05:00
Kay Sackey
bc5cd169ec
Python 3 Compatability
2016-01-28 15:05:04 -05:00
Kay Sackey
2059626583
Passing Tests
...
Also added test documentation.
The changes to the tests were necessary as AST walking will retrieve
all valid dependencies and fail on syntactically incorrect .py files.
2016-01-28 15:01:39 -05:00
Kay Sackey
415ede7691
Cleanup
...
Moved the import statement to the top of the page where it belongs
2016-01-28 01:08:38 -05:00
Kay Sackey
60983f0fde
Walk Abstract Syntax Tree to find imports
...
Rationale: Using regex means that you can only find the imports that are at the top of the page without any spaces between them. There's likely other issues, but that was the one that bit me.
Caveat: Old method would parse files with broken syntax. This one will not.
2016-01-28 01:04:58 -05:00
Vadim Kravcenko
d9434a5ac9
fix(pipreqs): correct regex for docstring
2016-01-20 09:36:58 +01:00
Vadim Kravcenko
6a2c266422
fix(pipreqs.py): add new line between usage and option, https for proxy
2015-12-09 14:20:23 +01:00
Vadim Kravcenko
c29abe5387
fix(pipreqs.py): clarify about proxy environment variables
2015-12-04 21:04:59 +01:00
Vadim Kravcenko
1ee081454b
fix(pipreqs.py): remove ''' and """ comments before going through imports
2015-12-04 20:40:38 +01:00
Vadim Kravcenko
a4a40efe26
fix(pipreqs.py): remove '.egg' from version
2015-12-04 20:39:51 +01:00
Vadim Kravcenko
383d5a7725
Merge pull request #31 from hdformat/master
...
fix(pipreqs/pipreqs.py): fix a mistake on args.get
2015-10-22 10:49:13 +02:00
EJ Lee
084ef4b725
fix(pipreqs/pipreqs.py): fix a mistake on args.get
2015-10-22 17:15:43 +09:00
Vadim Kravcenko
f2ee9d50d5
fix(pipreqs): set default logging level to INFO
2015-10-21 11:49:08 +02:00
Vadim Kravcenko
1e7b021120
fix(pipreqs): add venv to ignore_dirs
2015-10-21 11:48:21 +02:00
Vadim Kravcenko
3acbdaa893
fix(pipreqs/pipreqs.py): add python 2.6 and 2.7 support for encoding parameter
2015-10-20 22:10:12 +02:00
EJ Lee
061a9b5f64
fixed lint warnings
2015-10-20 19:51:39 +09:00
EJ Lee
195565b50c
feat(cli): add --encoding parameter for open()
2015-10-20 19:45:20 +09:00
EJ Lee
e0137f2245
fix(pipreqs): support windows directory separator
2015-10-20 19:39:48 +09:00
Vadim Kravcenko
8d7b7f6d1c
feat(cli): add --proxy and --pypi-server options
2015-09-28 20:45:23 +02:00
Steve Barnes
4b30cf6ae6
Added .svn & .hg to directory ignores.
...
Also added *.bak to git ignores.
Addresses #25
2015-09-28 15:21:32 +01:00
LeeW
301ff8ce83
Ignore irreverent directory when generating requirement.txt
...
* Currently ignore .git, __pycache__, env
2015-08-31 21:25:17 +08:00
LeeW
2c4ad02bfb
Modify logging level of "Requirement.txt already exists" to warning
2015-08-31 19:47:41 +08:00
lord63
d59c9a1e84
Fix flake8
2015-07-14 19:56:14 +08:00
lord63
7ecc1248de
Fix the wrong version info, close #19
2015-07-13 22:49:49 +08:00
Vadim Kravcenko
fe71b90075
Version 0.2.8
...
Add --force option
Clean up
2015-06-19 23:23:38 +02:00
Vadim Kravcenko
b68919c440
try to read, ignore if failed
2015-05-12 06:24:31 +02:00
Vadim Kravcenko
f3ec4d5d2a
fix(pipreqs): Walk through all sys.path instead of only get_python_lib()
2015-05-11 23:05:47 +02:00
Vadim Kravcenko
9035a2eb5b
styling: pep8
2015-05-11 22:02:53 +02:00
Vadim Kravcenko
0f622de27c
fix(pipreqs): ignore word "import" in package names
2015-05-11 21:46:33 +02:00
Vadim Kravcenko
8a04169419
fix(pipreqs): Duplicate entries in requirements.txt
2015-05-11 19:18:22 +02:00
Vadim Kravcenko
496b729309
fix(pipreqs): line parsing with comments on the same line
2015-05-11 19:18:05 +02:00
Vadim Kravcenko
94af4fc171
fix(pipreqs): py3 compatibility
2015-05-10 11:03:22 +02:00
Vadim Kravcenko
3fc82c5743
refactor(pipreqs): Refactor core code, remove unnecessary prints, rename vars
2015-05-10 10:58:05 +02:00
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
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