Skip to content

Commit 1abeab3

Browse files
committed
Initial commit
0 parents  commit 1abeab3

20 files changed

+351
-0
lines changed

Diff for: .github/workflows/excavator.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Excavator
2+
3+
on:
4+
schedule:
5+
- cron: "0 * * * *"
6+
7+
jobs:
8+
excavator:
9+
name: Excavator
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Excavate
15+
uses: Ash258/Scoop-GithubActions@stable
16+
env:
17+
GITH_EMAIL: [email protected]
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
SKIP_UPDATED: "1"

Diff for: .github/workflows/issues.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Issues
2+
3+
on:
4+
issues:
5+
types: [opened, labeled]
6+
7+
jobs:
8+
issueVerifier:
9+
name: Issue Verifier
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Verify Issues
15+
uses: Ash258/Scoop-GithubActions@stable
16+
if: github.event.action == 'opened' || (github.event.action == 'labeled' && contains(github.event.issue.labels.*.name, 'verify'))
17+
env:
18+
GITH_EMAIL: [email protected]
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/pull_request_comments.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Pull Request Comments
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
pullRequestValidator:
9+
name: Pull Request Validator
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Validate Pull Request
15+
uses: Ash258/Scoop-GithubActions@stable
16+
if: startsWith(github.event.comment.body, '/verify')
17+
env:
18+
GITH_EMAIL: [email protected]
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .github/workflows/pull_requests.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Pull Requests
2+
3+
on:
4+
pull_request:
5+
types: [opened]
6+
7+
jobs:
8+
pullRequestValidator:
9+
name: Pull Request Validator
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Validate Pull Request
15+
uses: Ash258/Scoop-GithubActions@stable
16+
env:
17+
GITH_EMAIL: [email protected]
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Diff for: .vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"EditorConfig.EditorConfig",
4+
"ms-vscode.PowerShell"
5+
]
6+
}

Diff for: .vscode/settings.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Configure PSScriptAnalyzer settings
2+
{
3+
"[powershell]": {
4+
"editor.formatOnSave": true
5+
},
6+
"powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
7+
"powershell.codeFormatting.preset": "OTBS",
8+
"powershell.codeFormatting.alignPropertyValuePairs": true,
9+
"powershell.codeFormatting.ignoreOneLineBlock": true,
10+
"files.exclude": {
11+
"**/.git": true,
12+
"**/.svn": true,
13+
"**/.hg": true,
14+
"**/CVS": true,
15+
"**/.DS_Store": true,
16+
"**/tmp": true
17+
}
18+
}

Diff for: LICENSE

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
This is free and unencumbered software released into the public domain.
2+
3+
Anyone is free to copy, modify, publish, use, compile, sell, or
4+
distribute this software, either in source code form or as a compiled
5+
binary, for any purpose, commercial or non-commercial, and by any
6+
means.
7+
8+
In jurisdictions that recognize copyright laws, the author or authors
9+
of this software dedicate any and all copyright interest in the
10+
software to the public domain. We make this dedication for the benefit
11+
of the public at large and to the detriment of our heirs and
12+
successors. We intend this dedication to be an overt act of
13+
relinquishment in perpetuity of all present and future rights to this
14+
software under copyright law.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19+
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+
24+
For more information, please refer to <http://unlicense.org>

Diff for: README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!-- markdownlint-disable MD010 -->
2+
<!-- markdownlint-disable MD014 -->
3+
4+
# Scoop-Python
5+
6+
A [Scoop](https://github.com/lukesampson/scoop) bucket for Python applications that do not provide
7+
standalone executables.
8+
9+
$ scoop bucket add python https://github.com/TheRandomLabs/Scoop-Python.git
10+
11+
This bucket is an alternative to using pip to install these packages.
12+
13+
Note that uninstalling a package in this bucket will not uninstall its dependencies to avoid
14+
conflicts.

Diff for: bin/auto-pr.ps1

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
param([String]$upstream = "TheRandomLabs/Scoop-Python:master")
2+
3+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
4+
$auto_pr = "$env:SCOOP_HOME\bin\auto-pr.ps1"
5+
$dir = "$psscriptroot\..\bucket"
6+
Invoke-Expression -Command "& '$auto_pr' -dir '$dir' -upstream $upstream $($args | ForEach-Object { "$_ " })"

Diff for: bin/checkurls.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
2+
$checkurls = "$env:SCOOP_HOME\bin\checkurls.ps1"
3+
$dir = "$psscriptroot\..\bucket"
4+
Invoke-Expression -Command "& '$checkurls' -dir '$dir' $($args | ForEach-Object { "$_ " })"

Diff for: bin/checkver.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
2+
$checkver = "$env:SCOOP_HOME\bin\checkver.ps1"
3+
$dir = "$psscriptroot\..\bucket"
4+
Invoke-Expression -Command "& '$checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"

Diff for: bin/formatjson.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
2+
$formatjson = "$env:SCOOP_HOME\bin\formatjson.ps1"
3+
$dir = "$psscriptroot\..\bucket"
4+
Invoke-Expression -Command "& '$formatjson' -dir '$dir' $($args | ForEach-Object { "$_ " })"

Diff for: bin/missing-checkver.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
2+
$missing_checkver = "$env:SCOOP_HOME\bin\missing-checkver.ps1"
3+
$dir = "$psscriptroot\..\bucket"
4+
Invoke-Expression -Command "& '$missing_checkver' -dir '$dir' $($args | ForEach-Object { "$_ " })"

Diff for: bin/test.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '4.4.0' }
2+
3+
if (!$env:SCOOP_HOME) { $env:SCOOP_HOME = Resolve-Path(Split-Path(Split-Path(scoop which scoop))) }
4+
Invoke-Pester "$psscriptroot\.."

