Skip to content

Commit

Permalink
Adopt the src layout and rename to outlines-core
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Aug 15, 2024
1 parent 2087e6a commit b29285b
Show file tree
Hide file tree
Showing 34 changed files with 73 additions and 1,381 deletions.
8 changes: 4 additions & 4 deletions .github/scripts/build_sdist_and_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ python -m build
mkdir -p test-sdist
cd test-sdist
python -m venv venv-sdist
venv-sdist/bin/python -m pip install ../dist/outlines-*.tar.gz
venv-sdist/bin/python -c "import outlines"
venv-sdist/bin/python -m pip install ../dist/outlines_core-*.tar.gz
venv-sdist/bin/python -c "import outlines_core"
cd ..

# Check wheel install and imports
mkdir -p test-wheel
cd test-wheel
python -m venv venv-wheel
venv-wheel/bin/python -m pip install ../dist/outlines-*.whl
venv-wheel/bin/python -c "import outlines"
venv-wheel/bin/python -m pip install ../dist/outlines_core-*.whl
venv-wheel/bin/python -c "import outlines_core"
cd ..
36 changes: 0 additions & 36 deletions .github/workflows/release_docker.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: ./.github/scripts/build_sdist_and_wheel.sh
- name: Check that the package version matches the Release name
run: |
grep -Rq "^Version: ${GITHUB_REF:10}$" outlines.egg-info/PKG-INFO
grep -Rq "^Version: ${GITHUB_REF:10}$" outlines_core.egg-info/PKG-INFO
- name: Publish to PyPi
uses: pypa/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
pip install .[test]
- name: Run tests
run: |
pytest --cov=outlines
pytest --cov=outlines-core
- name: Upload coverage data
uses: actions/upload-artifact@v3
with:
Expand Down
17 changes: 0 additions & 17 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit b29285b

Please sign in to comment.