diff --git a/CHANGELOG.md b/CHANGELOG.md index 50514f7..25f3a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v6.1.2 (2023-08-27) + +- Expand paths for user-supplied `--location` strings. This now allows for spaces in paths and proper expansion of home directories (eg: `~`) + ## v6.1.1 (2023-08-26) - Fixes PyGithub pinned version to ensure `Auth` is available diff --git a/github_archive/_version.py b/github_archive/_version.py index 7f8a859..0237e6d 100644 --- a/github_archive/_version.py +++ b/github_archive/_version.py @@ -1 +1 @@ -__version__ = "6.1.1" +__version__ = "6.1.2" diff --git a/github_archive/archive.py b/github_archive/archive.py index c8b8674..7b021a5 100644 --- a/github_archive/archive.py +++ b/github_archive/archive.py @@ -81,7 +81,7 @@ def __init__( self.include = include.lower().split(',') if include else '' self.exclude = exclude.lower().split(',') if exclude else '' self.forks = forks - self.location = location + self.location = os.path.expanduser(location) self.use_https = use_https self.timeout = timeout self.threads = threads diff --git a/github_archive/constants.py b/github_archive/constants.py index 514dc29..0b32806 100644 --- a/github_archive/constants.py +++ b/github_archive/constants.py @@ -3,7 +3,7 @@ DEFAULT_BASE_URL = 'https://api.github.com' -DEFAULT_LOCATION = os.path.expanduser(os.path.join('~', 'github-archive')) +DEFAULT_LOCATION = os.path.join('~', 'github-archive') DEFAULT_NUM_THREADS = 10 DEFAULT_TIMEOUT = 300 diff --git a/~/test again/repos/justintime50/.github b/~/test again/repos/justintime50/.github new file mode 160000 index 0000000..754dbc8 --- /dev/null +++ b/~/test again/repos/justintime50/.github @@ -0,0 +1 @@ +Subproject commit 754dbc86061f458ebbfc49231e02b7c5160912ba diff --git a/~/test again/repos/justintime50/Justintime50 b/~/test again/repos/justintime50/Justintime50 new file mode 160000 index 0000000..b471b12 --- /dev/null +++ b/~/test again/repos/justintime50/Justintime50 @@ -0,0 +1 @@ +Subproject commit b471b129991b4a4081e009568357a83311bcb341 diff --git a/~/test again/repos/justintime50/SwiftSystemSounds b/~/test again/repos/justintime50/SwiftSystemSounds new file mode 160000 index 0000000..14aeb34 --- /dev/null +++ b/~/test again/repos/justintime50/SwiftSystemSounds @@ -0,0 +1 @@ +Subproject commit 14aeb3434303c4882f7349912789f929de043493 diff --git a/~/test again/repos/justintime50/adventofcode b/~/test again/repos/justintime50/adventofcode new file mode 160000 index 0000000..43b61ec --- /dev/null +++ b/~/test again/repos/justintime50/adventofcode @@ -0,0 +1 @@ +Subproject commit 43b61ec81efa383d70fcf46c44b3e4d930d7c650 diff --git a/~/test again/repos/justintime50/alchemist b/~/test again/repos/justintime50/alchemist new file mode 160000 index 0000000..1173463 --- /dev/null +++ b/~/test again/repos/justintime50/alchemist @@ -0,0 +1 @@ +Subproject commit 11734631d489f48eed1ccd0d7e4eaea97aa5649c diff --git a/~/test again/repos/justintime50/algorithms b/~/test again/repos/justintime50/algorithms new file mode 160000 index 0000000..c5c72cf --- /dev/null +++ b/~/test again/repos/justintime50/algorithms @@ -0,0 +1 @@ +Subproject commit c5c72cf555d6bba7a8871977f0de18a0b8fc06e2 diff --git a/~/test again/repos/justintime50/apache-php-docker b/~/test again/repos/justintime50/apache-php-docker new file mode 160000 index 0000000..2db2ff1 --- /dev/null +++ b/~/test again/repos/justintime50/apache-php-docker @@ -0,0 +1 @@ +Subproject commit 2db2ff1729d5f2b2e53aba41218f8733ac220f30 diff --git a/~/test again/repos/justintime50/assets b/~/test again/repos/justintime50/assets new file mode 160000 index 0000000..8e2ca94 --- /dev/null +++ b/~/test again/repos/justintime50/assets @@ -0,0 +1 @@ +Subproject commit 8e2ca94742603cbe874e13b111568fef5efc050f diff --git a/~/test again/repos/justintime50/build-project b/~/test again/repos/justintime50/build-project new file mode 160000 index 0000000..37780c0 --- /dev/null +++ b/~/test again/repos/justintime50/build-project @@ -0,0 +1 @@ +Subproject commit 37780c0e21c4970275128ed824adcb8a58d135ef diff --git a/~/test again/repos/justintime50/burn-notice b/~/test again/repos/justintime50/burn-notice new file mode 160000 index 0000000..2d5f2ca --- /dev/null +++ b/~/test again/repos/justintime50/burn-notice @@ -0,0 +1 @@ +Subproject commit 2d5f2ca3af69cee2de17bbf01f2ffdd9a8a8141d diff --git a/~/test again/repos/justintime50/clienv b/~/test again/repos/justintime50/clienv new file mode 160000 index 0000000..fefdbd3 --- /dev/null +++ b/~/test again/repos/justintime50/clienv @@ -0,0 +1 @@ +Subproject commit fefdbd32e39b21dee882c7cbe33e1fc9cf7110e0 diff --git a/~/test again/repos/justintime50/dad b/~/test again/repos/justintime50/dad new file mode 160000 index 0000000..b99211c --- /dev/null +++ b/~/test again/repos/justintime50/dad @@ -0,0 +1 @@ +Subproject commit b99211c1fe64efc1efff7e8e628a8cf99286f473 diff --git a/~/test again/repos/justintime50/dad-node b/~/test again/repos/justintime50/dad-node new file mode 160000 index 0000000..a6d8d8c --- /dev/null +++ b/~/test again/repos/justintime50/dad-node @@ -0,0 +1 @@ +Subproject commit a6d8d8cf89c8356746a5c5dd449c9c3f45886b53 diff --git a/~/test again/repos/justintime50/dad-python b/~/test again/repos/justintime50/dad-python new file mode 160000 index 0000000..aaa5964 --- /dev/null +++ b/~/test again/repos/justintime50/dad-python @@ -0,0 +1 @@ +Subproject commit aaa596403eb844f5c37bbbd3a8edd648464823b0 diff --git a/~/test again/repos/justintime50/diff-tool b/~/test again/repos/justintime50/diff-tool new file mode 160000 index 0000000..69c868b --- /dev/null +++ b/~/test again/repos/justintime50/diff-tool @@ -0,0 +1 @@ +Subproject commit 69c868bd8cdfdbdc4c09cdf873f486eb1dfb05f1 diff --git a/~/test again/repos/justintime50/dotfiles b/~/test again/repos/justintime50/dotfiles new file mode 160000 index 0000000..145bfc0 --- /dev/null +++ b/~/test again/repos/justintime50/dotfiles @@ -0,0 +1 @@ +Subproject commit 145bfc0dedd401c70a34e03130298c70b1bfab46 diff --git a/~/test again/repos/justintime50/dots b/~/test again/repos/justintime50/dots new file mode 160000 index 0000000..b58fe2d --- /dev/null +++ b/~/test again/repos/justintime50/dots @@ -0,0 +1 @@ +Subproject commit b58fe2dfb927c54efa01abdcb2e7e2f60d348870 diff --git a/~/test again/repos/justintime50/easypost-bond b/~/test again/repos/justintime50/easypost-bond new file mode 160000 index 0000000..488947d --- /dev/null +++ b/~/test again/repos/justintime50/easypost-bond @@ -0,0 +1 @@ +Subproject commit 488947d4046c56dddcddddfd2f87333e80296957 diff --git a/~/test again/repos/justintime50/easypost-cli b/~/test again/repos/justintime50/easypost-cli new file mode 160000 index 0000000..1bb74e5 --- /dev/null +++ b/~/test again/repos/justintime50/easypost-cli @@ -0,0 +1 @@ +Subproject commit 1bb74e5db8cb135fa0cf48ecc8580fbd41ccef5d diff --git a/~/test again/repos/justintime50/easypost-tools b/~/test again/repos/justintime50/easypost-tools new file mode 160000 index 0000000..6d4ff7e --- /dev/null +++ b/~/test again/repos/justintime50/easypost-tools @@ -0,0 +1 @@ +Subproject commit 6d4ff7e2e9f3732789b395c2c67b8bac5de1902f diff --git a/~/test again/repos/justintime50/easypost-tools-ui b/~/test again/repos/justintime50/easypost-tools-ui new file mode 160000 index 0000000..8c5932f --- /dev/null +++ b/~/test again/repos/justintime50/easypost-tools-ui @@ -0,0 +1 @@ +Subproject commit 8c5932ff49aaa12851df515c5f787c3abd38ab43 diff --git a/~/test again/repos/justintime50/forks-sync b/~/test again/repos/justintime50/forks-sync new file mode 160000 index 0000000..fdfd49b --- /dev/null +++ b/~/test again/repos/justintime50/forks-sync @@ -0,0 +1 @@ +Subproject commit fdfd49bd3a6b86bc94fd3e799d04b704e2feeabb diff --git a/~/test again/repos/justintime50/github-archive b/~/test again/repos/justintime50/github-archive new file mode 160000 index 0000000..b6fbd2e --- /dev/null +++ b/~/test again/repos/justintime50/github-archive @@ -0,0 +1 @@ +Subproject commit b6fbd2e1951ccccc0da557bf2698720595ab91e4 diff --git a/~/test again/repos/justintime50/github-dark-vscode-emacs-theme b/~/test again/repos/justintime50/github-dark-vscode-emacs-theme new file mode 160000 index 0000000..785d219 --- /dev/null +++ b/~/test again/repos/justintime50/github-dark-vscode-emacs-theme @@ -0,0 +1 @@ +Subproject commit 785d2192d7cd30fb7d9c6cd660133a4002f598cc diff --git a/~/test again/repos/justintime50/glass b/~/test again/repos/justintime50/glass new file mode 160000 index 0000000..08404d0 --- /dev/null +++ b/~/test again/repos/justintime50/glass @@ -0,0 +1 @@ +Subproject commit 08404d0540e299a3b0b6b9ba53621290cfe09850 diff --git a/~/test again/repos/justintime50/golang-template b/~/test again/repos/justintime50/golang-template new file mode 160000 index 0000000..0c21735 --- /dev/null +++ b/~/test again/repos/justintime50/golang-template @@ -0,0 +1 @@ +Subproject commit 0c21735f0fe7e9b8de8a065e94d59c169121b501 diff --git a/~/test again/repos/justintime50/harvey b/~/test again/repos/justintime50/harvey new file mode 160000 index 0000000..cc93ae1 --- /dev/null +++ b/~/test again/repos/justintime50/harvey @@ -0,0 +1 @@ +Subproject commit cc93ae1db39c9ade392311658fb4b4a9ea316407 diff --git a/~/test again/repos/justintime50/harvey-ui b/~/test again/repos/justintime50/harvey-ui new file mode 160000 index 0000000..30e0d04 --- /dev/null +++ b/~/test again/repos/justintime50/harvey-ui @@ -0,0 +1 @@ +Subproject commit 30e0d049685608c8b5b9d39ce72f48a003289c68 diff --git a/~/test again/repos/justintime50/homebrew-formulas b/~/test again/repos/justintime50/homebrew-formulas new file mode 160000 index 0000000..93edab5 --- /dev/null +++ b/~/test again/repos/justintime50/homebrew-formulas @@ -0,0 +1 @@ +Subproject commit 93edab5819ab2a0121d116787b0a1875e76531cb diff --git a/~/test again/repos/justintime50/homebrew-releaser b/~/test again/repos/justintime50/homebrew-releaser new file mode 160000 index 0000000..701a220 --- /dev/null +++ b/~/test again/repos/justintime50/homebrew-releaser @@ -0,0 +1 @@ +Subproject commit 701a22093e22eddbb74c74559dd6fcca109dbee3 diff --git a/~/test again/repos/justintime50/interviews b/~/test again/repos/justintime50/interviews new file mode 160000 index 0000000..82133e5 --- /dev/null +++ b/~/test again/repos/justintime50/interviews @@ -0,0 +1 @@ +Subproject commit 82133e537b28ce071330e2a234327ee99fa1db28 diff --git a/~/test again/repos/justintime50/labelary b/~/test again/repos/justintime50/labelary new file mode 160000 index 0000000..d1a816a --- /dev/null +++ b/~/test again/repos/justintime50/labelary @@ -0,0 +1 @@ +Subproject commit d1a816a13fa97801af7ec3c9977339a0257a1258 diff --git a/~/test again/repos/justintime50/laravel-template b/~/test again/repos/justintime50/laravel-template new file mode 160000 index 0000000..11109fc --- /dev/null +++ b/~/test again/repos/justintime50/laravel-template @@ -0,0 +1 @@ +Subproject commit 11109fc99dbd9ac668e35896b9afd201e8ca1fa1 diff --git a/~/test again/repos/justintime50/linguist-breakdown b/~/test again/repos/justintime50/linguist-breakdown new file mode 160000 index 0000000..91faf0a --- /dev/null +++ b/~/test again/repos/justintime50/linguist-breakdown @@ -0,0 +1 @@ +Subproject commit 91faf0ab8dde6298c2a02a57b166ec920955a5ec diff --git a/~/test again/repos/justintime50/mockcmd b/~/test again/repos/justintime50/mockcmd new file mode 160000 index 0000000..b2707ed --- /dev/null +++ b/~/test again/repos/justintime50/mockcmd @@ -0,0 +1 @@ +Subproject commit b2707ed48e9559b4e10d02840d88107f7f98694a diff --git a/~/test again/repos/justintime50/myelpa b/~/test again/repos/justintime50/myelpa new file mode 160000 index 0000000..d69a23a --- /dev/null +++ b/~/test again/repos/justintime50/myelpa @@ -0,0 +1 @@ +Subproject commit d69a23a7292d43005e0f945be4b9663ebbb030c5 diff --git a/~/test again/repos/justintime50/nginx-php-docker b/~/test again/repos/justintime50/nginx-php-docker new file mode 160000 index 0000000..add0142 --- /dev/null +++ b/~/test again/repos/justintime50/nginx-php-docker @@ -0,0 +1 @@ +Subproject commit add0142e4aa00d369a48074c6490f0825ef36ec2 diff --git a/~/test again/repos/justintime50/onepass b/~/test again/repos/justintime50/onepass new file mode 160000 index 0000000..be8e203 --- /dev/null +++ b/~/test again/repos/justintime50/onepass @@ -0,0 +1 @@ +Subproject commit be8e203de20317f012ac8193095ca660763e5847 diff --git a/~/test again/repos/justintime50/os-scripting b/~/test again/repos/justintime50/os-scripting new file mode 160000 index 0000000..b0fb632 --- /dev/null +++ b/~/test again/repos/justintime50/os-scripting @@ -0,0 +1 @@ +Subproject commit b0fb632b55cb4006c01de60fb8c1618723e8c049 diff --git a/~/test again/repos/justintime50/pineapple b/~/test again/repos/justintime50/pineapple new file mode 160000 index 0000000..3ff469f --- /dev/null +++ b/~/test again/repos/justintime50/pineapple @@ -0,0 +1 @@ +Subproject commit 3ff469fa118d88fb54e788b3a264e9254bc81b0b diff --git a/~/test again/repos/justintime50/pip-tree b/~/test again/repos/justintime50/pip-tree new file mode 160000 index 0000000..8d1712e --- /dev/null +++ b/~/test again/repos/justintime50/pip-tree @@ -0,0 +1 @@ +Subproject commit 8d1712e36af1fb65af2e1a4500dad5a86cb7aaef diff --git a/~/test again/repos/justintime50/playground b/~/test again/repos/justintime50/playground new file mode 160000 index 0000000..11611f4 --- /dev/null +++ b/~/test again/repos/justintime50/playground @@ -0,0 +1 @@ +Subproject commit 11611f479f31dce4ba6a0f264900ae13e4cc8bf2 diff --git a/~/test again/repos/justintime50/pretty-tables b/~/test again/repos/justintime50/pretty-tables new file mode 160000 index 0000000..71a066c --- /dev/null +++ b/~/test again/repos/justintime50/pretty-tables @@ -0,0 +1 @@ +Subproject commit 71a066c47944de9e0643fee5f149272997fbbfad diff --git a/~/test again/repos/justintime50/proxlist b/~/test again/repos/justintime50/proxlist new file mode 160000 index 0000000..df83e9a --- /dev/null +++ b/~/test again/repos/justintime50/proxlist @@ -0,0 +1 @@ +Subproject commit df83e9a32cd02f971e31f472f8300fec8be5e004 diff --git a/~/test again/repos/justintime50/pullbug b/~/test again/repos/justintime50/pullbug new file mode 160000 index 0000000..60ee491 --- /dev/null +++ b/~/test again/repos/justintime50/pullbug @@ -0,0 +1 @@ +Subproject commit 60ee49134539792b2260a32aed0efa19c705a4bf diff --git a/~/test again/repos/justintime50/python-template b/~/test again/repos/justintime50/python-template new file mode 160000 index 0000000..b688c14 --- /dev/null +++ b/~/test again/repos/justintime50/python-template @@ -0,0 +1 @@ +Subproject commit b688c14c492c4120f41be95f56385782fe71e8b4 diff --git a/~/test again/repos/justintime50/secure-browser-kiosk b/~/test again/repos/justintime50/secure-browser-kiosk new file mode 160000 index 0000000..490fb37 --- /dev/null +++ b/~/test again/repos/justintime50/secure-browser-kiosk @@ -0,0 +1 @@ +Subproject commit 490fb37d2b955e2b21d474fe621c4c4236c24341 diff --git a/~/test again/repos/justintime50/service-stats b/~/test again/repos/justintime50/service-stats new file mode 160000 index 0000000..237ccde --- /dev/null +++ b/~/test again/repos/justintime50/service-stats @@ -0,0 +1 @@ +Subproject commit 237ccdedd94b813a9fdd601062bfae80decc074c diff --git a/~/test again/repos/justintime50/srvinfra b/~/test again/repos/justintime50/srvinfra new file mode 160000 index 0000000..5f4719f --- /dev/null +++ b/~/test again/repos/justintime50/srvinfra @@ -0,0 +1 @@ +Subproject commit 5f4719f79b4e328561e6964706053a0cbe60de32 diff --git a/~/test again/repos/justintime50/styles b/~/test again/repos/justintime50/styles new file mode 160000 index 0000000..deaef2f --- /dev/null +++ b/~/test again/repos/justintime50/styles @@ -0,0 +1 @@ +Subproject commit deaef2fec0ac58bb605092a7f3cff4a554838e5d diff --git a/~/test again/repos/justintime50/vcr-accessories-php b/~/test again/repos/justintime50/vcr-accessories-php new file mode 160000 index 0000000..4141875 --- /dev/null +++ b/~/test again/repos/justintime50/vcr-accessories-php @@ -0,0 +1 @@ +Subproject commit 414187553ffc091a67f5f3d30d90c4f0ad546c35 diff --git a/~/test again/repos/justintime50/woodchips b/~/test again/repos/justintime50/woodchips new file mode 160000 index 0000000..9ecab75 --- /dev/null +++ b/~/test again/repos/justintime50/woodchips @@ -0,0 +1 @@ +Subproject commit 9ecab7548b1a646a1a55285884d954cb7b67dedc