A package for authoring and building PreTeXt documents.
Project description
PreTeXt.py
A package for authoring and building PreTeXt documents.
Documentation for end-users is available at https://pretextbook.github.io/pretext-cli/.
Documentation for developers is available below.
Development
From the "Clone or Download" button on GitHub, copy the REPO_URL
into the below command to clone the project.
git clone [REPO_URL]
cd pretext.py
Install pipenv
to manage your environment:
python -m pip install --user pipenv # or python3 if necessary
Then all dependencies can be installed as a one-liner:
pipenv install --three
Then, use pipenv run [CMD]
to run individual scripts, e.g.:
$ pipenv run pretext new "My Great Book"
Generating new PreTeXt project in `my-great-book`.
Or use pipenv shell
to enter the virtual environment directly.
$ pipenv shell
Launching subshell in virtual environment…
$ pretext new "My Great Book"
Generating new PreTeXt project in `my-great-book`.
To add dependencies for the package, update setup.py
. then run pipenv update
.
To add dependencies for the development environment, use pipenv install [package]
.
Packaging
See https://packaging.python.org/tutorials/packaging-projects/.
python setup.py sdist bdist_wheel
python -m twine upload --repository testpypi --no-deps dist/* # to test
python -m twine upload dist/* # for real
Versioning
See VERSIONING.md.
PreTeXt XSL
Right now, we're mirroring resources from
https://github.com/rbeezer/mathbook/ using the commit
found in pretext/static/CORE_COMMIT
.
(TODO: pull/build these without mirroring)
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
Built Distribution
Hashes for pretextbook-0.1rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e5e637cb9c4a2fd8327d364c5ff6d0b9a9c96362331e6272ac113dd6e338a7c |
|
MD5 | b4155101d5788555834451fa3e43c7f9 |
|
BLAKE2b-256 | cd7f61ce9316844b1c35ba24b3e09c0f0e4a438acb859802240a934c3130171f |