Amlesh Sivanantham (zamlz)
d4f79f6ecb
Fixed syntax issue with plugin code
2018-12-27 18:39:18 -08:00
Amlesh Sivanantham (zamlz)
f12c03f13a
Added the git listener functions for the events that were prewritten
2018-12-27 18:29:45 -08:00
Amlesh Sivanantham (zamlz)
2718a2e23a
Implemented git shell
2018-12-24 15:18:44 -08:00
Olivier Mangin
a6c7376b51
Version 0.8.2
2018-12-04 20:42:20 -08:00
Olivier Mangin
da70d3c381
Handles listing papers with documents without extension.
2018-09-26 22:44:48 -07:00
Fabien C. Y. Benureau
49e6c7d9c2
update tests
2018-08-28 17:37:35 +09:00
Fabien C. Y. Benureau
94e6dccac9
doc extension visible in pubs list
2018-08-28 17:20:29 +09:00
Fabien C. Y. Benureau
8fe2414040
version 0.8.1
2018-08-28 10:42:54 +09:00
Fabien C. Y. Benureau
51fa0de520
remove error, improve description
2018-08-27 12:05:57 +09:00
Fabien C. Y. Benureau
a58f1b1d5e
hotfix for #164
2018-08-27 11:52:52 +09:00
Fabien C. Y. Benureau
efb91b1ff4
hotfix for #165
2018-08-27 11:47:25 +09:00
Olivier Mangin
7d8e87a484
Merge branch 'master' into pre0.8.0
2018-08-20 15:25:24 +02:00
Olivier Mangin
42d75d1230
Merge branch 'master' into fix/doc_add
2018-08-20 13:25:40 +02:00
Olivier Mangin
c2e52ec4c4
Makes 'copy' the default for the add_doc
configuration option.
2018-08-20 12:18:23 +02:00
Olivier Mangin
668d30ffbf
Allows move for import on explicit option.
...
- uses `copy` as a default (hence no need for the option),
- does not use `doc_add` config for import.
2018-08-20 12:14:25 +02:00
Olivier Mangin
c4bf5eef87
Merge branch 'master' into jma/arxiv
2018-08-14 13:23:44 +02:00
Fabien C. Y. Benureau
8e30ac7400
refix test + switch apis to https
2018-08-14 17:35:59 +09:00
Fabien C. Y. Benureau
30a7094eaf
add arXiv tests
2018-08-14 17:05:11 +09:00
Olivier Mangin
7dae35e722
Adds the statistics command. ( Fixes #8 )
2018-08-09 23:48:29 +02:00
Olivier Mangin
8eef7bd77b
Remove code duplication for command arguments.
2018-08-09 19:19:29 +02:00
Olivier Mangin
a8de97c327
Fixes #144 : behavior of add_copy mode during add.
...
- correctly handles add_copy mode and configuration,
- add option top force 'copy' mode (since the default had been changed
in between from 'copy' to 'move' this is now needed),
- fixes assumption in one test that the default is 'copy' (in other
words the test was broken and ensuring that the functionality was broken
too.),
- do not try to delete the source when it is an URL.
2018-08-09 19:00:01 +02:00
Fabien C. Y. Benureau
bf1b4cd9d7
mock mode for test_apis
...
The mock system relies on the PUBS_TESTS_MODE environmental variable.
See the `tests/mock_requests.py` code for details.
By defaults, fast mock tests are used with data pre-fetched from real
calls.
2018-08-07 11:30:13 +09:00
Fabien C. Y. Benureau
be80e75cbb
better error message when parsing of bibtex fails
...
Plus, slight refactoring: remove `databroker.verify()` method
2018-08-06 17:45:30 +09:00
Fabien C. Y. Benureau
938a53b8f5
python setup.py test + no connection case
...
- Make `python setup.py test work`. remove test/requirements.txt.
fix #154
- Detect if no connection is present, and skip tests if not.
stop-gap measure for issue #147
2018-08-06 11:20:50 +09:00
Fabien C. Y. Benureau
814ce1bde2
remove timespec argument from isoformat (introduced in 3.6)
2018-08-05 22:19:56 +09:00
Fabien C. Y. Benureau
be253f9084
handling of arxiv errors
2018-08-05 22:08:00 +09:00
J. Antognini
d6ab091e5c
Only allow one of doi, arxiv, or isbn to pubs_add
...
Also includes some minor refactoring.
2018-08-05 00:00:20 -07:00
Olivier Mangin
6e72b0e2f7
Merge branch 'master' into jma/arxiv
2018-08-02 12:01:10 +02:00
Olivier Mangin
01b0358f2c
Version 0.8.0.
2018-08-01 16:44:59 +02:00
Olivier Mangin
ea2bc7f732
Merge branch 'master' into fix87
2018-08-01 15:02:01 +02:00
Olivier Mangin
13f21a3d28
Minor grammar in warning.
2018-08-01 14:43:32 +02:00
Olivier Mangin
3d76501a5c
Merge branch 'master' into fix/pyfakefs37
2018-08-01 14:36:24 +02:00
Fabien C. Y. Benureau
cf97f681ef
cleanup commented code, better reset_fs()
2018-08-01 14:37:23 +09:00
Fabien C. Y. Benureau
c76c7607f9
Upgrade pyfakefs to current version
...
Fix #148 . Also did some cleanup on the tests.
2018-08-01 14:22:18 +09:00
Olivier Mangin
5a47150aad
Adds option to ignore malformed bibtex files or entry during import.
2018-07-30 18:24:56 +02:00
Olivier Mangin
60650b874a
Addresses minor comments (error message and better test).
2018-07-30 17:46:04 +02:00
J. Antognini
ccdbe72eb7
Address omangin's code review.
...
* This fixes the logic in the `pubs add` command so that an arxiv ID doesn't
overwrite a DOI. This also changes the logic so that if an invalid DOI, ISBN,
or arXiv ID is provided the program will raise an error.
* The code now uses the bibtexparser package to generate the bibtex file for
arxiv papers.
* A dedicated exception is added for references that can't be found.
2018-07-28 22:37:14 -07:00
Olivier Mangin
ea711b6b42
[ Fix #87 ] Include citekey in message on bibtex decoding error from repository.
...
Catches decoding error at databroker level to include citekey in message.
Could be improved by a better exception class for BibDecodingError.
2018-07-25 22:52:27 +02:00
Olivier Mangin
8a7d143261
Improves behaviors related to bibtex decoding error.
...
- from editor input in add and edit commands,
- from files in import command.
2018-07-25 22:20:14 +02:00
Olivier Mangin
6957ae3cbb
Merge branch 'master' into feat/dialogedit
2018-07-25 17:24:06 +02:00
Olivier Mangin
fbd29d27a4
Merge pull request #141 from pubs/feat/editor_missing
...
error message when editor is missing
2018-07-25 17:23:06 +02:00
Olivier Mangin
4dc69bcfc2
Use vi as a (saner) default. Fixes #140 .
2018-07-24 11:01:06 +02:00
Joe Antognini
30f5f86c9d
Don't immediately exit on malformed arxiv id.
...
To be consistent with errors in other uses of `pubs add`, we only exit when the returned bibentry is
None.
2018-07-23 23:37:12 -07:00
Joe Antognini
35f209a98a
Remove unnecessary function from earlier commit.
2018-07-23 23:33:05 -07:00
Joe Antognini
f3c83668f9
Allow bibtex to be added from arxiv id.
...
This allows the user to add a reference via an arXiv ID similarly to how a reference can be added
from a DOI or ISBN. If the arXiv ID has a DOI associated with it (according to the arXiv server),
the DOI will be used. If it does not (perhaps the paper is unpublished), then a bibtex entry will
automatically be generated from the reference's metadata.
Note that a potential issue with this addition is that if a paper is added before it is published
(i.e., there is no DOI associated with it), and the paper is later published, the updated
information will have to be manually added.
2018-07-23 18:23:36 -06:00
Fabien C. Y. Benureau
4b1717b7fd
dialog after editing paper
2018-06-10 19:09:49 +09:00
ksunden
e177b43d14
Remove unused imports, update strings
2018-05-20 20:17:45 -05:00
Fabien C. Y. Benureau
6cd74a9966
error message when editor is missing
...
simplified a bit the ui code, to remove unecessary out-of-class functions
(needed anyway because of ui.error calls).
2018-05-17 09:22:31 +09:00
ksunden
54a056c277
Change error to warning
2018-05-14 18:38:43 -05:00
Kyle Sunden
7c82a8518b
remove extraneous print
2018-05-14 18:03:39 -05:00