mirror of
https://github.com/vale981/melpazoid
synced 2025-03-04 17:01:40 -05:00
drop support for locally hosted packages
This commit is contained in:
parent
70f0190358
commit
ecc217439d
2 changed files with 0 additions and 19 deletions
|
@ -65,12 +65,6 @@ foolproof, sometimes opinionated, and may raise false positives.
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
MELPA_PR_URL=https://github.com/melpa/melpa/pull/6718 make
|
MELPA_PR_URL=https://github.com/melpa/melpa/pull/6718 make
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Test a local package (work in progress)
|
|
||||||
#+begin_src bash
|
|
||||||
PKG_PATH=/path/to/package \
|
|
||||||
PKG_NAME=package-name \
|
|
||||||
make
|
|
||||||
#+end_src
|
|
||||||
*** Run in an unending loop
|
*** Run in an unending loop
|
||||||
This currently only works in macOS; it monitors the clipboard
|
This currently only works in macOS; it monitors the clipboard
|
||||||
for new MELPA PR's, then automatically runs the checks on them.
|
for new MELPA PR's, then automatically runs the checks on them.
|
||||||
|
|
|
@ -523,16 +523,6 @@ def _branch(recipe: str) -> str:
|
||||||
return tokenized_recipe[tokenized_recipe.index(':branch') + 1].strip('"')
|
return tokenized_recipe[tokenized_recipe.index(':branch') + 1].strip('"')
|
||||||
|
|
||||||
|
|
||||||
def check_local_package(elisp_dir: str = None, package_name: str = None):
|
|
||||||
"""Check a locally-hosted package (WIP)."""
|
|
||||||
return_code(0)
|
|
||||||
elisp_dir = elisp_dir or input('Path: ').strip()
|
|
||||||
assert os.path.isdir(elisp_dir)
|
|
||||||
package_name = package_name or input(f"Name of package at {elisp_dir}: ")
|
|
||||||
recipe = f'({package_name or "NONAME"} :repo "N/A")'
|
|
||||||
run_checks(recipe, elisp_dir)
|
|
||||||
|
|
||||||
|
|
||||||
def check_melpa_pr(pr_url: str):
|
def check_melpa_pr(pr_url: str):
|
||||||
"""Check a PR on MELPA."""
|
"""Check a PR on MELPA."""
|
||||||
return_code(0)
|
return_code(0)
|
||||||
|
@ -690,9 +680,6 @@ if __name__ == '__main__':
|
||||||
if 'MELPA_PR_URL' in os.environ:
|
if 'MELPA_PR_URL' in os.environ:
|
||||||
check_melpa_pr(os.environ['MELPA_PR_URL'])
|
check_melpa_pr(os.environ['MELPA_PR_URL'])
|
||||||
sys.exit(return_code())
|
sys.exit(return_code())
|
||||||
elif 'PKG_PATH' in os.environ and 'PKG_NAME' in os.environ:
|
|
||||||
check_local_package(os.environ['PKG_PATH'], os.environ['PKG_NAME'])
|
|
||||||
sys.exit(return_code())
|
|
||||||
elif 'RECIPE' in os.environ:
|
elif 'RECIPE' in os.environ:
|
||||||
check_recipe(os.environ['RECIPE'])
|
check_recipe(os.environ['RECIPE'])
|
||||||
sys.exit(return_code())
|
sys.exit(return_code())
|
||||||
|
|
Loading…
Add table
Reference in a new issue