skeleton-ci / skeleton-python Goto Github PK
View Code? Open in Web Editor NEWMy very over-engineered Python project skeleton.
License: MIT License
My very over-engineered Python project skeleton.
License: MIT License
mkdocs ftw!
When updating a project that uses skeleton, add proper co-author entries relevant to the integrated skeleton diffs.
https://blog.jaraco.com/skeleton/#history-is-forever
Ideally, ship it with the release script so that I don't have to ever touch towncrier CLI.
pawamoy created this amazing project https://github.com/pawamoy/git-changelog.
It might be used in Upgrade to bswck/skeleton@rev
commit descriptions along with Co-authored-by
entries.
It's needed to ensure that the released skeleton looks fine after copy/update to avoid cases like 5826ea1.
context["repo_url"] = "https://github.com/{{github_username}}/{{repo_name}}"
etc.
https://docs.hikari-py.dev/en/latest/reference/hikari/impl/rest/#hikari.impl.rest.RESTClientImpl.create_webhook
https://docs.github.com/en/webhooks/webhook-events-and-payloads#commit_comment
gh api /repos/{{repo_name}}/hooks --input - <<< '{"name":"web","events":["create","commit_comment","pull_request_review_comment","delete","fork","issue_comment","issues","label","member","milestone","public","pull_request","pull_request_review","push","release","repository","star","watch"],"config":{"url":"{{webhook_url}}","content_type":"json"}}'
Instead of:
pipx install copier
python3 -m pip install copier-templates-extensions
I suggest:
pipx install copier
pipx inject copier copier-templates-extensions
Which keeps the extension isolated, in the pipx venv for copier, from the interpreter site-packages.
Mechanized patches are made by running $ poe reanswer
.
After reanswer, find what answers were changed and include the changes in the mechanized patch commit.
skeleton sync --vcs-ref=HEAD [PROJECTS]
vcs-ref
across all downstream projects.Hi,
I have encountered an error
Caution
cp: cannot stat './handle-task-event': No such file or directory
Caution
Command 'set -eE && ( ./handle-task-event || (TEMPLATE_PREVIEW=$(mktemp); cp ./handle-task-event $TEMPLATE_PREVIEW) ) && ( if test $TEMPLATE_PREVIEW; then ( echo "Opening the failing template preview" && $EDITOR $TEMPLATE_PREVIEW ); fi )' returned non-zero exit status 1.
The repository and the project files are successfully created without any error and I can find them in my file system.
VS Code integrated terminal connected to WSL2 with the following version of Ubuntu
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
Similar error was raised when repository name was open, so I think it is not related.
โ Running copier hook...
Previous license name: Custom
Set license name: MIT
Generating documentation symlinks...
docs/changelog.md -> ../CHANGELOG.md
Generated 1 documentation symlinks
๐ Copier hook exited with code 0.
โ Removing copier hook...
โ Initializing git repository...
๐ Main branch: main
GraphQL: Name already exists on this account (createRepository)
cp: cannot stat './handle-task-event': No such file or directory
Traceback (most recent call last):
File "/home/gregb12/.local/bin/copier", line 8, in <module>
sys.exit(copier_app_run())
^^^^^^^^^^^^^^^^
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/plumbum/cli/application.py", line 638, in run
inst, retcode = subapp.run(argv, exit=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/plumbum/cli/application.py", line 633, in run
retcode = inst.main(*tailargs)
^^^^^^^^^^^^^^^^^^^^
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 72, in handle_exceptions
return method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 265, in main
with self._worker(
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 205, in __exit__
raise value
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/cli.py", line 272, in main
worker.run_copy()
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 758, in run_copy
self._execute_tasks(self.template.tasks)
File "/home/gregb12/.local/pipx/venvs/copier/lib/python3.12/site-packages/copier/main.py", line 284, in _execute_tasks
subprocess.run(task_cmd, shell=use_shell, check=True, env=local.env)
File "/usr/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'set -eE && ( ./handle-task-event || (TEMPLATE_PREVIEW=$(mktemp); cp ./handle-task-event $TEMPLATE_PREVIEW) ) && ( if test $TEMPLATE_PREVIEW; then ( echo "Opening the failing template preview" && $EDITOR $TEMPLATE_PREVIEW ); fi )' returned non-zero exit status 1.
GitLab, BitBucket, etc.
Was fun learning, but I will achieve more with a more sophisticated scripting tool.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.