From 7715726db36ff95cc14b4e93bf3fe101fcf67688 Mon Sep 17 00:00:00 2001 From: "user@raspberrypi.local" Date: Thu, 8 Jan 2026 08:59:59 +0000 Subject: [PATCH] update env --- .gitignore | 178 +--------------------------------------------- bin/activate | 8 +-- bin/activate.csh | 6 +- bin/activate.fish | 6 +- bin/pip | 2 +- bin/pip3 | 2 +- bin/pip3.13 | 2 +- pyvenv.cfg | 2 +- 8 files changed, 16 insertions(+), 190 deletions(-) diff --git a/.gitignore b/.gitignore index 36b13f1..f514b74 100644 --- a/.gitignore +++ b/.gitignore @@ -1,176 +1,2 @@ -# ---> Python -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -cover/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -# For a library or package, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# .python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# UV -# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control. -# This is especially recommended for binary packages to ensure reproducibility, and is more -# commonly ignored for libraries. -#uv.lock - -# poetry -# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. -# This is especially recommended for binary packages to ensure reproducibility, and is more -# commonly ignored for libraries. -# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control -#poetry.lock - -# pdm -# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. -#pdm.lock -# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it -# in version control. -# https://pdm.fming.dev/latest/usage/project/#working-with-version-control -.pdm.toml -.pdm-python -.pdm-build/ - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - -# PyCharm -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore -# and can be added to the global gitignore or merged into this file. For a more nuclear -# option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ - -# Ruff stuff: -.ruff_cache/ - -# PyPI configuration file -.pypirc - +# Created by venv; see https://docs.python.org/3/library/venv.html +* diff --git a/bin/activate b/bin/activate index d0e4f30..154b2a6 100644 --- a/bin/activate +++ b/bin/activate @@ -41,12 +41,12 @@ case "$(uname)" in CYGWIN*|MSYS*|MINGW*) # transform D:\path\to\venv to /d/path/to/venv on MSYS and MINGW # and to /cygdrive/d/path/to/venv on Cygwin - VIRTUAL_ENV=$(cygpath /home/user/raspi-iot-ryhmatyo/py) + VIRTUAL_ENV=$(cygpath /home/user/raspi-iot-ryhmatyo) export VIRTUAL_ENV ;; *) # use the path as-is - export VIRTUAL_ENV=/home/user/raspi-iot-ryhmatyo/py + export VIRTUAL_ENV=/home/user/raspi-iot-ryhmatyo ;; esac @@ -54,7 +54,7 @@ _OLD_VIRTUAL_PATH="$PATH" PATH="$VIRTUAL_ENV/"bin":$PATH" export PATH -VIRTUAL_ENV_PROMPT=py +VIRTUAL_ENV_PROMPT=raspi-iot-ryhmatyo export VIRTUAL_ENV_PROMPT # unset PYTHONHOME if set @@ -67,7 +67,7 @@ fi if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then _OLD_VIRTUAL_PS1="${PS1:-}" - PS1="("py") ${PS1:-}" + PS1="("raspi-iot-ryhmatyo") ${PS1:-}" export PS1 fi diff --git a/bin/activate.csh b/bin/activate.csh index bb9ef2c..bd56002 100644 --- a/bin/activate.csh +++ b/bin/activate.csh @@ -9,17 +9,17 @@ alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PA # Unset irrelevant variables. deactivate nondestructive -setenv VIRTUAL_ENV /home/user/raspi-iot-ryhmatyo/py +setenv VIRTUAL_ENV /home/user/raspi-iot-ryhmatyo set _OLD_VIRTUAL_PATH="$PATH" setenv PATH "$VIRTUAL_ENV/"bin":$PATH" -setenv VIRTUAL_ENV_PROMPT py +setenv VIRTUAL_ENV_PROMPT raspi-iot-ryhmatyo set _OLD_VIRTUAL_PROMPT="$prompt" if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then - set prompt = "("py") $prompt:q" + set prompt = "("raspi-iot-ryhmatyo") $prompt:q" endif alias pydoc python -m pydoc diff --git a/bin/activate.fish b/bin/activate.fish index 7ee5fc7..bed8228 100644 --- a/bin/activate.fish +++ b/bin/activate.fish @@ -33,11 +33,11 @@ end # Unset irrelevant variables. deactivate nondestructive -set -gx VIRTUAL_ENV /home/user/raspi-iot-ryhmatyo/py +set -gx VIRTUAL_ENV /home/user/raspi-iot-ryhmatyo set -gx _OLD_VIRTUAL_PATH $PATH set -gx PATH "$VIRTUAL_ENV/"bin $PATH -set -gx VIRTUAL_ENV_PROMPT py +set -gx VIRTUAL_ENV_PROMPT raspi-iot-ryhmatyo # Unset PYTHONHOME if set. if set -q PYTHONHOME @@ -57,7 +57,7 @@ if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" set -l old_status $status # Output the venv prompt; color taken from the blue of the Python logo. - printf "%s(%s)%s " (set_color 4B8BBE) py (set_color normal) + printf "%s(%s)%s " (set_color 4B8BBE) raspi-iot-ryhmatyo (set_color normal) # Restore the return status of the previous command. echo "exit $old_status" | . diff --git a/bin/pip b/bin/pip index 8bf099e..6899e78 100755 --- a/bin/pip +++ b/bin/pip @@ -1,4 +1,4 @@ -#!/home/user/raspi-iot-ryhmatyo/py/bin/python3 +#!/home/user/raspi-iot-ryhmatyo/bin/python3 # -*- coding: utf-8 -*- import re import sys diff --git a/bin/pip3 b/bin/pip3 index 8bf099e..6899e78 100755 --- a/bin/pip3 +++ b/bin/pip3 @@ -1,4 +1,4 @@ -#!/home/user/raspi-iot-ryhmatyo/py/bin/python3 +#!/home/user/raspi-iot-ryhmatyo/bin/python3 # -*- coding: utf-8 -*- import re import sys diff --git a/bin/pip3.13 b/bin/pip3.13 index 8bf099e..6899e78 100755 --- a/bin/pip3.13 +++ b/bin/pip3.13 @@ -1,4 +1,4 @@ -#!/home/user/raspi-iot-ryhmatyo/py/bin/python3 +#!/home/user/raspi-iot-ryhmatyo/bin/python3 # -*- coding: utf-8 -*- import re import sys diff --git a/pyvenv.cfg b/pyvenv.cfg index ab409c2..111f51b 100644 --- a/pyvenv.cfg +++ b/pyvenv.cfg @@ -2,4 +2,4 @@ home = /usr/bin include-system-site-packages = false version = 3.13.5 executable = /usr/bin/python3.13 -command = /usr/bin/python3 -m venv /home/user/raspi-iot-ryhmatyo/py +command = /usr/bin/python3 -m venv /home/user/raspi-iot-ryhmatyo