diff --git a/.gitignore b/.gitignore index d6029a3..1659c4d 100644 --- a/.gitignore +++ b/.gitignore @@ -132,6 +132,7 @@ ENV/ env.bak/ venv.bak/ pythonenv* +venv_test/ # Spyder project settings .spyderproject diff --git a/docs/.vuepress/.temp/internal/clientAppEnhances.js b/docs/.vuepress/.temp/internal/clientAppEnhances.js deleted file mode 100644 index 9ce5486..0000000 --- a/docs/.vuepress/.temp/internal/clientAppEnhances.js +++ /dev/null @@ -1,11 +0,0 @@ -import clientAppEnhance0 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js' -import clientAppEnhance1 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-medium-zoom/lib/client/clientAppEnhance.js' -import clientAppEnhance2 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js' -import clientAppEnhance3 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/theme-default/lib/client/clientAppEnhance.js' - -export const clientAppEnhances = [ - clientAppEnhance0, - clientAppEnhance1, - clientAppEnhance2, - clientAppEnhance3, -] diff --git a/docs/.vuepress/.temp/internal/clientAppRootComponents.js b/docs/.vuepress/.temp/internal/clientAppRootComponents.js deleted file mode 100644 index 5853e99..0000000 --- a/docs/.vuepress/.temp/internal/clientAppRootComponents.js +++ /dev/null @@ -1,5 +0,0 @@ -import clientAppRootComponent0 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-back-to-top/lib/client/components/BackToTop.js' - -export const clientAppRootComponents = [ - clientAppRootComponent0, -] diff --git a/docs/.vuepress/.temp/internal/clientAppSetups.js b/docs/.vuepress/.temp/internal/clientAppSetups.js deleted file mode 100644 index 45f3b50..0000000 --- a/docs/.vuepress/.temp/internal/clientAppSetups.js +++ /dev/null @@ -1,9 +0,0 @@ -import clientAppSetup0 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-active-header-links/lib/client/clientAppSetup.js' -import clientAppSetup1 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/plugin-nprogress/lib/client/clientAppSetup.js' -import clientAppSetup2 from 'E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/theme-default/lib/client/clientAppSetup.js' - -export const clientAppSetups = [ - clientAppSetup0, - clientAppSetup1, - clientAppSetup2, -] diff --git a/docs/.vuepress/.temp/internal/layoutComponents.js b/docs/.vuepress/.temp/internal/layoutComponents.js deleted file mode 100644 index 2abe096..0000000 --- a/docs/.vuepress/.temp/internal/layoutComponents.js +++ /dev/null @@ -1,6 +0,0 @@ -import { defineAsyncComponent } from 'vue' - -export const layoutComponents = { - "404": defineAsyncComponent(() => import("E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/theme-default/lib/client/layouts/404.vue")), - "Layout": defineAsyncComponent(() => import("E:/Azide/nonebot/nonebot-bison/node_modules/@vuepress/theme-default/lib/client/layouts/Layout.vue")), -} diff --git a/docs/.vuepress/.temp/internal/pagesComponents.js b/docs/.vuepress/.temp/internal/pagesComponents.js deleted file mode 100644 index e16bc2d..0000000 --- a/docs/.vuepress/.temp/internal/pagesComponents.js +++ /dev/null @@ -1,12 +0,0 @@ -import { defineAsyncComponent } from 'vue' - -export const pagesComponents = { - // path: / - "v-8daa1a0e": defineAsyncComponent(() => import(/* webpackChunkName: "v-8daa1a0e" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/index.html.vue")), - // path: /dev/ - "v-7445cd33": defineAsyncComponent(() => import(/* webpackChunkName: "v-7445cd33" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/dev/index.html.vue")), - // path: /usage/ - "v-d0736a32": defineAsyncComponent(() => import(/* webpackChunkName: "v-d0736a32" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/usage/index.html.vue")), - // path: /404.html - "v-3706649a": defineAsyncComponent(() => import(/* webpackChunkName: "v-3706649a" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/404.html.vue")), -} diff --git a/docs/.vuepress/.temp/internal/pagesData.js b/docs/.vuepress/.temp/internal/pagesData.js deleted file mode 100644 index 1c59595..0000000 --- a/docs/.vuepress/.temp/internal/pagesData.js +++ /dev/null @@ -1,10 +0,0 @@ -export const pagesData = { - // path: / - "v-8daa1a0e": () => import(/* webpackChunkName: "v-8daa1a0e" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/index.html.js").then(({ data }) => data), - // path: /dev/ - "v-7445cd33": () => import(/* webpackChunkName: "v-7445cd33" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/dev/index.html.js").then(({ data }) => data), - // path: /usage/ - "v-d0736a32": () => import(/* webpackChunkName: "v-d0736a32" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/usage/index.html.js").then(({ data }) => data), - // path: /404.html - "v-3706649a": () => import(/* webpackChunkName: "v-3706649a" */"E:/Azide/nonebot/nonebot-bison/docs/.vuepress/.temp/pages/404.html.js").then(({ data }) => data), -} diff --git a/docs/.vuepress/.temp/internal/pagesRoutes.js b/docs/.vuepress/.temp/internal/pagesRoutes.js deleted file mode 100644 index d87bce8..0000000 --- a/docs/.vuepress/.temp/internal/pagesRoutes.js +++ /dev/null @@ -1,33 +0,0 @@ -import { Vuepress } from '@vuepress/client/lib/components/Vuepress' - -const routeItems = [ - ["v-8daa1a0e","/",{"title":""},["/index.html","/README.md"]], - ["v-7445cd33","/dev/",{"title":"开发指南"},["/dev/index.html","/dev/README.md"]], - ["v-d0736a32","/usage/",{"title":""},["/usage/index.html","/usage/README.md"]], - ["v-3706649a","/404.html",{"title":""},["/404"]], -] - -export const pagesRoutes = routeItems.reduce( - (result, [name, path, meta, redirects]) => { - result.push( - { - name, - path, - component: Vuepress, - meta, - }, - ...redirects.map((item) => ({ - path: item, - redirect: path, - })) - ) - return result - }, - [ - { - name: "404", - path: "/:catchAll(.*)", - component: Vuepress, - } - ] -) diff --git a/docs/.vuepress/.temp/internal/siteData.js b/docs/.vuepress/.temp/internal/siteData.js deleted file mode 100644 index 538a815..0000000 --- a/docs/.vuepress/.temp/internal/siteData.js +++ /dev/null @@ -1,21 +0,0 @@ -export const siteData = { - "base": "/", - "lang": "en-US", - "title": "Nonebot Bison", - "description": "Docs for Nonebot Bison", - "head": [], - "locales": {} -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updateSiteData) { - __VUE_HMR_RUNTIME__.updateSiteData(siteData) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ siteData }) => { - __VUE_HMR_RUNTIME__.updateSiteData(siteData) - }) -} diff --git a/docs/.vuepress/.temp/internal/themeData.js b/docs/.vuepress/.temp/internal/themeData.js deleted file mode 100644 index 28c8b01..0000000 --- a/docs/.vuepress/.temp/internal/themeData.js +++ /dev/null @@ -1,61 +0,0 @@ -export const themeData = { - "navbar": [ - { - "text": "主页", - "link": "/" - }, - { - "text": "部署与使用", - "link": "/usage/" - }, - { - "text": "开发", - "link": "/dev/" - }, - { - "text": "Github", - "link": "https://github.com/felinae98/nonebot-bison" - } - ], - "locales": { - "/": { - "selectLanguageName": "English" - } - }, - "logo": null, - "darkMode": true, - "repo": null, - "selectLanguageText": "Languages", - "selectLanguageAriaLabel": "Select language", - "sidebar": "auto", - "sidebarDepth": 2, - "editLink": true, - "editLinkText": "Edit this page", - "lastUpdated": true, - "lastUpdatedText": "Last Updated", - "contributors": true, - "contributorsText": "Contributors", - "notFound": [ - "There's nothing here.", - "How did we get here?", - "That's a Four-Oh-Four.", - "Looks like we've got some broken links." - ], - "backToHome": "Take me home", - "openInNewWindow": "open in new window", - "toggleDarkMode": "toggle dark mode", - "toggleSidebar": "toggle sidebar" -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updateThemeData) { - __VUE_HMR_RUNTIME__.updateThemeData(themeData) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ themeData }) => { - __VUE_HMR_RUNTIME__.updateThemeData(themeData) - }) -} diff --git a/docs/.vuepress/.temp/pages/404.html.js b/docs/.vuepress/.temp/pages/404.html.js deleted file mode 100644 index 09dc53f..0000000 --- a/docs/.vuepress/.temp/pages/404.html.js +++ /dev/null @@ -1,26 +0,0 @@ -export const data = { - "key": "v-3706649a", - "path": "/404.html", - "title": "", - "lang": "en-US", - "frontmatter": { - "layout": "404" - }, - "excerpt": "", - "headers": [], - "git": {}, - "filePathRelative": null -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/404.html.vue b/docs/.vuepress/.temp/pages/404.html.vue deleted file mode 100644 index cc340bc..0000000 --- a/docs/.vuepress/.temp/pages/404.html.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/.vuepress/.temp/pages/dev/index.html.js b/docs/.vuepress/.temp/pages/dev/index.html.js deleted file mode 100644 index 4281b8b..0000000 --- a/docs/.vuepress/.temp/pages/dev/index.html.js +++ /dev/null @@ -1,65 +0,0 @@ -export const data = { - "key": "v-7445cd33", - "path": "/dev/", - "title": "开发指南", - "lang": "en-US", - "frontmatter": { - "sidebar": "auto" - }, - "excerpt": "", - "headers": [ - { - "level": 2, - "title": "基本概念", - "slug": "基本概念", - "children": [] - }, - { - "level": 2, - "title": "快速上手", - "slug": "快速上手", - "children": [] - }, - { - "level": 2, - "title": "类的方法与成员变量", - "slug": "类的方法与成员变量", - "children": [] - }, - { - "level": 2, - "title": "方法与变量的定义", - "slug": "方法与变量的定义", - "children": [] - } - ], - "git": { - "updatedTime": 1645018969000, - "contributors": [ - { - "name": "felinae98", - "email": "731499577@qq.com", - "commits": 4 - }, - { - "name": "hemengyang", - "email": "hmy0119@gmail.com", - "commits": 1 - } - ] - }, - "filePathRelative": "dev/README.md" -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/dev/index.html.vue b/docs/.vuepress/.temp/pages/dev/index.html.vue deleted file mode 100644 index 8d6f9e2..0000000 --- a/docs/.vuepress/.temp/pages/dev/index.html.vue +++ /dev/null @@ -1,78 +0,0 @@ - diff --git a/docs/.vuepress/.temp/pages/index.html.js b/docs/.vuepress/.temp/pages/index.html.js deleted file mode 100644 index badb334..0000000 --- a/docs/.vuepress/.temp/pages/index.html.js +++ /dev/null @@ -1,59 +0,0 @@ -export const data = { - "key": "v-8daa1a0e", - "path": "/", - "title": "", - "lang": "en-US", - "frontmatter": { - "home": true, - "heroText": "Nonebot Bison", - "tagline": "本bot励志做全泰拉骑车最快的信使", - "actionText": "快速部署", - "actionLink": "/usage/", - "features": [ - { - "title": "拓展性强", - "details": "没有自己想要的网站?只要简单的爬虫知识就可以给它适配一个新的网站" - }, - { - "title": "通用,强大", - "details": "社交媒体?网站更新?游戏开服?只要能爬就都能推,还支持自定义过滤" - }, - { - "title": "后台管理", - "details": "提供后台管理页面,简单快捷修改配置" - } - ], - "footer": "MIT Licensed" - }, - "excerpt": "", - "headers": [], - "git": { - "updatedTime": 1644411914000, - "contributors": [ - { - "name": "felinae98", - "email": "731499577@qq.com", - "commits": 7 - }, - { - "name": "hemengyang", - "email": "hmy0119@gmail.com", - "commits": 1 - } - ] - }, - "filePathRelative": "README.md" -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/index.html.vue b/docs/.vuepress/.temp/pages/index.html.vue deleted file mode 100644 index cc340bc..0000000 --- a/docs/.vuepress/.temp/pages/index.html.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/docs/.vuepress/.temp/pages/usage/index.html.js b/docs/.vuepress/.temp/pages/usage/index.html.js deleted file mode 100644 index 50a4935..0000000 --- a/docs/.vuepress/.temp/pages/usage/index.html.js +++ /dev/null @@ -1,101 +0,0 @@ -export const data = { - "key": "v-d0736a32", - "path": "/usage/", - "title": "部署和使用", - "lang": "en-US", - "frontmatter": { - "sidebar": "auto" - }, - "excerpt": "", - "headers": [ - { - "level": 2, - "title": "部署", - "slug": "部署", - "children": [ - { - "level": 3, - "title": "作为 Bot 使用", - "slug": "作为-bot-使用", - "children": [] - }, - { - "level": 3, - "title": "作为插件使用", - "slug": "作为插件使用", - "children": [] - }, - { - "level": 3, - "title": "自动安装", - "slug": "自动安装", - "children": [] - } - ] - }, - { - "level": 2, - "title": "配置", - "slug": "配置", - "children": [] - }, - { - "level": 2, - "title": "使用", - "slug": "使用", - "children": [ - { - "level": 3, - "title": "命令", - "slug": "命令", - "children": [] - }, - { - "level": 3, - "title": "所支持平台的 uid", - "slug": "所支持平台的-uid", - "children": [] - } - ] - } - ], - "git": { - "updatedTime": 1646929699000, - "contributors": [ - { - "name": "felinae98", - "email": "731499577@qq.com", - "commits": 12 - }, - { - "name": "Azide", - "email": "rukuy@qq.com", - "commits": 2 - }, - { - "name": "pre-commit-ci[bot]", - "email": "66853113+pre-commit-ci[bot]@users.noreply.github.com", - "commits": 2 - }, - { - "name": "hemengyang", - "email": "hmy0119@gmail.com", - "commits": 1 - } - ] - }, - "filePathRelative": "usage/README.md" -} - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/usage/index.html.vue b/docs/.vuepress/.temp/pages/usage/index.html.vue deleted file mode 100644 index d67c65a..0000000 --- a/docs/.vuepress/.temp/pages/usage/index.html.vue +++ /dev/null @@ -1,181 +0,0 @@ - diff --git a/docs/.vuepress/.temp/styles/index.scss b/docs/.vuepress/.temp/styles/index.scss deleted file mode 100644 index e69de29..0000000 diff --git a/docs/.vuepress/.temp/styles/palette.scss b/docs/.vuepress/.temp/styles/palette.scss deleted file mode 100644 index e69de29..0000000 diff --git a/docs/.vuepress/.temp/vite-root/index.html b/docs/.vuepress/.temp/vite-root/index.html deleted file mode 100644 index 459371d..0000000 --- a/docs/.vuepress/.temp/vite-root/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - -
- - - diff --git a/venv_test/Scripts/Activate.ps1 b/venv_test/Scripts/Activate.ps1 deleted file mode 100644 index b840595..0000000 --- a/venv_test/Scripts/Activate.ps1 +++ /dev/null @@ -1,419 +0,0 @@ -<# -.Synopsis -Activate a Python virtual environment for the current PowerShell session. - -.Description -Pushes the python executable for a virtual environment to the front of the -$Env:PATH environment variable and sets the prompt to signify that you are -in a Python virtual environment. Makes use of the command line switches as -well as the `pyvenv.cfg` file values present in the virtual environment. - -.Parameter VenvDir -Path to the directory that contains the virtual environment to activate. The -default value for this is the parent of the directory that the Activate.ps1 -script is located within. - -.Parameter Prompt -The prompt prefix to display when this virtual environment is activated. By -default, this prompt is the name of the virtual environment folder (VenvDir) -surrounded by parentheses and followed by a single space (ie. '(.venv) '). - -.Example -Activate.ps1 -Activates the Python virtual environment that contains the Activate.ps1 script. - -.Example -Activate.ps1 -Verbose -Activates the Python virtual environment that contains the Activate.ps1 script, -and shows extra information about the activation as it executes. - -.Example -Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv -Activates the Python virtual environment located in the specified location. - -.Example -Activate.ps1 -Prompt "MyPython" -Activates the Python virtual environment that contains the Activate.ps1 script, -and prefixes the current prompt with the specified string (surrounded in -parentheses) while the virtual environment is active. - -.Notes -On Windows, it may be required to enable this Activate.ps1 script by setting the -execution policy for the user. You can do this by issuing the following PowerShell -command: - -PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser - -For more information on Execution Policies: -https://go.microsoft.com/fwlink/?LinkID=135170 - -#> -Param( - [Parameter(Mandatory = $false)] - [String] - $VenvDir, - [Parameter(Mandatory = $false)] - [String] - $Prompt -) - -<# Function declarations --------------------------------------------------- #> - -<# -.Synopsis -Remove all shell session elements added by the Activate script, including the -addition of the virtual environment's Python executable from the beginning of -the PATH variable. - -.Parameter NonDestructive -If present, do not remove this function from the global namespace for the -session. - -#> -function global:deactivate ([switch]$NonDestructive) { - # Revert to original values - - # The prior prompt: - if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { - Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt - Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT - } - - # The prior PYTHONHOME: - if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { - Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME - Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME - } - - # The prior PATH: - if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { - Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH - Remove-Item -Path Env:_OLD_VIRTUAL_PATH - } - - # Just remove the VIRTUAL_ENV altogether: - if (Test-Path -Path Env:VIRTUAL_ENV) { - Remove-Item -Path env:VIRTUAL_ENV - } - - # Just remove VIRTUAL_ENV_PROMPT altogether. - if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { - Remove-Item -Path env:VIRTUAL_ENV_PROMPT - } - - # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: - if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { - Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force - } - - # Leave deactivate function in the global namespace if requested: - if (-not $NonDestructive) { - Remove-Item -Path function:deactivate - } -} - -<# -.Description -Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the -given folder, and returns them in a map. - -For each line in the pyvenv.cfg file, if that line can be parsed into exactly -two strings separated by `=` (with any amount of whitespace surrounding the =) -then it is considered a `key = value` line. The left hand string is the key, -the right hand is the value. - -If the value starts with a `'` or a `"` then the first and last character is -stripped from the value before being captured. - -.Parameter ConfigDir -Path to the directory that contains the `pyvenv.cfg` file. -#> -function Get-PyVenvConfig( - [String] - $ConfigDir -) { - Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" - - # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). - $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue - - # An empty map will be returned if no config file is found. - $pyvenvConfig = @{ } - - if ($pyvenvConfigPath) { - - Write-Verbose "File exists, parse `key = value` lines" - $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath - - $pyvenvConfigContent | ForEach-Object { - $keyval = $PSItem -split "\s*=\s*", 2 - if ($keyval[0] -and $keyval[1]) { - $val = $keyval[1] - - # Remove extraneous quotations around a string value. - if ("'""".Contains($val.Substring(0, 1))) { - $val = $val.Substring(1, $val.Length - 2) - } - - $pyvenvConfig[$keyval[0]] = $val - Write-Verbose "Adding Key: '$($keyval[0])'='$val'" - } - } - } - return $pyvenvConfig -} - - -<# Begin Activate script --------------------------------------------------- #> - -# Determine the containing directory of this script -$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition -$VenvExecDir = Get-Item -Path $VenvExecPath - -Write-Verbose "Activation script is located in path: '$VenvExecPath'" -Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" -Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" - -# Set values required in priority: CmdLine, ConfigFile, Default -# First, get the location of the virtual environment, it might not be -# VenvExecDir if specified on the command line. -if ($VenvDir) { - Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" -} -else { - Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." - $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") - Write-Verbose "VenvDir=$VenvDir" -} - -# Next, read the `pyvenv.cfg` file to determine any required value such -# as `prompt`. -$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir - -# Next, set the prompt from the command line, or the config file, or -# just use the name of the virtual environment folder. -if ($Prompt) { - Write-Verbose "Prompt specified as argument, using '$Prompt'" -} -else { - Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" - if ($pyvenvCfg -and $pyvenvCfg['prompt']) { - Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" - $Prompt = $pyvenvCfg['prompt']; - } - else { - Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)" - Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" - $Prompt = Split-Path -Path $venvDir -Leaf - } -} - -Write-Verbose "Prompt = '$Prompt'" -Write-Verbose "VenvDir='$VenvDir'" - -# Deactivate any currently active virtual environment, but leave the -# deactivate function in place. -deactivate -nondestructive - -# Now set the environment variable VIRTUAL_ENV, used by many tools to determine -# that there is an activated venv. -$env:VIRTUAL_ENV = $VenvDir - -if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { - - Write-Verbose "Setting prompt to '$Prompt'" - - # Set the prompt to include the env name - # Make sure _OLD_VIRTUAL_PROMPT is global - function global:_OLD_VIRTUAL_PROMPT { "" } - Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT - New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt - - function global:prompt { - Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " - _OLD_VIRTUAL_PROMPT - } - $env:VIRTUAL_ENV_PROMPT = $Prompt -} - -# Clear PYTHONHOME -if (Test-Path -Path Env:PYTHONHOME) { - Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME - Remove-Item -Path Env:PYTHONHOME -} - -# Add the venv to the PATH -Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH -$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" - -# SIG # Begin signature block -# MIIfnwYJKoZIhvcNAQcCoIIfkDCCH4wCAQExDzANBglghkgBZQMEAgEFADB5Bgor -# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBnL745ElCYk8vk -# dBtMuQhLeWJ3ZGfzKW4DHCYzAn+QB6CCDi8wggawMIIEmKADAgECAhAIrUCyYNKc -# TJ9ezam9k67ZMA0GCSqGSIb3DQEBDAUAMGIxCzAJBgNVBAYTAlVTMRUwEwYDVQQK -# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xITAfBgNV -# BAMTGERpZ2lDZXJ0IFRydXN0ZWQgUm9vdCBHNDAeFw0yMTA0MjkwMDAwMDBaFw0z -# NjA0MjgyMzU5NTlaMGkxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwg -# SW5jLjFBMD8GA1UEAxM4RGlnaUNlcnQgVHJ1c3RlZCBHNCBDb2RlIFNpZ25pbmcg -# UlNBNDA5NiBTSEEzODQgMjAyMSBDQTEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw -# ggIKAoICAQDVtC9C0CiteLdd1TlZG7GIQvUzjOs9gZdwxbvEhSYwn6SOaNhc9es0 -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WMyIvIjay -# S6JKldj1po5SMYIChjCCAoICAQEwgYYwcjELMAkGA1UEBhMCVVMxFTATBgNVBAoT -# DERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTExMC8GA1UE -# AxMoRGlnaUNlcnQgU0hBMiBBc3N1cmVkIElEIFRpbWVzdGFtcGluZyBDQQIQDUJK -# 4L46iP9gQCHOFADw3TANBglghkgBZQMEAgEFAKCB0TAaBgkqhkiG9w0BCQMxDQYL -# KoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIyMDExNzE0MjQyN1owKwYLKoZI -# hvcNAQkQAgwxHDAaMBgwFgQU4deCqOGRvu9ryhaRtaq0lKYkm/MwLwYJKoZIhvcN -# AQkEMSIEIEisVoLYacgzAIEwW38XeItPgmJxlcpLtbpVrvF4nQLgMDcGCyqGSIb3 -# DQEJEAIvMSgwJjAkMCIEILMQkAa8CtmDB5FXKeBEA0Fcg+MpK2FPJpZMjTVx7PWp -# MA0GCSqGSIb3DQEBAQUABIIBAETHhyD4SMqK76a6HhqOY7FJzkFOhj2f3q+bsWnJ -# l0/m++gC94THTdZe+PoW3PIR+46C1uBPwBgfcoo3guZDzK79g3xNPIO8VlRihEQN -# KFIXn1qx+Lzs98mqd2JdXfnr1kFoZkseiBnRpG0H1tVIeiL0S5R+sUzZS/lvQtfl -# aqh75Yc4vZQJ3q7Vsd01Flkrvi+BCoPZxo7szKlCkVlT+nZsc2n6MeTDYVdxT3dO -# PLaWrEqkLLK4FDpG5+yiCqSOQ4fhLljtUMP9CCiISTjg92O3a9vYulm6tdt25JHj -# yob3QE/n711GqaiGHOuEGuCZoJGn7sTxjwHk5CEzugadWhU= -# SIG # End signature block diff --git a/venv_test/Scripts/activate b/venv_test/Scripts/activate deleted file mode 100644 index 411eb13..0000000 --- a/venv_test/Scripts/activate +++ /dev/null @@ -1,69 +0,0 @@ -# This file must be used with "source bin/activate" *from bash* -# you cannot run it directly - -deactivate () { - # reset old environment variables - if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then - PATH="${_OLD_VIRTUAL_PATH:-}" - export PATH - unset _OLD_VIRTUAL_PATH - fi - if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then - PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" - export PYTHONHOME - unset _OLD_VIRTUAL_PYTHONHOME - fi - - # This should detect bash and zsh, which have a hash command that must - # be called to get it to forget past commands. Without forgetting - # past commands the $PATH changes we made may not be respected - if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then - hash -r 2> /dev/null - fi - - if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then - PS1="${_OLD_VIRTUAL_PS1:-}" - export PS1 - unset _OLD_VIRTUAL_PS1 - fi - - unset VIRTUAL_ENV - unset VIRTUAL_ENV_PROMPT - if [ ! "${1:-}" = "nondestructive" ] ; then - # Self destruct! - unset -f deactivate - fi -} - -# unset irrelevant variables -deactivate nondestructive - -VIRTUAL_ENV="E:\Azide\nonebot\nonebot-bison\venv_test" -export VIRTUAL_ENV - -_OLD_VIRTUAL_PATH="$PATH" -PATH="$VIRTUAL_ENV/Scripts:$PATH" -export PATH - -# unset PYTHONHOME if set -# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) -# could use `if (set -u; : $PYTHONHOME) ;` in bash -if [ -n "${PYTHONHOME:-}" ] ; then - _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" - unset PYTHONHOME -fi - -if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then - _OLD_VIRTUAL_PS1="${PS1:-}" - PS1="(venv_test) ${PS1:-}" - export PS1 - VIRTUAL_ENV_PROMPT="(venv_test) " - export VIRTUAL_ENV_PROMPT -fi - -# This should detect bash and zsh, which have a hash command that must -# be called to get it to forget past commands. Without forgetting -# past commands the $PATH changes we made may not be respected -if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then - hash -r 2> /dev/null -fi diff --git a/venv_test/Scripts/activate.bat b/venv_test/Scripts/activate.bat deleted file mode 100644 index d6f8c88..0000000 --- a/venv_test/Scripts/activate.bat +++ /dev/null @@ -1,34 +0,0 @@ -@echo off - -rem This file is UTF-8 encoded, so we need to update the current code page while executing it -for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do ( - set _OLD_CODEPAGE=%%a -) -if defined _OLD_CODEPAGE ( - "%SystemRoot%\System32\chcp.com" 65001 > nul -) - -set VIRTUAL_ENV=E:\Azide\nonebot\nonebot-bison\venv_test - -if not defined PROMPT set PROMPT=$P$G - -if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT% -if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME% - -set _OLD_VIRTUAL_PROMPT=%PROMPT% -set PROMPT=(venv_test) %PROMPT% - -if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME% -set PYTHONHOME= - -if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH% -if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH% - -set PATH=%VIRTUAL_ENV%\Scripts;%PATH% -set VIRTUAL_ENV_PROMPT=(venv_test) - -:END -if defined _OLD_CODEPAGE ( - "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul - set _OLD_CODEPAGE= -) diff --git a/venv_test/Scripts/deactivate.bat b/venv_test/Scripts/deactivate.bat deleted file mode 100644 index 62a39a7..0000000 --- a/venv_test/Scripts/deactivate.bat +++ /dev/null @@ -1,22 +0,0 @@ -@echo off - -if defined _OLD_VIRTUAL_PROMPT ( - set "PROMPT=%_OLD_VIRTUAL_PROMPT%" -) -set _OLD_VIRTUAL_PROMPT= - -if defined _OLD_VIRTUAL_PYTHONHOME ( - set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" - set _OLD_VIRTUAL_PYTHONHOME= -) - -if defined _OLD_VIRTUAL_PATH ( - set "PATH=%_OLD_VIRTUAL_PATH%" -) - -set _OLD_VIRTUAL_PATH= - -set VIRTUAL_ENV= -set VIRTUAL_ENV_PROMPT= - -:END diff --git a/venv_test/Scripts/pip.exe b/venv_test/Scripts/pip.exe deleted file mode 100644 index 894b68f..0000000 Binary files a/venv_test/Scripts/pip.exe and /dev/null differ diff --git a/venv_test/Scripts/pip3.10.exe b/venv_test/Scripts/pip3.10.exe deleted file mode 100644 index 894b68f..0000000 Binary files a/venv_test/Scripts/pip3.10.exe and /dev/null differ diff --git a/venv_test/Scripts/pip3.exe b/venv_test/Scripts/pip3.exe deleted file mode 100644 index 894b68f..0000000 Binary files a/venv_test/Scripts/pip3.exe and /dev/null differ diff --git a/venv_test/Scripts/python.exe b/venv_test/Scripts/python.exe deleted file mode 100644 index 5e578f9..0000000 Binary files a/venv_test/Scripts/python.exe and /dev/null differ diff --git a/venv_test/Scripts/pythonw.exe b/venv_test/Scripts/pythonw.exe deleted file mode 100644 index df036b8..0000000 Binary files a/venv_test/Scripts/pythonw.exe and /dev/null differ diff --git a/venv_test/pyvenv.cfg b/venv_test/pyvenv.cfg deleted file mode 100644 index 3355ae6..0000000 --- a/venv_test/pyvenv.cfg +++ /dev/null @@ -1,3 +0,0 @@ -home = C:\Python310 -include-system-site-packages = false -version = 3.10.2