Skip to content

Commit

Permalink
fix: add missing dependency. add package smoketest
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Jan 4, 2024
1 parent f866aaa commit 61d94a9
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,25 @@ jobs:
- name: Run mypy
run: |
make type-check
pkg-smoke-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4.5.0
with:
python-version: "3.10"
cache: pip
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Install built wheel
run: |
python -m pip install dist/*.whl
- name: Generate an image
run: |
imagine fruit --steps 10 --size 496 --seed 1
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ check-fast: ## Run autoformatter, linter, typechecker, and fast tests
@make type-check
@make test-fast

build-pkg: ## Build the package
python setup.py sdist bdist_wheel
python setup.py bdist_wheel --plat-name=win-amd64

deploy: ## Deploy the package to pypi.org
pip install twine wheel
-git tag $$(python setup.py -V)
git push --tags
rm -rf dist
python setup.py bdist_wheel
python setup.py bdist_wheel --plat-name=win-amd64
make build-pkg
#python setup.py sdist
@twine upload --verbose dist/* -u __token__;
rm -rf build
Expand Down
4 changes: 3 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ starlette==0.32.0.post1
sympy==1.12
# via torch
termcolor==2.4.0
# via pytest-sugar
# via
# imaginAIry (setup.py)
# pytest-sugar
timm==0.9.12
# via
# imaginAIry (setup.py)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def get_git_revision_hash() -> str:
"safetensors>=0.4.0",
# scipy is a sub dependency but v1.11 doesn't support python 3.8. https://docs.scipy.org/doc/scipy/dev/toolchain.html#numpy
"scipy<1.11",
"termcolor",
"timm>=0.4.12,!=0.9.0,!=0.9.1", # for vendored blip
"torchdiffeq>=0.2.0",
"torchvision>=0.13.1",
Expand Down

0 comments on commit 61d94a9

Please sign in to comment.