diff --git a/countryinfo/data/albania.json b/countryinfo/data/albania.json index f03933b..1bd6b2e 100644 --- a/countryinfo/data/albania.json +++ b/countryinfo/data/albania.json @@ -1 +1,25 @@ -{"name":"Albania","altSpellings":["AL","Shqipëri","Shqipëria","Shqipnia"],"area":28748,"borders":["MNE","GRC","MKD","KOS"],"callingCodes":["355"],"capital":"Tirana","capital_latlng":[41.326873,19.818791],"currencies":["ALL"],"demonym":"Albanian","flag":"http://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg","geoJSON":{"type":"FeatureCollection","features":[{"type":"Feature","id":"ALB","properties":{"name":"Albania"},"geometry":{"type":"Polygon","coordinates":[[[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855404]]]}}]},"ISO":{"alpha2":"AL","alpha3":"ALB"},"languages":["sq"],"latlng":[41,20],"nativeName":"Shqipëria","population":2895947,"provinces":["Berat","Bulqize","Delvine","Devoll (Bilisht)","Diber (Peshkopi)","Durres","Elbasan","Fier","Gjirokaster","Gramsh","Has (Krume)","Kavaje","Kolonje (Erseke)","Korce","Kruje","Kucove","Kukes","Kurbin","Lezhe","Librazhd","Lushnje","Malesi e Madhe (Koplik)","Mallakaster (Ballsh)","Mat (Burrel)","Mirdite (Rreshen)","Peqin","Permet","Pogradec","Puke","Sarande","Shkoder","Skrapar (Corovode)","Tepelene","Tirane (Tirana)","Tirane (Tirana)","Tropoje (Bajram Curri)","Vlore"],"region":"Europe","subregion":"Southern Europe","timezones":["UTC+01:00"],"tld":[".al"],"translations":{"de":"Albanien","es":"Albania","fr":"Albanie","ja":"アルバニア","it":"Albania"},"wiki":"http://en.wikipedia.org/wiki/albania"} \ No newline at end of file +{"name":"Albania", + "altSpellings":["AL","Shqipëri","Shqipëria","Shqipnia"], + "area":28748, + "borders":["MNE","GRC","MKD","KOS"], + "callingCodes":["355"], + "capital":"Tirana", + "capital_latlng":[41.326873,19.818791], + "currencies":["ALL"], + "demonym":"Albanian", + "flag":"http://upload.wikimedia.org/wikipedia/commons/3/36/Flag_of_Albania.svg", + "geoJSON":{"type":"FeatureCollection", + "features":[{"type":"Feature","id":"ALB", + "properties":{"name":"Albania"}, + "geometry":{"type":"Polygon", + "coordinates":[[[20.590247,41.855404],[20.463175,41.515089],[20.605182,41.086226],[21.02004,40.842727],[20.99999,40.580004],[20.674997,40.435],[20.615,40.110007],[20.150016,39.624998],[19.98,39.694993],[19.960002,39.915006],[19.406082,40.250773],[19.319059,40.72723],[19.40355,41.409566],[19.540027,41.719986],[19.371769,41.877548],[19.304486,42.195745],[19.738051,42.688247],[19.801613,42.500093],[20.0707,42.58863],[20.283755,42.32026],[20.52295,42.21787],[20.590247,41.855404]]]}}]}, + "ISO":{"alpha2":"AL","alpha3":"ALB"}, + "languages":["sq"],"latlng":[41,20], + "nativeName":"Shqipëria", + "population":2895947, + "provinces":["Berat","Bulqize","Delvine","Devoll (Bilisht)","Diber (Peshkopi)","Durres","Elbasan","Fier","Gjirokaster","Gramsh","Has (Krume)","Kavaje","Kolonje (Erseke)","Korce","Kruje","Kucove","Kukes","Kurbin","Lezhe","Librazhd","Lushnje","Malesi e Madhe (Koplik)","Mallakaster (Ballsh)","Mat (Burrel)","Mirdite (Rreshen)","Peqin","Permet","Pogradec","Puke","Sarande","Shkoder","Skrapar (Corovode)","Tepelene","Tirane (Tirana)","Tirane (Tirana)","Tropoje (Bajram Curri)","Vlore"], + "region":"Europe","subregion":"Southern Europe", + "timezones":["UTC+01:00"], + "tld":[".al"], + "translations":{"de":"Albanien","es":"Albania","fr":"Albanie","ja":"アルバニア","it":"Albania"}, + "wiki":"http://en.wikipedia.org/wiki/albania"} \ No newline at end of file diff --git a/countryinfo/data/italy.json b/countryinfo/data/italy.json index 4974ab5..0eba03a 100644 --- a/countryinfo/data/italy.json +++ b/countryinfo/data/italy.json @@ -1 +1 @@ -{"name":"Italy","altSpellings":["IT","Italian Republic","Repubblica italiana"],"area":301336,"borders":["AUT","FRA","SMR","SVN","CHE","VAT"],"callingCodes":["39"],"capital":"Rome","capital_latlng":[41.89332,12.482932],"currencies":["EUR"],"demonym":"Italian","flag":"","geoJSON":{"type":"FeatureCollection","features":[{"type":"Feature","id":"ITA","properties":{"name":"Italy"},"geometry":{"type":"MultiPolygon","coordinates":[[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]],[[[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559]]]]}}]},"ISO":{"alpha2":"IT","alpha3":"ITA"},"languages":["it"],"latlng":[42.83333333,12.83333333],"nativeName":"Italia","population":60769102,"provinces":["Abruzzo","Basilicata","Calabria","Campania","Emilia-Romagna","Friuli-Venezia Giulia","Lazio","Liguria","Lombardia","Marche","Molise","Piemonte","Puglia","Sardegna","Sicilia","Toscana","Trentino-Alto Adige","Umbria","Valle d'Aosta","Veneto"],"region":"Europe","subregion":"Southern Europe","timezones":["UTC+01:00"],"tld":[".it"],"translations":{"de":"Italien","es":"Italia","fr":"Italie","ja":"イタリア","it":"Italia"},"wiki":"http://en.wikipedia.org/wiki/italy"} \ No newline at end of file +{"name":"Italy","altSpellings":["IT","Italian Republic","Repubblica italiana"],"area":301336,"borders":["AUT","FRA","SMR","SVN","CHE","VAT"],"callingCodes":["39"],"capital":"Rome","capital_latlng":[41.89332,12.482932],"currencies":["EUR"],"demonym":"Italian","flag":"https://upload.wikimedia.org/wikipedia/en/thumb/0/03/Flag_of_Italy.svg/1200px-Flag_of_Italy.svg.png","geoJSON":{"type":"FeatureCollection","features":[{"type":"Feature","id":"ITA","properties":{"name":"Italy"},"geometry":{"type":"MultiPolygon","coordinates":[[[[15.520376,38.231155],[15.160243,37.444046],[15.309898,37.134219],[15.099988,36.619987],[14.335229,36.996631],[13.826733,37.104531],[12.431004,37.61295],[12.570944,38.126381],[13.741156,38.034966],[14.761249,38.143874],[15.520376,38.231155]]],[[[9.210012,41.209991],[9.809975,40.500009],[9.669519,39.177376],[9.214818,39.240473],[8.806936,38.906618],[8.428302,39.171847],[8.388253,40.378311],[8.159998,40.950007],[8.709991,40.899984],[9.210012,41.209991]]],[[[12.376485,46.767559],[13.806475,46.509306],[13.69811,46.016778],[13.93763,45.591016],[13.141606,45.736692],[12.328581,45.381778],[12.383875,44.885374],[12.261453,44.600482],[12.589237,44.091366],[13.526906,43.587727],[14.029821,42.761008],[15.14257,41.95514],[15.926191,41.961315],[16.169897,41.740295],[15.889346,41.541082],[16.785002,41.179606],[17.519169,40.877143],[18.376687,40.355625],[18.480247,40.168866],[18.293385,39.810774],[17.73838,40.277671],[16.869596,40.442235],[16.448743,39.795401],[17.17149,39.4247],[17.052841,38.902871],[16.635088,38.843572],[16.100961,37.985899],[15.684087,37.908849],[15.687963,38.214593],[15.891981,38.750942],[16.109332,38.964547],[15.718814,39.544072],[15.413613,40.048357],[14.998496,40.172949],[14.703268,40.60455],[14.060672,40.786348],[13.627985,41.188287],[12.888082,41.25309],[12.106683,41.704535],[11.191906,42.355425],[10.511948,42.931463],[10.200029,43.920007],[9.702488,44.036279],[8.888946,44.366336],[8.428561,44.231228],[7.850767,43.767148],[7.435185,43.693845],[7.549596,44.127901],[7.007562,44.254767],[6.749955,45.028518],[7.096652,45.333099],[6.802355,45.70858],[6.843593,45.991147],[7.273851,45.776948],[7.755992,45.82449],[8.31663,46.163642],[8.489952,46.005151],[8.966306,46.036932],[9.182882,46.440215],[9.922837,46.314899],[10.363378,46.483571],[10.442701,46.893546],[11.048556,46.751359],[11.164828,46.941579],[12.153088,47.115393],[12.376485,46.767559]]]]}}]},"ISO":{"alpha2":"IT","alpha3":"ITA"},"languages":["it"],"latlng":[42.83333333,12.83333333],"nativeName":"Italia","population":60769102,"provinces":["Abruzzo","Basilicata","Calabria","Campania","Emilia-Romagna","Friuli-Venezia Giulia","Lazio","Liguria","Lombardia","Marche","Molise","Piemonte","Puglia","Sardegna","Sicilia","Toscana","Trentino-Alto Adige","Umbria","Valle d'Aosta","Veneto"],"region":"Europe","subregion":"Southern Europe","timezones":["UTC+01:00"],"tld":[".it"],"translations":{"de":"Italien","es":"Italia","fr":"Italie","ja":"イタリア","it":"Italia"},"wiki":"http://en.wikipedia.org/wiki/italy"} \ No newline at end of file diff --git a/countryinfo/data/jamaica.json b/countryinfo/data/jamaica.json deleted file mode 100644 index 66f5f39..0000000 --- a/countryinfo/data/jamaica.json +++ /dev/null @@ -1 +0,0 @@ -{"name":"Jamaica","altSpellings":["JM"],"area":10991,"borders":[],"callingCodes":["1876"],"capital":"Kingston","capital_latlng":[17.971215,-76.792813],"currencies":["JMD"],"demonym":"Jamaican","flag":"","geoJSON":{"type":"FeatureCollection","features":[{"type":"Feature","id":"JAM","properties":{"name":"Jamaica"},"geometry":{"type":"Polygon","coordinates":[[[-77.569601,18.490525],[-76.896619,18.400867],[-76.365359,18.160701],[-76.199659,17.886867],[-76.902561,17.868238],[-77.206341,17.701116],[-77.766023,17.861597],[-78.337719,18.225968],[-78.217727,18.454533],[-77.797365,18.524218],[-77.569601,18.490525]]]}}]},"ISO":{"alpha2":"JM","alpha3":"JAM"},"languages":["en"],"latlng":[18.25,-77.5],"nativeName":"Jamaica","population":2717991,"provinces":["Clarendon","Hanover","Kingston","Manchester","Portland","Saint Andrew","Saint Ann","Saint Catherine","Saint Elizabeth","Saint James","Saint Mary","Saint Thomas","Trelawny","Westmoreland"],"region":"Americas","subregion":"Caribbean","timezones":["UTC−05:00"],"tld":[".jm"],"translations":{"de":"Jamaika","es":"Jamaica","fr":"Jamaïque","ja":"ジャマイカ","it":"Giamaica"},"wiki":"http://en.wikipedia.org/wiki/jamaica"} \ No newline at end of file diff --git a/countryinfo/data/montenegro.json b/countryinfo/data/montenegro.json new file mode 100644 index 0000000..caff497 --- /dev/null +++ b/countryinfo/data/montenegro.json @@ -0,0 +1,21 @@ +{"name":"Montenegro", + "altSpellings":["ME","Montenegro", "Montenegrin"], + "area":13812, + "borders":["SRB", "ALB", "XKX", "BIH", "HRV"], + "callingCodes":["382"], + "capital":"Podgorica", + "capital_latlng":[42.783333, 19.466667], + "currencies":["EUR"], + "demonym":"Montenegrin", + "flag":"https://upload.wikimedia.org/wikipedia/commons/thumb/6/64/Flag_of_Montenegro.svg/960px-Flag_of_Montenegro.svg.png", + "ISO":{"alpha2":"ME","alpha3":"MNE"}, + "languages":["cnr"], + "latlng":[42.7044223, 19.3957785], + "nativeName":"Crna Gora", + "population":621873, + "region":"Europe", + "subregion":"Eastern Europe", + "timezones":["UTC+01:00"], + "tld":[".me"], + "translations":{"it": "Montenegro", "de":"Montenegro","es":"Montenegro","fr":"Monténégro","ja":"モンテネグロ", "en":"Montenegrin"}, + "wiki":"https://en.wikipedia.org/wiki/Montenegro"} \ No newline at end of file diff --git a/countryinfo/data/serbia.json b/countryinfo/data/serbia.json index 1e0bd42..65ab558 100644 --- a/countryinfo/data/serbia.json +++ b/countryinfo/data/serbia.json @@ -1 +1,22 @@ -{"name":"Serbia","altSpellings":["Srbija","Republic of Serbia","Republika Srbija"],"area":49037,"borders":["HUN","ROU","BGR","MKD","HRV","BIH","MNE","ALB","XKX"],"callingCodes":["381"],"capital":"Belgrade","capital_latlng":[44.817813,20.456897],"currencies":["RSD"],"demonym":"Serbian","flag":"","ISO":{"alpha2":"RS","alpha3":"SRB"},"languages":["rs"],"latlng":[44.1305021,16.4284181],"nativeName":"Srbija","population":7186862,"provinces":["Kolubara","Mačva","Moravica","Pomoravlje","Rasina","Raška","Šumadija","Zlatibor","Bor","Braničevo","Jablanica","Nišava","Pčinja","Pirot","Podunavlje","Toplica","Zaječar","Central Banat","North Bačka","North Banat","South Bačka","South Banat","Srem","West Bačka","Kosovo","Kosovo-Pomoravlje","Kosovska Mitrovica ","Peć","Prizren"],"region":"Europe","subregion":"Eastern Europe","timezones":["UTC+01:00","UTC+02:00"],"tld":[".rs"],"translations":{"de":"Serbien","es":"Serbia","fr":"Serbie","ja":"セルビア","it":"Serbia"},"wiki":"http://en.wikipedia.org/wiki/serbia"} \ No newline at end of file +{"name":"Serbia", + "altSpellings":["RS","Srbija","Republic of Serbia","Republika Srbija"], + "area":49037, + "borders":["HUN","ROU","BGR","MKD","HRV","BIH","MNE","ALB","XKX"], + "callingCodes":["381"], + "capital":"Belgrade", + "capital_latlng":[44.817813,20.456897], + "currencies":["RSD"], + "demonym":"Serbian", + "flag":"https://upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Flag_of_Serbia.svg/1200px-Flag_of_Serbia.svg.png", + "ISO":{"alpha2":"RS","alpha3":"SRB"}, + "languages":["rs"], + "latlng":[44.1305021,16.4284181], + "nativeName":"Srbija", + "population":7186862, + "provinces":["Kolubara","Mačva","Moravica","Pomoravlje","Rasina","Raška","Šumadija","Zlatibor","Bor","Braničevo","Jablanica","Nišava","Pčinja","Pirot","Podunavlje","Toplica","Zaječar","Central Banat","North Bačka","North Banat","South Bačka","South Banat","Srem","West Bačka","Kosovo","Kosovo-Pomoravlje","Kosovska Mitrovica ","Peć","Prizren"], + "region":"Europe", + "subregion":"Eastern Europe", + "timezones":["UTC+01:00","UTC+02:00"], + "tld":[".rs"], + "translations":{"de":"Serbien","es":"Serbia","fr":"Serbie","ja":"セルビア","it":"Serbia"}, + "wiki":"http://en.wikipedia.org/wiki/serbia"} \ No newline at end of file diff --git a/ven/Scripts/Activate.ps1 b/ven/Scripts/Activate.ps1 new file mode 100644 index 0000000..f09f7b8 --- /dev/null +++ b/ven/Scripts/Activate.ps1 @@ -0,0 +1,398 @@ +<# +.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 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 virutal 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 + } +} + +# 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 +# MIIcwAYJKoZIhvcNAQcCoIIcsTCCHK0CAQExDzANBglghkgBZQMEAgEFADB5Bgor +# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAwnDYwEHaCQq0n +# 8NAvsN7H7BO7/48rXCNwrg891FS5vaCCC38wggUwMIIEGKADAgECAhAECRgbX9W7 +# ZnVTQ7VvlVAIMA0GCSqGSIb3DQEBCwUAMGUxCzAJBgNVBAYTAlVTMRUwEwYDVQQK +# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xJDAiBgNV +# BAMTG0RpZ2lDZXJ0IEFzc3VyZWQgSUQgUm9vdCBDQTAeFw0xMzEwMjIxMjAwMDBa +# Fw0yODEwMjIxMjAwMDBaMHIxCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2Vy +# dCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xMTAvBgNVBAMTKERpZ2lD +# ZXJ0IFNIQTIgQXNzdXJlZCBJRCBDb2RlI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lQyk4KKy7 +# AEIHi2Rbf06++s+R2qJ5Tzfggs4= +# SIG # End signature block diff --git a/ven/Scripts/activate b/ven/Scripts/activate new file mode 100644 index 0000000..16119bd --- /dev/null +++ b/ven/Scripts/activate @@ -0,0 +1,76 @@ +# 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 + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="C:\Users\Diletta\Documents\GitHub\countryinfo\ven" +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:-}" + if [ "x(ven) " != x ] ; then + PS1="(ven) ${PS1:-}" + else + if [ "`basename \"$VIRTUAL_ENV\"`" = "__" ] ; then + # special case for Aspen magic directories + # see https://aspen.io/ + PS1="[`basename \`dirname \"$VIRTUAL_ENV\"\``] $PS1" + else + PS1="(`basename \"$VIRTUAL_ENV\"`)$PS1" + fi + fi + export PS1 +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 +fi diff --git a/ven/Scripts/activate.bat b/ven/Scripts/activate.bat new file mode 100644 index 0000000..4389067 --- /dev/null +++ b/ven/Scripts/activate.bat @@ -0,0 +1,33 @@ +@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=C:\Users\Diletta\Documents\GitHub\countryinfo\ven + +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=(ven) %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% + +:END +if defined _OLD_CODEPAGE ( + "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul + set _OLD_CODEPAGE= +) diff --git a/ven/Scripts/deactivate.bat b/ven/Scripts/deactivate.bat new file mode 100644 index 0000000..1205c61 --- /dev/null +++ b/ven/Scripts/deactivate.bat @@ -0,0 +1,21 @@ +@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= + +:END diff --git a/ven/Scripts/pip.exe b/ven/Scripts/pip.exe new file mode 100644 index 0000000..9fe1f17 Binary files /dev/null and b/ven/Scripts/pip.exe differ diff --git a/ven/Scripts/pip3.8.exe b/ven/Scripts/pip3.8.exe new file mode 100644 index 0000000..9fe1f17 Binary files /dev/null and b/ven/Scripts/pip3.8.exe differ diff --git a/ven/Scripts/pip3.exe b/ven/Scripts/pip3.exe new file mode 100644 index 0000000..9fe1f17 Binary files /dev/null and b/ven/Scripts/pip3.exe differ diff --git a/ven/Scripts/python.exe b/ven/Scripts/python.exe new file mode 100644 index 0000000..7dad4f8 Binary files /dev/null and b/ven/Scripts/python.exe differ diff --git a/ven/Scripts/pythonw.exe b/ven/Scripts/pythonw.exe new file mode 100644 index 0000000..df52032 Binary files /dev/null and b/ven/Scripts/pythonw.exe differ diff --git a/ven/pyvenv.cfg b/ven/pyvenv.cfg new file mode 100644 index 0000000..3c489a7 --- /dev/null +++ b/ven/pyvenv.cfg @@ -0,0 +1,3 @@ +home = C:\Users\Diletta\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0 +include-system-site-packages = false +version = 3.8.10