First need to create accounts with PyPI and TestPyPI.
Then:
python setup.py sdist bdist_wheel
twine check dist/*
| #!/usr/bin/env bash | |
| # | |
| # Make a latexdiff of the current manuscript. | |
| # | |
| # NOTES: | |
| # - Must be run from a directory inside the git repo. | |
| # - Produces a file "diff.pdf" containing the diff. | |
| # - Removes blue highlighting in MNRAS links | |
| # (which conflicts with blue highlighting from diff). |
| """Euler and leapfrog stability. | |
| Stability for both is guaranteed by | |
| dt < - 2 / lambda, | |
| where lambda is from the ODE | |
| dv/dt = lambda * v. | |
| """ |
| #!/usr/bin/env python | |
| """Generate bibtex from citations in tex using a master bibtex. | |
| It uses the following regex to find citations in the tex file: | |
| regex = re.compile(r'\\|no|cite[a-z]*\*?{(.*?)}') | |
| This regex matches citations like \cite{}, \citet{}, \citep{}, | |
| \citeauthor{}, \citet*{}, and so on, and returns the captured citekey. |
| #!/usr/bin/env python3 | |
| import argparse | |
| from pathlib import Path | |
| def main(): | |
| parser = argparse.ArgumentParser(description='Last snap') | |
| parser.add_argument('dirs', type=str, nargs='+', help='Input dirs for snaps') |
| #!/bin/bash | |
| #SBATCH --nodes=1 --ntasks=1 | |
| #SBATCH --cpus-per-task=32 | |
| #SBATCH --job-name=twhya | |
| #SBATCH --output=twhya01.swmout | |
| #SBATCH --mail-type=BEGIN | |
| #SBATCH --mail-type=FAIL | |
| #SBATCH --mail-type=END | |
| #SBATCH [email protected] | |
| #SBATCH --time=7-00:00:00 |
| javascript:(function() { window.location=window.location.toString().replace(/(https*:\/\/)(.*?)\/(.*)/, "$1$2.ezproxy.lib.monash.edu.au/$3"); })() |
| #!/usr/bin/env python | |
| """ | |
| Fix file links in bibtex file used with BibDesk using bibtexparser. | |
| To use, run the script then open the resulting bibtex file in BibDesk | |
| and save it. This should fix all file links. | |
| Daniel Mentiplay, 2019. | |
| """ |
| # | |
| # Make notebook, html, slides from markdown | |
| .PHONY: | |
| help: | |
| @echo "Usage:" | |
| @echo " make <target>" | |
| @echo | |
| @echo " notebook Make .ipynb notebook" | |
| @echo " html Make .html notebook" |