- Update HISTORY.md
- Commit the changes:
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
- Update version number (can also be minor or major)
bumpversion patch
#!/bin/bash | |
# Quick script to disable an internal webcam if an external one is attached, or | |
# enable the internal one if the external one's not attached. | |
# by Shimon Rura, 25 Jan 2018. In the public domain. | |
# To use, run `lsusb` and identify the lines for your internal and external camera devices. | |
# For example, mine are: | |
# internal: |
git add HISTORY.md
git commit -m "Changelog for upcoming release 0.1.1."
bumpversion patch
def format_filename(s): | |
"""Take a string and return a valid filename constructed from the string. | |
Uses a whitelist approach: any characters not present in valid_chars are | |
removed. Also spaces are replaced with underscores. | |
Note: this method may produce invalid filenames such as ``, `.` or `..` | |
When I use this method I prepend a date string like '2009_01_15_19_46_32_' | |
and append a file extension like '.txt', so I avoid the potential of using | |
an invalid filename. | |