Skip to content

Commit

Permalink
Fix toml install, make sure installer test works
Browse files Browse the repository at this point in the history
  • Loading branch information
IanCa committed Feb 5, 2024
1 parent c27ce63 commit 8a6223c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/test_installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,20 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.7", "3.10"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Install package
- name: Install package directly from the current repository
run: |
pip install .
pip install git+https://github.com/${{ github.repository }}@develop
- name: Run post-installation test
run: |
python -c "import hed"
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 8a6223c

Please sign in to comment.