Manuscript bot for automated scientific publishing
Project description
The manuscript bot for automated scholarly publishing
The Manubot Python package prepares scholarly manuscripts for Pandoc consumption. It automates and scripts several aspects of manuscript creation, including fetching bibliographic metadata for citations.
This program is designed to be used with clones of Manubot Rootstock, which perform Pandoc conversion and continuous deployment. See the Manubot Rootstock usage guide for more information.
Usage
Installing the python package creates the manubot
command line program.
This program is the primary interface to using Manubot.
There are two required arguments: --content-directory
and --output-directory
, which specify the respective paths to the content and output directories.
The content directory stores the manuscript source files.
Files generated by Manubot are saved to the output directory.
One common setup is to create a directory for a manuscript that contains both the content
and output
directory.
Under this setup, you can run the Manubot using:
manubot \
--content-directory=content \
--output-directory=output
See manubot --help
for documentation of all command line arguments.
Installation
Install the version specified by a git commit hash using:
COMMIT=33e512d21218263423de5f0d127aac4f8635468f
pip install git+https://github.com/greenelab/manubot@$COMMIT
Use the --upgrade
argument to reinstall manubot
with a different commit hash.
Development
Create a development environment using:
conda create --name=manubot-dev python=3.6 jinja2 pandas pytest
conda activate manubot-dev # assumes conda >= 4.4
pip install --editable .
Inside this environment, use pytest
to run the test suite.
You can also use the manubot
CLI to build manuscripts.
For example:
manubot \
--content-directory=tests/manuscripts/example/content \
--output-directory=tests/manuscripts/example/output \
--log-level=DEBUG
Release instructions
This section is only relevant for project maintainers.
Travis CI deployments are used to upload releases to PyPI.
To create a new release, bump the __version__
in manubot/__init__.py
.
Then run the following commands:
TAG=v`python setup.py --version`
git add manubot/__init__.py
git commit --message="Upgrade to $TAG"
git push
git tag --annotate $TAG --message="Upgrade to $TAG"
git push --tags
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file manubot-0.1.0.tar.gz
.
File metadata
- Download URL: manubot-0.1.0.tar.gz
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83065ce6b4c302506ed092d7c50f2f1f3f57313a95eda21ebc1d52cbdf1c1101 |
|
MD5 | d8e571d49b0f1b0a847b0b672a55a4a3 |
|
BLAKE2b-256 | 6b9ee9f158e25a827f844c61b624050db1e6a1ee70c90b728efdd3e75c510559 |