Make use of the templated development environment without including it on te repo

This commit is contained in:
Oliver Hattshire 2025-10-24 16:58:01 -03:00
parent c0cf0bc40c
commit 1248630272
3 changed files with 77 additions and 1 deletions

50
.copier-answers.yml Normal file
View file

@ -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

6
.gitignore vendored
View file

@ -2,4 +2,8 @@ __pycache__/
.venv/
*.egg-info/
typings/
persistent/
persistent/
slidge-insthidge/
.mypy_cache/
.ruff_cache/
dist/

22
copier-run.sh Executable file
View file

@ -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