Skip to content

Commit

Permalink
Merge pull request #851 from IanCa/develop
Browse files Browse the repository at this point in the history
Fix toml install, make sure installer test works
  • Loading branch information
VisLab authored Feb 5, 2024
2 parents c27ce63 + bf462e2 commit 6338bf5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/test_installer.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
on:
push:
branches: [develop]
branches: ["develop"]
pull_request:
branches: [develop]
branches: ["develop"]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -19,13 +18,27 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies

- name: Create work directory
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
mkdir workdir
echo "WORKDIR=$(pwd)/workdir" >> $GITHUB_OUTPUT
- name: Create and activate virtual environment
run: |
cd $WORKDIR
python -m venv .venv
source .venv/bin/activate
- name: Install package
run: |
pip install .
cd $WORKDIR
source .venv/bin/activate
python -m pip install --upgrade pip
pip install $GITHUB_WORKSPACE
- name: Run post-installation test
run: |
python -c "import hed"
cd $WORKDIR
source .venv/bin/activate
python -c "from hed.models.hed_string import HedString; print('Import test passed.')"
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ versionfile_build = "hed/_version.py"
tag_prefix = ""
parentdir_prefix = "hedtools-"

[tool.setuptools]
packages = ["hed"]

[tool.setuptools.packages.find]
where = [""]
include = ["hed*"]
namespaces = false

[tool.setuptools.package-data]
hed = ["schema/schema_data/*.xml"]
Expand Down

0 comments on commit 6338bf5

Please sign in to comment.