diff --git a/CHANGELOG.md b/CHANGELOG.md index f75b904..5ba71dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,13 @@ # CHANGELOG -## NEXT RELEASE +## v4.5.0 (2022-02-22) * Switches from the `threading` package to the `concurrent.futures` package allowing us to return values from each individual thread (in this case, the names of failed git assets) * Fixes a long-standing bug where git repos that failed to clone would remain in the archive on Windows. This meant that recloning was impossible due to the repo existing and pulling was not possible because the repo wasn't yet fully initialized. The tool now has a proper cleanup step after everything has run that is compatible with both Unix and Windows environments (closes #38) * Adds `--log_level` to allow the user to specify a custom log level * Small adjustment to `include` and `exclude` help verbage used to be more clear they are optional filters -## v4.4.0 (2021-02-18) +## v4.4.0 (2022-02-18) * Adds an `--include` and `--exclude` CLI flag that accepts a comma-separated list of repo names to either include or exclude. If neither are passed, no filtering will occur (closes #43) diff --git a/github_archive/constants.py b/github_archive/constants.py index 9552b6a..060f0fb 100644 --- a/github_archive/constants.py +++ b/github_archive/constants.py @@ -1,5 +1,6 @@ import os -from typing import Literal + +from typing_extensions import Literal DEFAULT_BASE_URL = 'https://api.github.com' DEFAULT_LOCATION = os.path.expanduser(os.path.join('~', 'github-archive')) diff --git a/setup.py b/setup.py index 3e3a375..414be82 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,7 @@ REQUIREMENTS = [ 'PyGithub == 1.*', + 'typing_extensions', # TODO: Remove once we drop support for Python 3.7 (used for Literal type hint) 'woodchips == 0.2.*', ] @@ -20,7 +21,7 @@ setuptools.setup( name='github-archive', - version='4.4.0', + version='4.5.0', description=( 'A powerful tool to concurrently clone or pull user and org repos and gists to create a GitHub archive.' ),