add requirements.txt file, mock.

This commit is contained in:
Fabien C. Y. Benureau 2018-06-10 19:20:57 +09:00
parent 1b59aefc08
commit c513870132
No known key found for this signature in database
GPG Key ID: C3FB5E831A249A9A
3 changed files with 11 additions and 12 deletions

View File

@ -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: 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 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. 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. 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 ## Authors
- [Fabien Benureau](http://fabien.benureau.com) - [Fabien Benureau](http://fabien.benureau.com)
- [Olivier Mangin](http://olivier.mangin.com) - [Olivier Mangin](http://olivier.mangin.com)
### Contributors ### Contributors
- [Jonathan Grizou](https://github.com/jgrizou) - [Jonathan Grizou](https://github.com/jgrizou)

6
requirements.txt Normal file
View File

@ -0,0 +1,6 @@
pyyaml
bibtexparser>=1.0
python-dateutil
requests
configobj
beautifulsoup4

View File

@ -26,10 +26,9 @@ setup(
], ],
}, },
install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil', 'requests', install_requires=['pyyaml', 'bibtexparser>=1.0', 'python-dateutil',
'configobj', 'requests', 'configobj', 'beautifulsoup4'],
'beautifulsoup4'], # to be made optional? tests_require=['pyfakefs>=2.7', 'mock'],
tests_require=['pyfakefs>=2.7'],
extras_require={'autocompletion': ['argcomplete'], extras_require={'autocompletion': ['argcomplete'],
}, },