-
Notifications
You must be signed in to change notification settings - Fork 0
Version 0.9.5 #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Version 0.9.5 #95
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
73e753c
minor updates to cache env file
rsgalloway d7e614d
bump version to 0.9.5
rsgalloway a8dc4ad
adds github workflow for running tests
rsgalloway 914dcba
wrapper test should work on windows, do not run cmd tests on windows
rsgalloway 2e74331
make sure pytest is installed
rsgalloway dd0e390
updates resolve_encrypted_environ assertions
rsgalloway 4a2dd5c
skip cmd tests if not on linux
rsgalloway 6cab0ed
update win paths in tests to match env files
rsgalloway b6f2d22
stop changing the path sep on the root path in the env test
rsgalloway 7d59647
only support CAPITALIZED drive letters on windows to avoid path split…
rsgalloway 7c52f6f
disable lowercase drive letter tests
rsgalloway 4f46ba2
fix for windows
rsgalloway 4993472
fixes for cmd wrapper
rsgalloway 8c94df2
fix argv expansion and cmd wrapper
rsgalloway 14e235c
conditional fixes in run_command for windows
rsgalloway 5aea7d9
black formatting
rsgalloway 88232a6
adds make.bat file, smoke test on windows, disable fail-fast tests
rsgalloway b3ce259
fix for workflow file
rsgalloway 31dce43
updates to envstack banner for exit hints
rsgalloway 8506f4c
support --quiet in env shell
rsgalloway fc8bbcb
updates test comments, and make test target commands
rsgalloway fee8aa0
minor readme updates
rsgalloway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| name: tests | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| - run: python -m pip install --upgrade pip | ||
| - run: pip install pytest | ||
| - run: pip install -e . | ||
| - run: pytest tests -v |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,16 @@ | ||
| #!/usr/bin/env envstack | ||
| include: [default] | ||
| all: &all | ||
| ENVPATH: ${CACHE_ROOT}/env:${DEPLOY_ROOT}/env:${ENVPATH} | ||
| PATH: ${CACHE_ROOT}/bin:${DEPLOY_ROOT}/bin:${PATH} | ||
| PYTHONPATH: ${CACHE_ROOT}/lib/python:${DEPLOY_ROOT}/lib/python:${PYTHONPATH} | ||
| ENVPATH: ${CACHE_ROOT}/env:${ENVPATH} | ||
| PATH: ${CACHE_ROOT}/bin:${PATH} | ||
| PYTHONPATH: ${CACHE_ROOT}/lib/python:${PYTHONPATH} | ||
| CACHE_ROOT: ${CACHE_DIR}/${ENV} | ||
| darwin: | ||
| <<: *all | ||
| CACHE_ROOT: ${HOME}/Library/Caches/pipe/${ENV} | ||
| CACHE_DIR: ${HOME}/Library/Caches/pipe | ||
| linux: | ||
| <<: *all | ||
| CACHE_ROOT: ${HOME}/.cache/pipe/${ENV} | ||
| CACHE_DIR: ${HOME}/.cache/pipe | ||
| windows: | ||
| <<: *all | ||
| CACHE_ROOT: ${USERPROFILE}/AppData/Local/pipe/cache/${ENV} | ||
| CACHE_DIR: ${USERPROFILE}/AppData/Local/pipe | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| @echo off | ||
| setlocal EnableExtensions EnableDelayedExpansion | ||
|
|
||
| rem ============================================================================= | ||
| rem Project: EnvStack - Environment Variable Management | ||
| rem make.bat - Windows-friendly Makefile target runner | ||
| rem | ||
| rem Usage: | ||
| rem make.bat -> build | ||
| rem make.bat clean -> remove build artifacts | ||
| rem make.bat test -> run basic envstack shell checks | ||
| rem make.bat dryrun -> simulate installation (dist --dryrun) | ||
| rem make.bat install -> build then dist --force --yes | ||
| rem make.bat help -> show this help | ||
| rem ============================================================================= | ||
|
|
||
| set "BUILD_DIR=build" | ||
| set "ENVPATH=%CD%\env" | ||
| set "ENVSTACK_CMD=envstack" | ||
|
|
||
| set "TARGET=%~1" | ||
| if "%TARGET%"=="" set "TARGET=build" | ||
|
|
||
| if /I "%TARGET%"=="help" goto :help | ||
| if /I "%TARGET%"=="clean" goto :clean | ||
| if /I "%TARGET%"=="build" goto :build | ||
| if /I "%TARGET%"=="all" goto :build | ||
| if /I "%TARGET%"=="test" goto :test | ||
| if /I "%TARGET%"=="dryrun" goto :dryrun | ||
| if /I "%TARGET%"=="install" goto :install | ||
|
|
||
| echo. | ||
| echo Unknown target: "%TARGET%" | ||
| echo. | ||
| goto :help | ||
|
|
||
| :help | ||
| echo Targets: | ||
| echo build - Build artifacts (pip install -r requirements.txt -t %BUILD_DIR%) | ||
| echo clean - Remove build artifacts (%BUILD_DIR%) | ||
| echo test - Basic envstack command checks | ||
| echo dryrun - Simulate installation (dist --dryrun) via envstack | ||
| echo install - Build then install using distman (dist --force --yes) | ||
| echo all - Alias for build | ||
| echo help - Show this help | ||
| echo. | ||
| echo Notes: | ||
| echo - ENVPATH is set to: %ENVPATH% | ||
| echo - Requires: python/pip, envstack, and distman (for dryrun/install) | ||
| exit /b 0 | ||
|
|
||
| :clean | ||
| echo [clean] Removing "%BUILD_DIR%" ... | ||
| if exist "%BUILD_DIR%" ( | ||
| rmdir /s /q "%BUILD_DIR%" | ||
| ) | ||
| exit /b 0 | ||
|
|
||
| :build | ||
| call :clean || exit /b 1 | ||
| echo [build] Installing requirements into "%BUILD_DIR%" ... | ||
| python -m pip install -r requirements.txt -t "%BUILD_DIR%" | ||
| if errorlevel 1 exit /b 1 | ||
| exit /b 0 | ||
|
|
||
| :test | ||
| echo [test] Running envstack checks... | ||
| rem Use a one-liner so ENVPATH applies to the envstack process. | ||
| set "CMD=set ENVPATH=%ENVPATH% ^&^& %ENVSTACK_CMD% -- dir" | ||
| cmd /c "%CMD%" | ||
| if errorlevel 1 exit /b 1 | ||
|
|
||
| set "CMD=set ENVPATH=%ENVPATH% ^&^& %ENVSTACK_CMD% -- where python" | ||
| cmd /c "%CMD%" | ||
| if errorlevel 1 exit /b 1 | ||
|
|
||
| exit /b 0 | ||
|
|
||
| :dryrun | ||
| echo [dryrun] Simulating install via dist --dryrun... | ||
| set "CMD=set ENVPATH=%ENVPATH% ^&^& %ENVSTACK_CMD% -- dist --dryrun" | ||
| cmd /c "%CMD%" | ||
| exit /b %errorlevel% | ||
|
|
||
| :install | ||
| call :build || exit /b 1 | ||
| echo [install] Installing via distman (dist --force --yes)... | ||
| dist --force --yes | ||
| exit /b %errorlevel% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.