Olivier Mangin
c87b89bf10
Fix wrong test.
7 years ago
Olivier Mangin
6ca4020627
Merge pull request #118 from pubs/fix/test_on_new_bp
...
Updates field orders to use 'url' and fixes broken test.
7 years ago
Fabien C. Y. Benureau
d4e1ab8695
bibtexparser>=1.0.1 requirement in setup.py
7 years ago
Olivier Mangin
078b2084ff
Updates field orders to use 'url' and fixes broken test.
...
The field ordering test was broken on the latest bibtexparser since it
now replaces by default 'link' fields by 'url'.
7 years ago
Olivier Mangin
cfb0042e37
Merge pull request #117 from pubs/bug/leadingspace
...
Fix bibtex testcase, closes #25 .
7 years ago
Fabien C. Y. Benureau
8126a0e0b4
Fix bibtex testcase, closes #25 .
...
Also, made pyfakefs a straight pypi requirement, rather than a
github one, as no dev feature is needed since the last release.
7 years ago
Olivier Mangin
d685ec10aa
Merge pull request #114 from pubs/fix/empty_key
...
Better checks and error message for empty key (Closes #113 ).
7 years ago
Olivier Mangin
0b1ff7e441
PEP8 cosmetics.
7 years ago
Olivier Mangin
328f2a6d5e
Adds more checks and better error message against empty citekeys.
7 years ago
Olivier Mangin
599b124b7c
Merge pull request #112 from pubs/feat/entry_point
...
Feat/entry point
7 years ago
Olivier Mangin
26f0b4dc04
Adds argcomplete command to pubs_cmd so that is now used as entry-point.
7 years ago
Olivier Mangin
ac536269e3
Removes script since unused with entry_points method
7 years ago
Olivier Mangin
fe03345e48
Moves from `scripts` to `entry_points`. This likely breaks autocompletion.
7 years ago
Olivier Mangin
7956e9bcb2
Fixes wrong option for extras_require and cleanup.
7 years ago
Olivier Mangin
79003c2fb8
Merge pull request #106 from pubs/feat/use-bwriter
...
Uses bibtexparser bwriter instead of internal encoder and adds `--ignore-fields` option to export.
7 years ago
Olivier Mangin
8aed13c7c9
Merge pull request #108 from pubs/feat/osx-travis
...
Travis build on OSX
7 years ago
Olivier Mangin
1a88dccd77
Adds travis python install instructions for OSX
7 years ago
Olivier Mangin
373178a2de
Adds travis testing on OSX.
7 years ago
Olivier Mangin
a2a70fab32
Merge pull request #107 from pubs/feat/travis-latest-python
...
Adds python 3.6 to travis build.
7 years ago
Olivier Mangin
8c37ee5e92
Adds python 3.6 to travis build.
7 years ago
Olivier Mangin
a8716e6482
Adds completion for the `--ignore-fields` tag.
7 years ago
Olivier Mangin
860181e278
Adds argument to ignore fields in export. [ Closes #67 ]
...
`pubs export --ignore-fields abstract,note CiteKey`
7 years ago
Olivier Mangin
07be993d02
Moves to using bibtexparser's writer for bibdata. [ Fixes #33 ]
7 years ago
Olivier Mangin
14440c5e4c
Merge pull request #105 from wflynny/robust-doi
...
[Fix #95 ] robust handling of DOIs
7 years ago
Bill Flynn
098cb4d1bf
ran pep8 on pubs/utils
7 years ago
Bill Flynn
aa408e9b2d
[ #95 ] updated doi tests
7 years ago
Bill Flynn
aea58dea29
[ #95 ] refactored exception into standardize_doi
7 years ago
Bill Flynn
e2ad39ca08
[ Fix #95 ] robust handling of DOIs
...
Added DOI regex function to utils.py which is called in add_cmd.py
upon specifying a new DOI. DOI validation applies directly on
argument parsing by using a custom argparse.Action.
7 years ago
Olivier Mangin
28a026d308
Merge pull request #102 from pubs/feature/year-range
...
Feature: year ranges in query. [Fixes #90 ]
Enables queries of the following form: "year:2000", "year:2000-2010", "year:2000-", "year:-2010".
7 years ago
Olivier Mangin
e069da518f
Fixes query tests (`assertFalse(not ...)` and wrong name).
7 years ago
Olivier Mangin
3ad4a73da1
Moves query code from list_cmd to didicated module.
7 years ago
Olivier Mangin
0bd8d5b8dc
Actually adds the functionality as well as a few more tests.
7 years ago
Olivier Mangin
832a20d743
Typo.
7 years ago
Olivier Mangin
84553d8eb3
[ Fix #90 ] Adds year ranges to queries.
7 years ago
Olivier Mangin
c54de5c3b6
Refactors paper filtering from queries.
7 years ago
Olivier Mangin
e3f2e7db26
Cosmit.
7 years ago
Olivier Mangin
f8362911d3
Merge pull request #104 from wflynny/alias-desc
...
Allows aliases with descriptions.
Alias can be defined as currently supported and as subsections of the `[[alias]]` section of `conf.py` of the form:
```
[[[alias-name]]]
command = alias-command-definition
description = alias-description
```
Note that aliases defined this way must be placed at the end of the [[alias]] section or they will gobble up aliases defined in the current format. This is a limitation of `ConfigObj` sectioning.
7 years ago
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