Skip to content
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

Testing uv instead of using pip/poetry #407

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
beb0f7d
Testing uv instead of using pip
tusharbana-ansys Jan 12, 2025
afdd789
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
e5b7f54
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
14680cd
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
daae829
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
e0ac887
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
3dc4de4
Testing uv instead of pip
tusharbana-ansys Jan 12, 2025
42c0e5e
Test - Adding uv to source code
tusharbana-ansys Jan 12, 2025
2e7a490
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 12, 2025
3253307
revert CI/CD
tusharbana-ansys Jan 14, 2025
1792367
minor fix
tusharbana-ansys Jan 14, 2025
71bc786
Update Makefile
tusharbana-ansys Jan 15, 2025
e357c78
Update Makefile
tusharbana-ansys Jan 15, 2025
080d50c
Update Makefile
tusharbana-ansys Jan 15, 2025
3e016a0
Update Makefile
tusharbana-ansys Jan 15, 2025
938782a
Update Makefile
tusharbana-ansys Jan 15, 2025
c0621c6
Changes
tusharbana-ansys Jan 15, 2025
4e1aa27
changes
tusharbana-ansys Jan 15, 2025
e1d8755
minor
tusharbana-ansys Jan 15, 2025
6ea3c28
Merge branch 'main' into test-uv
RobPasMue Jan 16, 2025
117921f
UV fixes
tusharbana-ansys Jan 23, 2025
5ade5d4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2025
379aff5
uv fixes
tusharbana-ansys Jan 23, 2025
4a7f1d0
uv fixes
tusharbana-ansys Jan 23, 2025
b45e7c1
uv fixes
tusharbana-ansys Jan 23, 2025
e51f2e4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jan 23, 2025
ad2c4f2
uv respects system python environments
tusharbana-ansys Jan 23, 2025
49e480c
Merge branch 'test-uv' of https://github.com/ansys/python-installer-q…
tusharbana-ansys Jan 23, 2025
1ead878
uv respects system python environments
tusharbana-ansys Jan 23, 2025
0b16c00
uv fixes
tusharbana-ansys Jan 23, 2025
d89d881
uv fixes
tusharbana-ansys Jan 23, 2025
d595a4a
updates
tusharbana-ansys Jan 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changes
tusharbana-ansys committed Jan 15, 2025
commit 4e1aa27539dc5f56bbd1e428d6b39eb6af862715
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,40 +1,34 @@
# Simple makefile to simplify repetitive build env management tasks under posix
.PHONY: install tests doc build clean fresh-build
.PHONY: setup install tests doc build clean fresh-build

install:
setup:
@echo "Installing uv..."
pip install -U pip uv

install: setup
@echo "Installing..."
uv pip install -e .[freeze]
@echo "Installation complete."

tests:
@echo "Installing uv..."
pip install -U pip uv
tests: setup
@echo "Installing test dependencies..."
uv pip install -e .[tests]
@echo "Running tests..."
uv run pytest
@echo "Tests complete."

doc:
@echo "Installing uv..."
pip install -U pip uv
doc: setup
@echo "Installing documentation dependencies..."
uv pip install -e .[doc]
@echo "Building documentation..."
cd doc && make clean && make html && cd ..
@echo "Documentation complete."

build:
@echo "Installing uv..."
pip install -U pip uv
build: setup
@echo "Freezing using pyinstaller"
uv run pyinstaller frozen.spec

clean:
@echo "Installing uv..."
pip install -U pip uv
@echo "Cleaning up build files..."
rm -rf build dist

7 changes: 2 additions & 5 deletions make.bat
Original file line number Diff line number Diff line change
@@ -11,24 +11,23 @@ if "%1" == "build" goto build
if "%1" == "clean" goto clean
if "%1" == "fresh-build" goto fresh-build

pip install -U pip uv

tusharbana-ansys marked this conversation as resolved.
Show resolved Hide resolved
:install
Echo ^>^>^> Installing...
pip install -U pip uv
uv pip install -e .[freeze]
Echo ^>^>^> Installation complete.
goto end

:tests
Echo ^>^>^> Installing test dependencies...
pip install -U pip uv
uv pip install -e .[tests]
Echo ^>^>^> Running tests...
uv run pytest
goto end

:doc
Echo ^>^>^> Installing documentation dependencies...
pip install -U pip uv
uv pip install -e .[doc]
Echo ^>^>^> Building documentation...
chdir /d doc
@@ -40,7 +39,6 @@ goto end

:build
Echo ^>^>^> Freezing using pyinstaller
pip install -U pip uv
uv run pyinstaller frozen.spec
goto end

@@ -55,7 +53,6 @@ Echo ^>^>^> Cleaning up build files...
rmdir /s /q build > /NUL 2>&1
rmdir /s /q dist > /NUL 2>&1
Echo ^>^>^> Freezing using pyinstaller
pip install -U pip uv
uv run pyinstaller frozen.spec
goto end