mirror of
https://github.com/daylinmorgan/swydd.git
synced 2024-11-07 01:33:14 -06:00
1.9 KiB
1.9 KiB
sywdd
sywdd will yield desired deliverables
Automagic Snippet
# https://github.com/daylinmorgan/swydd?tab=readme-ov-file#automagic-snippet
# fmt: off
if not (src := __import__("pathlib").Path(__file__).parent / "swydd/__init__.py").is_file(): # noqa
try: __import__("swydd") # noqa
except ImportError:
import sys; from urllib.request import urlopen; from urllib.error import URLError # noqa
try: r = urlopen("https://raw.githubusercontent.com/daylinmorgan/swydd/main/src/swydd/__init__.py") # noqa
except URLError as e: sys.exit(f"{e}\n") # noqa
src.parent.mkdir(exists_ok=True); src.write_text(r.read().decode("utf-8")); # noqa
# fmt: on
Alternatives
- make
- just
- task
- nox
- pypyr
- pydoit https://github.com/zyedidia/knit