[checksum.py] added Python 3 dependency to documentation

pull/405/head
Chris Simpkins 2018-02-24 21:31:29 +07:00
parent 3d99365c03
commit 5d67be0ca8
1 changed files with 6 additions and 4 deletions

@ -1,7 +1,7 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------------------------------ #----------------------------------------------------------------------------------------------------------
# checksum.py # checksum.py
# A SHA1 hash checksum list generator for fonts and fontTools # A SHA1 hash checksum list generator for fonts and fontTools
# XML dumps of font OpenType table data + checksum testing # XML dumps of font OpenType table data + checksum testing
@ -10,21 +10,23 @@
# Copyright 2018 Christopher Simpkins # Copyright 2018 Christopher Simpkins
# MIT License # MIT License
# #
# Dependencies: Python fontTools library # Dependencies:
# - Python fontTools library
# - Python 3 interpreter
# #
# Usage: checksum.py (options) [file path 1]...[file path n] # Usage: checksum.py (options) [file path 1]...[file path n]
# #
# Options: # Options:
# -h, --help Help # -h, --help Help
# -t, --ttx Calculate SHA1 hash values from ttx dump of XML (default = font binary) # -t, --ttx Calculate SHA1 hash values from ttx dump of XML (default = font binary)
# -s, --stdout Stream to standard output stream (default = write to disk as 'checksum.txt') # -s, --stdout Stream to standard output stream (default = write to working dir as 'checksum.txt')
# -c, --check Test SHA1 checksum values against a valid checksum file # -c, --check Test SHA1 checksum values against a valid checksum file
# #
# Options, --ttx only: # Options, --ttx only:
# -e, --exclude Excluded OpenType table (may be used more than once, mutually exclusive with -i) # -e, --exclude Excluded OpenType table (may be used more than once, mutually exclusive with -i)
# -i, --include Included OpenType table (may be used more than once, mutually exclusive with -e) # -i, --include Included OpenType table (may be used more than once, mutually exclusive with -e)
# -n, --noclean Do not discard .ttx files that are used to calculate SHA1 hashes # -n, --noclean Do not discard .ttx files that are used to calculate SHA1 hashes
#------------------------------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------------------------------
import argparse import argparse
import hashlib import hashlib