From 1248630272abf63eb5f0a405214d699da319dcbe Mon Sep 17 00:00:00 2001 From: Oliver Hattshire Date: Fri, 24 Oct 2025 16:58:01 -0300 Subject: [PATCH] Make use of the templated development environment without including it on te repo --- .copier-answers.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 6 +++++- copier-run.sh | 22 ++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 .copier-answers.yml create mode 100755 copier-run.sh diff --git a/.copier-answers.yml b/.copier-answers.yml new file mode 100644 index 0000000..54bd934 --- /dev/null +++ b/.copier-answers.yml @@ -0,0 +1,50 @@ +# Do not edit manually! +# Changes here will be overwritten by copier. +# https://copier.readthedocs.io/ +_commit: 3539be6 +_src_path: https://codeberg.org/slidge/legacy-module-template.git +authors: +- email: oliver@hattshire.dev + name: Oliver Hattshire +ci_id: 1 +container_build_files: +- pyproject.toml +container_build_native: false +container_builder_deps: +- git +- make +container_builder_deps_backports: [] +container_debian_version: trixie +container_dev_custom_hot_reload: '' +container_dev_extra_lines: '' +container_python_version: '3.11' +container_requires_rustup: false +container_runtime_deps: [] +custom_build_system: '' +custom_readme_head: '' +custom_readme_tail: '' +debian_bundle: true +dependencies: +- slidge>=0.3,<0.4 +- instagrapi>=2.2,<3 +dev_dependencies: [] +intersphinx_mappings: [] +lint_excludes: [] +mypy_ignores: [] +native_builds: false +netbsd: + dependencies: [] + enable: false + pyver: '3.13' +pre_commit_custom_hooks: '' +project_name: Insthidge +repology: '' +requires_lottie: false +silo: + lib: + name: instagrapi + url: https://github.com/subzeroid/instagrapi + name: Instagram + url: https://instagram.com/ +uv_sources: [] +wheels: true diff --git a/.gitignore b/.gitignore index e886e9f..19ed006 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,8 @@ __pycache__/ .venv/ *.egg-info/ typings/ -persistent/ \ No newline at end of file +persistent/ +slidge-insthidge/ +.mypy_cache/ +.ruff_cache/ +dist/ \ No newline at end of file diff --git a/copier-run.sh b/copier-run.sh new file mode 100755 index 0000000..21d3957 --- /dev/null +++ b/copier-run.sh @@ -0,0 +1,22 @@ +#!/usr/bin/bash + +PKG_NAME="Insthidge" +DST_DIR="slidge-insthidge" +SRC_URL="https://codeberg.org/slidge/legacy-module-template.git" + +mkdir -p $DST_DIR + +# Run Copier +cp .copier-answers.yml $DST_DIR +pipx run copier copy -w -l $SRC_URL $DST_DIR + +# Replace generated environment with work tree +rm -r $DST_DIR/$PKG_NAME +ln -s $PWD/$PKG_NAME $DST_DIR/$PKG_NAME + +mkdir -p persistent +ln -s $PWD/persistent $DST_DIR/persistent + +pushd $DST_DIR +git init . +popd