kxrd
e7b8ddf72d
Replace with statement with a try/except/else/finally block to narrow down problem in the future
2017-06-13 22:22:27 +02:00
kxrd
54be2d1c24
Complete function clean
2017-06-13 22:03:21 +02:00
kxrd
d3efb942d5
Stop exctracting parameters in file, just return list of modules
2017-06-13 21:55:12 +02:00
kxrd
ac6ce860d0
Improve function diff docstring, begin function clean
2017-06-13 01:10:47 +02:00
kxrd
7549b1c416
Add and implement function diff, improve inline comments in function parse_requirements
2017-06-10 21:24:39 +02:00
kxrd
a78203dc2b
Improve function parse_requirements docstring
2017-06-10 21:22:18 +02:00
kxrd
882a0d3ec3
Add docstring to function parse_requirements
2017-06-10 20:52:17 +02:00
kxrd
d8b497ea91
Rename function clean to compare_modules, have it return a tuple of modules not imported, add docstring
2017-06-10 20:43:54 +02:00
kxrd
1055a7a28b
Add colon to error output for consistency
2017-06-10 20:02:43 +02:00
kxrd
888537a898
Improve except block in function parse_requirements
2017-06-10 20:01:42 +02:00
kxrd
b048c55fe6
Add clean
function
2017-06-02 22:30:17 +02:00
kxrd
b6c53c6b02
Begin function clean
2017-06-02 21:16:17 +02:00
kxrd
d463b92810
Return tuple consisting of modules,parameters instead of a concatenated list
2017-06-02 21:13:47 +02:00
kxrd
cdb82c6d9b
Switch out print statement against logging.error
2017-06-02 20:13:51 +02:00
kxrd
3d87f21392
Add file_
parameter to function parse_requirements
, implement a try-except block in function parse_requirements
2017-06-02 19:59:59 +02:00
kxrd
0886898d8d
Fix dict key:value in function parse_requirements()
2017-06-02 18:04:02 +02:00
kxrd
270f0e9933
Add function parse_requirements
2017-06-02 18:00:30 +02:00
kxrd
0b0f54a3de
Exclude concurrent{,.futures} from stdlib if py2
2017-06-01 08:22:36 +02:00
Vadim Kravcenko
3e6c1547dc
Version bump
2017-04-20 13:52:57 +02:00
L
243e6e6833
BUG: remove package/version duplicates
2017-04-17 11:33:06 -04:00
Vadim Kravcenko
1a990b52d5
refactor(pipreqs): pep8
2017-03-20 20:51:34 +01:00
Vadim Kravcenko
714393fcea
missing parameter for proxy
2016-12-13 15:28:18 +01:00
Vadim Kravcenko
0f70dcc33b
Version bump
2016-12-13 15:10:26 +01:00
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
345a275b3a
Bump Version
2016-07-14 19:09:00 +02: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
Vadim Kravcenko
0799301dee
Bump Version
2016-06-02 22:23:43 +02:00
Vadim Kravcenko
c7d527de84
Bump version
2016-02-10 19:09:26 +01:00
Dmitry Pribysh
36efe7e219
Make pipreqs not write duplicated lines to requirements.txt
2016-02-10 20:48:58 +03:00
Vadim Kravcenko
96a76f58c0
Version bump
2016-02-05 18:00:57 +01: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
Vadim Kravcenko
8b7a9815d9
Version bump
2016-01-28 22:06:44 +01: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
5930fdde61
Version bump
2016-01-20 09:38:41 +01:00
Vadim Kravcenko
d9434a5ac9
fix(pipreqs): correct regex for docstring
2016-01-20 09:36:58 +01:00
Vadim Kravcenko
5a01ec01e9
Bump version
2016-01-12 22:36:02 +01:00
Vadim Kravcenko
a8b1481886
improve(pipreqs/mapping): add more mapping of packages
...
whose import names are different from package names
2016-01-12 22:32:53 +01:00
Vadim Kravcenko
e984da46a5
fix(pipreqs/mapping): add picklefield mapping
2016-01-11 19:36:42 +01:00
Vadim Kravcenko
be1d8dfe58
bump version
2015-12-09 14:22:35 +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
5ce8e7c0dd
version bump
2015-12-04 21:05:31 +01:00
Vadim Kravcenko
c29abe5387
fix(pipreqs.py): clarify about proxy environment variables
2015-12-04 21:04:59 +01:00
Vadim Kravcenko
29d1405a0c
bump version
2015-12-04 20:42:22 +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
897bfafb54
fix(pipreqs/mapping): remove pylab reference to matplotlib
...
as it is a standalone library
2015-12-04 20:38:08 +01:00
Vadim Kravcenko
e9fea0e8f7
version bump
2015-10-22 10:54:23 +02: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
385d3be409
chore(init): Version bump
2015-10-21 11:49:51 +02: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
ea191acd36
chore(history): Version bump
2015-10-20 22:17:23 +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
Vadim Kravcenko
74d51a067c
chore(global): Bump Version
2015-09-25 20:47:03 +02: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
Vadim Kravcenko
dc512ae423
fix(make): add pip install to makefile
2015-05-09 12:38:02 +02:00
Vadim Kravcenko
a41b353a02
improve(mapping): Add more entries to mapping
2015-05-09 12:28:26 +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
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