From c513870132999bf1a5ffdeb916ba9b4e6636d8ba Mon Sep 17 00:00:00 2001 From: "Fabien C. Y. Benureau" Date: Sun, 10 Jun 2018 19:20:57 +0900 Subject: [PATCH] add requirements.txt file, mock. --- readme.md | 10 ++-------- requirements.txt | 6 ++++++ setup.py | 7 +++---- 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 requirements.txt diff --git a/readme.md b/readme.md index 449aaa0..1129229 100644 --- a/readme.md +++ b/readme.md @@ -64,7 +64,7 @@ If you use latex, you can automatize references, by running `pubs export > refer This ensures that your reference file is always up-to-date; you can cite a paper in your manuscript a soon as you add it in pubs. This means that if you have, for instance, a doi on a webpage, you only need to do: pubs add -D 10.1007/s00422-012-0514-6 - + and then add `\cite{Loeb_2012}` in your manuscript. After exporting the bibliography, the citation will correctly appear in your compiled pdf. @@ -112,18 +112,12 @@ For *zsh* completion, the global activation is not supported but bash completion You can access the self-documented configuration by using `pubs conf`, and all the commands' help is available with the `--help` option. Did not find an answer to your question? Drop us an issue. We may not answer right away (science comes first!) but we'll eventually look into it. -## Requirements - -- python >= 2.7 or >= 3.3 -- [bibtexparser](https://github.com/sciunto-org/python-bibtexparser) -- [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup) -- [argcomplete](https://argcomplete.readthedocs.io) (optional, for autocompletion) - ## Authors - [Fabien Benureau](http://fabien.benureau.com) - [Olivier Mangin](http://olivier.mangin.com) + ### Contributors - [Jonathan Grizou](https://github.com/jgrizou) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4e10580 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +pyyaml +bibtexparser>=1.0 +python-dateutil +requests +configobj +beautifulsoup4 diff --git a/setup.py b/setup.py index d9ff787..9e99694 100644 --- a/setup.py +++ b/setup.py @@ -26,10 +26,9 @@ setup( ], }, - install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'requests', - 'configobj', - 'beautifulsoup4'], # to be made optional? - tests_require=['pyfakefs>=2.7'], + install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', + 'requests', 'configobj', 'beautifulsoup4'], + tests_require=['pyfakefs>=2.7', 'mock'], extras_require={'autocompletion': ['argcomplete'], },