Skip to content

Commit

Permalink
Merge pull request #99 from emilydolson/packaging-test
Browse files Browse the repository at this point in the history
Add test recommended in #81
  • Loading branch information
emilydolson authored Jul 9, 2024
2 parents 3cf6a2e + 54dc5fa commit d37a065
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,31 @@ jobs:
name: cibw-sdist
path: dist/*.tar.gz

# Regression test borrowed from https://github.com/mmore500/hstrat/blob/ba7b19d0f0561303b6bf789d5024a323aa5993fc/.github/workflows/ci.yaml#L201
packaging-sdist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: Build sdist
run: |
python3 -m venv env
source env/bin/activate
python3 -m pip install -r requirements.txt
python3 setup.py sdist
tree dist
deactivate
- name: Upgrade pip
run: python3 -m pip install pip --upgrade
- name: Install from sdist
run: python3 -m pip install dist/*.tar.gz
- name: Test install
run: |
find . -type f -name '*.py' -exec rm {} \;
python3 -c "import phylotrackpy; print(phylotrackpy.__version__)"
upload_pypi:
needs: [build_wheels, build_sdist, test]
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include systematics_bindings.cpp
recursive-include Empirical *.hpp
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
cmdclass={"build_ext": build_ext},
zip_safe=False,
python_requires=">=3.7",
packages=['phylotrackpy'],
packages=['phylotrackpy']
)

0 comments on commit d37a065

Please sign in to comment.