675 Commits

Author SHA1 Message Date
ksunden
bff1f5763d Add a command to open urls 2018-05-08 22:32:12 -05:00
Olivier Mangin
29aed39bf8
Merge pull request #133 from benureau/fix/utf8citekeys
Fix/utf8citekeys
2018-04-12 13:50:35 -04:00
Fabien C. Y. Benureau
913a5d77b5 unicode citekey in python2; removes 2018-04-10 14:55:55 +09:00
Fabien C. Y. Benureau
c7e9470300 implement requested changes for #133 2018-04-10 14:46:27 +09:00
Fabien C. Y. Benureau
dc4e118c3c make utf8 citekeys possible in python 2.7. closes #28
This involved many changes, some side effects of the change include:
- remove of all `u"abc"` forms, in favor of
  `from __future__ import unicode_literals`. Their usage was
  inconsistent anyway, leading to problems when mixing with
  unicode content.
- improve the tests, to allow printing for usecase even when
  crashing. Should make future test easier. This is done with a
  rather hacky `StdIO` class in `p3`, but it works.
- for some reason, the skipped test for Python 2 seems to work
  now. While the previous point might seem related, it is not clear
  that this is actually the case.
2018-04-10 14:45:54 +09:00
Fabien C. Y. Benureau
38133fc053 fix for utf8 citekeys 2018-04-10 14:44:01 +09:00
Fabien C. Y. Benureau
9a6db894d8 fix fakeenv creation when used from a non-primary volume 2018-04-10 14:44:01 +09:00
Olivier Mangin
47b69820b8
Merge #138: Rebuilds cache on version change and de-duplicate version definition.
See #86 and #129.

The version number is now only stored in pubs/version.py. setup.py loads the version from the file as well as does pubs/__init__.py.

The cache structure changes to now include the version of the code which wrote the cache, which enables rebuilding the cache on version change. Loading an old cache (i.e. without the version) fails and triggers a rebuild (so does loading the new cache from the old code) so moving across this change is transparent here.

The code also switches to version 0.8.dev1 to trigger a cache rebuild (and also because the milestone is almost there). In general we will need to bump the version number to a development one each time a change makes loading old cache incompatible. There is no test for that at the moment so this means testing new code on a local bibliography repository before pushing to master.

