Bill Flynn
ebbd2d4f19
added another test for #98
7 years ago
Bill Flynn
4362c649b2
Added alias description functionality to conf #98
...
Changed Alias constructor, added tests for this behavior, and added
a few lines in the default conf describing how to define alias
descriptions.
7 years ago
Olivier Mangin
6dd4b319ea
Merges PR #66
7 years ago
Olivier Mangin
3e31c4455e
Fixes argument and adds tests for overwrite on import.
7 years ago
Dennis Wilson
1cd95bdeec
overwrite argument on import
7 years ago
Olivier Mangin
f808ff5f5c
Updates list of contributors.
7 years ago
Olivier Mangin
88a6921fad
Merge branch Print help when no subcommand is provided #100 .
...
Fixes #99 .
7 years ago
Olivier Mangin
b7d135f1c8
Adds wflynny to contributors.
7 years ago
Bill Flynn
37f076049b
Many tests on MacOS 10.12.06 were failing due to fakefs path issues.
...
Not sure if this is needed. Will see in the CI builds.
7 years ago
Bill Flynn
0c7ba85af9
Revisions subject to comments on PR #100
...
Additionally, reverted FakeSystemExit subclassing Exception, but added
an explicit __init__ so that we can emulate the SystemExit.code
functionality without having to change the superclass.
7 years ago
Bill Flynn
66c90c5d43
Added unittest to cover new behavior `pubs`
...
Unittest just checks that both `pubs` and `pubs --help` raise a
`SystemExit` exception with error code 0. Due to how argparse
handles the `--help` keyword, this is the best way I could think to
provide test coverage without heavily modifying the parser structure
or the unittest infrastructure.
To ensure the `pubs` matches the behavior of `pubs --help`, it now
raises the same `SystemExit(0)` exception via `sys.exit(0)`. And
in order to catch it in the unittest, I had to modify the
`FakeSystemExit` behavior slightly.
7 years ago
Bill Flynn
ac3a8d8bf2
Print help menu when no subcommands applied
...
Made subparsers not required in the main parser, but if no commands are parsed,
then the parser prints its help. When a command is present, the normal
functionality preserved.
Removed the single unittest that checks for this exact behavior.
7 years ago
Olivier Mangin
5676cb49a9
Merge pull request #96 from pubs/fix/content
...
Fixes content not read from urls because of call to `os.abspath`
7 years ago
Olivier Mangin
4ea9f2101d
Merge pull request #97 from pubs/fix/config
...
Fix defaults not used in config.
7 years ago
Olivier Mangin
66b51997ea
Fix defaults not used in config.
...
Basically the validation takes care of setting results that
post-processing was relying on. Hence the validation should occur before
the postprocessing. It actually makes more sense to validate within
post-process.
7 years ago
Olivier Mangin
6a26216c3e
COSMIT
7 years ago
Olivier Mangin
a65873a7e0
Fixes abspath called on urls preventing to get content from url.
...
Fix #7
7 years ago
Olivier Mangin
f6035cac80
Merge pull request #94 from pubs/fix/93
...
Fix #93 : actually save the modifications on `edit -m`.
7 years ago
Olivier Mangin
47f5c918ea
Fix #93 : saves the modifications on `edit -m`.
7 years ago
Olivier Mangin
2cab1666e8
Merge pull request #91 from pubs/fix/88
...
[Fix #88 ] Adds proper escaping for arguments in alias plugin.
7 years ago
Olivier Mangin
922781a89a
Moves shell_quote import out of p3.py
7 years ago
Olivier Mangin
5c74f942c4
[ Fix #88 ] Adds proper escaping for arguments in alias plugin.
7 years ago
Olivier Mangin
be3c124079
Fix update code.
8 years ago
Olivier Mangin
d40b86a9cf
Updates version everywhere.
8 years ago
Olivier Mangin
3e05ad6d19
Releases 0.7.0
8 years ago
Olivier Mangin
b63a132ac4
Version update.
8 years ago
Fabien C. Y. Benureau
6cccc021f8
Minor fix for isbn2index docstring
8 years ago
Olivier Mangin
a286b118f4
Improves instructions in README.
8 years ago
Olivier Mangin
bd872e807d
Lowercase license file.
8 years ago
Olivier Mangin
4f638ba9b6
Merge pull request #82 from pubs/bug/conf_cmd
...
Fixes bug in conf command and adds unittest
8 years ago
Olivier Mangin
69d7587108
Adds test for configuration file content in usecase.
8 years ago
Fabien C. Y. Benureau
366575763c
Remove duplicate test
8 years ago
Fabien C. Y. Benureau
0942df3b50
Fix pubs conf command
8 years ago
Olivier Mangin
fd084bb827
Merge branch 'fix/76'
8 years ago
Olivier Mangin
da6f07c6c9
Adds basic API test for DOI and ISBN.
8 years ago
Olivier Mangin
38fc68adbc
Refactors filebroker to remove file duplication.
8 years ago
Olivier Mangin
983d1892e0
Removes unused imports.
8 years ago
Olivier Mangin
7b19a9dcdd
Forces utf8 when no encoding in header for DOI request.
...
The default behavior from the requests library is to use the guess from
chardet which is not always reliable while doi.org seems to always
return utf8 encoded data. It's unlikely that this changes without also
updating the header.
8 years ago
Olivier Mangin
cf596206b0
FIX: Encode unicode before writing to file in python2.
...
This is necessary because _open returns a file descriptor in binary mode
for python2.
8 years ago
Olivier Mangin
81f2661593
Cosmit
8 years ago
Fabien Benureau
0dd51aff58
Merge pull request #79 from pubs/bug/websearch_fix
...
Fixes websearch in Python 3 (fix #69 )
8 years ago
Fabien C. Y. Benureau
1f224a90c7
Fixes websearch in Python 3 ( fix #69 )
8 years ago
Olivier Mangin
d281a82025
Merge pull request #71 from pubs/feat/note_extension
...
[notes] Allow different file extension for note file (closes #70 ).
8 years ago
Olivier Mangin
4ffd62fe9f
[notes] Allow different file extension for note file (see #70 ).
8 years ago
Olivier Mangin
cd63575034
Merge pull request #74 from pubs/feat/require_argcomplete
...
Adds argcomplete as an optional requirement.
8 years ago
Olivier Mangin
af503fd0eb
Argcomplete as an optional requirement.
8 years ago
Fabien C. Y. Benureau
bc71557461
Add argcomplete to required package (easier installation)
8 years ago
Fabien Benureau
7e3cd61628
Merge pull request #73 from pubs/bug/unittests
...
Bug/unittests
8 years ago
Olivier Mangin
9b6496d740
Removed commented code with old imports.
8 years ago
Olivier Mangin
323fb8b674
Fixes indent and removes unused io import.
8 years ago