Diff for: bucket/awscurl.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.20",
3+
"homepage": "https://github.com/okigan/awscurl",
4+
"description": "Curl-like tool for accessing AWS resources.",
5+
"license": "MIT",
6+
"depends": "python",
7+
"url": "https://github.com/okigan/awscurl/archive/v0.20.zip",
8+
"hash": "4a73f5f66ae6e19a5ae61b95318c26ce811bd5eab898e5ca02f6adbc403ba49b",
9+
"extract_dir": "awscurl-0.20",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*awscurl.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\awscurl-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": "github",
27+
"autoupdate": {
28+
"url": "https://github.com/okigan/awscurl/archive/v$version.zip",
29+
"extract_dir": "awscurl-$version"
30+
}
31+
}

Diff for: bucket/codespell.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "1.16.0",
3+
"homepage": "https://github.com/codespell-project/codespell",
4+
"description": "Detects common misspellings in text files.",
5+
"license": "GPL-2.0-only",
6+
"depends": "python",
7+
"url": "https://github.com/codespell-project/codespell/archive/v1.16.0.zip",
8+
"hash": "2f8d3684079bc32a2f069a67b7fb1660c24ea358525527ae96ce6db6db3a1f65",
9+
"extract_dir": "codespell-1.16.0",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*codespell.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\codespell-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": "github",
27+
"autoupdate": {
28+
"url": "https://github.com/codespell-project/codespell/archive/v$version.zip",
29+
"extract_dir": "codespell-$version"
30+
}
31+
}

Diff for: bucket/gitup.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.5.1",
3+
"homepage": "https://github.com/earwig/git-repo-updater",
4+
"description": "Tool for updating multiple Git repositories at once.",
5+
"license": "MIT",
6+
"depends": "python",
7+
"url": "https://github.com/earwig/git-repo-updater/archive/v0.5.1.zip",
8+
"hash": "55592200c4c2ee69d7b53a1d7119a11b4d28cc9642bdf4d6e8fcd4fafa0f6fd8",
9+
"extract_dir": "git-repo-updater-0.5.1",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*gitup.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\gitup-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": "github",
27+
"autoupdate": {
28+
"url": "https://github.com/earwig/git-repo-updater/archive/v$version.zip",
29+
"extract_dir": "git-repo-updater-$version"
30+
}
31+
}

Diff for: bucket/grip.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "4.5.2",
3+
"homepage": "https://github.com/joeyespo/grip",
4+
"description": "Renders Markdown files.",
5+
"license": "MIT",
6+
"depends": "python",
7+
"url": "https://github.com/joeyespo/grip/archive/v4.5.2.zip",
8+
"hash": "dafdd057f75041d07ed2f518050b90ff9a9be37a7c01c93d63b11bfa4d02ce58",
9+
"extract_dir": "grip-4.5.2",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*grip.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\grip-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": "github",
27+
"autoupdate": {
28+
"url": "https://github.com/joeyespo/grip/archive/v$version.zip",
29+
"extract_dir": "grip-$version"
30+
}
31+
}

Diff for: bucket/httpie.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"version": "2.1.0",
3+
"homepage": "https://httpie.org/",
4+
"description": "Command-line HTTP client.",
5+
"license": "BSD-3-Clause",
6+
"depends": "python",
7+
"url": "https://github.com/jakubroztocil/httpie/archive/2.1.0.zip",
8+
"hash": "0ed60fbded523ce48575c722ce68dffbce69681dbfc8c743ff292a11807de50d",
9+
"extract_dir": "httpie-2.1.0",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*http.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\httpie-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": {
27+
"github": "https://github.com/jakubroztocil/httpie"
28+
},
29+
"autoupdate": {
30+
"url": "https://github.com/jakubroztocil/httpie/archive/$version.zip",
31+
"extract_dir": "httpie-$version"
32+
}
33+
}

Diff for: bucket/rst-lint.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "1.3.0",
3+
"homepage": "https://github.com/twolfson/restructuredtext-lint",
4+
"description": "reStructuredText linter.",
5+
"license": "Unlicense",
6+
"depends": "python",
7+
"url": "https://github.com/twolfson/restructuredtext-lint/archive/1.3.0.zip",
8+
"hash": "9b1937a38384bd55f4ef7d8f79438571c4871a6f0d316f2e655fea113e63c4fb",
9+
"extract_dir": "restructuredtext-lint-1.3.0",
10+
"installer": {
11+
"script": [
12+
"Push-Location $dir",
13+
"if ($global) { python setup.py --quiet install --record installed_files.txt }",
14+
"else { python setup.py --quiet install --user --record installed_files.txt }",
15+
"Pop-Location"
16+
]
17+
},
18+
"uninstaller": {
19+
"script": [
20+
"(Get-Content \"$dir\\installed_files.txt\") -match '.*restructuredtext.lint.*|rst-lint.*' | ForEach-Object { Remove-Item -ErrorAction Ignore -Force $_ }",
21+
"if ($global) { $site_packages = \"$(Split-Path (scoop which python))\\lib\\site-packages\" }",
22+
"else { $site_packages = python.exe -m site --user-site }",
23+
"Get-ChildItem \"$site_packages\\restructuredtext_lint-$version-py*.egg\" | Select-Object -First 1 | Remove-Item -ErrorAction Ignore -Force -Recurse"
24+
]
25+
},
26+
"checkver": "github",
27+
"autoupdate": {
28+
"url": "https://github.com/twolfson/restructuredtext-lint/archive/$version.zip",
29+
"extract_dir": "restructuredtext-lint-$version"
30+
}
31+
}

0 commit comments

Comments
 (0)