#129 discussed using git versions, which is not so easy to integrate nicely with setuptools. This is why I chose to stick with manually changing version numbers when necessary (which should not be so often).
2018-04-03 13:04:55 -04:00
Olivier Mangin
50a44d964c
Merge branch 'master' into version 2018-04-03 12:36:52 -04:00
Olivier Mangin
857ebdef00
Merge pull request #137 from pubs/fix/135
Fixes tests for printing help on `--help` and without argument.
2018-04-03 12:35:45 -04:00
Olivier Mangin
801e0c035f
Adds code version to cache. (Fixes #129)
Current code version is added to the cache on writting. If the cache
version does not match the code version on read, the cache is ignored
which means it resets.
2018-03-30 19:16:23 -04:00
Olivier Mangin
0d7b44a3f5
Have version defined in only one place (fixes #86). 2018-03-30 18:47:21 -04:00
Olivier Mangin
bcf216183f
Fixes tests for printing help on --help and without argument.
(fix #135)
2018-03-27 15:44:20 -04:00
Olivier Mangin
a2af1ce4a5
Merge pull request #130 from pubs/feat/tag_completion_in_add
Adds tag list completion in `pubs add -t `
2018-03-22 15:44:45 -04:00
Fabien C. Y. Benureau
f8a8e0e207 pyfakefs 3.3 2018-03-22 11:38:26 +09:00
Fabien C. Y. Benureau
ec0b383319 add python osx 2.7 to travis testing 2018-03-22 11:29:52 +09:00
Olivier Mangin
12e8285674 Adds tag list completion in 2018-03-20 18:43:51 -04:00
Olivier Mangin
1adb26471c
Merge pull request #127 from pubs/fix/remove_journal_customization
Removes journal customization (fixes #126)
2018-03-14 15:43:18 -04:00
Olivier Mangin
c28ab495cc
Removes journal customization (fixes #126) 2018-03-05 11:25:12 -05:00
Olivier Mangin
4ceeccddad
Merge pull request #124 from pubs/fix/link_customization
Removes link and DOI customization. Fixes #119.
2018-03-05 11:16:03 -05:00
Olivier Mangin
99657b09d0
Merge branch 'master' into fix/link_customization 2018-03-05 11:00:55 -05:00
Olivier Mangin
ca53e242c7
Merge pull request #125 from pubs/fix/travis-osx
Fixes Travis failure on installing python3 for OSX
2018-03-05 11:00:04 -05:00
Olivier Mangin
33554635d4 Upgrade python if install fails. 2018-03-02 14:43:10 -05:00
Olivier Mangin
71c2f40657
Merge branch 'master' into fix/link_customization 2018-03-02 13:33:14 -05:00
Fabien C. Y. Benureau
0a0ed06c92
Merge pull request #123 from benureau/fix/common_strings
Fix/common strings

Fix the regression on translating month abbreviations into full month names in bibtex files.
2018-02-27 13:29:34 +09:00
Fabien C. Y. Benureau
3e376e2d8b remove obsolete exception catching 2018-02-27 13:18:59 +09:00
Olivier Mangin
a6d5df4059 Removes link and DOI customization. Fixes #119. 2018-02-21 16:14:38 -05:00
Fabien C. Y. Benureau
596ea81a34 fix dependency to bibtexparser
Under certain circumstances, when installing bibtexparser 1.0.1 release
in develop mode, it can be recognized as bibtexparser 1.0 by the
pkg_resource module, preventing pubs to execute. This is obviously very
bad.
2018-02-21 14:23:52 +09:00
Fabien C. Y. Benureau
adbeb7f2b3 activating common strings by default in parser; fixes #122 2018-02-21 14:06:30 +09:00
Fabien C. Y. Benureau
82aad31e5d test for common_string parsing 2018-02-21 13:59:26 +09:00
Olivier Mangin
0d38c73965
Merge pull request #116 from pubs/feat/unicode_comparison
Fixes unicode comparison
2018-02-20 18:17:29 -05:00
Olivier Mangin
6e39cea473 Adds --strict option to list to force strict unicode comparison. 2018-02-20 18:06:33 -05:00
Olivier Mangin
248bf62317 Fixes unicode for python2 in test_queries. 2018-02-20 18:06:33 -05:00
Olivier Mangin
f3ec9621ee Adds and checks unicode normalization. Fixes #103. 2018-02-20 18:06:33 -05:00
Olivier Mangin
1bcbf65dd8 Implements latex escape in queries. 2018-02-20 18:06:33 -05:00
Olivier Mangin
cff028d345 Minor refactoring of string comparison in query filters. 2018-02-20 18:06:33 -05:00
Olivier Mangin
c87b89bf10 Fix wrong test. 2018-02-20 18:06:33 -05:00
Olivier Mangin
6ca4020627
Merge pull request #118 from pubs/fix/test_on_new_bp
Updates field orders to use 'url' and fixes broken test.
2018-02-20 17:41:12 -05:00
Fabien C. Y. Benureau
d4e1ab8695 bibtexparser>=1.0.1 requirement in setup.py 2018-02-20 10:53:50 +09:00
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'.
2018-02-19 15:32:45 -05:00
Olivier Mangin
cfb0042e37
Merge pull request #117 from pubs/bug/leadingspace
Fix bibtex testcase, closes #25.
2018-02-19 15:31:54 -05:00
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.
2018-02-16 17:53:56 +09:00
Olivier Mangin
d685ec10aa
Merge pull request #114 from pubs/fix/empty_key
Better checks and error message for empty key (Closes #113).
2018-01-26 13:36:14 -05:00
Olivier Mangin
0b1ff7e441 PEP8 cosmetics. 2018-01-25 22:37:11 -05:00
Olivier Mangin
328f2a6d5e Adds more checks and better error message against empty citekeys. 2018-01-25 22:37:11 -05:00
Olivier Mangin
599b124b7c
Merge pull request #112 from pubs/feat/entry_point
Feat/entry point
2018-01-25 17:53:38 -05:00
Olivier Mangin
26f0b4dc04 Adds argcomplete command to pubs_cmd so that is now used as entry-point. 2018-01-25 16:09:30 -05:00
Olivier Mangin
ac536269e3 Removes script since unused with entry_points method 2018-01-23 16:21:38 -05:00
Olivier Mangin
fe03345e48 Moves from scripts to entry_points. This likely breaks autocompletion. 2018-01-23 16:21:38 -05:00
Olivier Mangin
7956e9bcb2 Fixes wrong option for extras_require and cleanup. 2018-01-23 16:19:31 -05:00