Skip to content

Commit

Permalink
Consolidate to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Oct 18, 2024
1 parent c99569f commit b8b8271
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ jobs:
python-version: '3.11'
cache: 'pip'

- name: Install deps
run: |
pip install -r requirements.txt
playwright install


- name: Tests with numba
run: coverage run --source=tsbrowse -m pytest -x tests
Expand All @@ -60,4 +57,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
coveralls --service=github
- name: Install deps
run: |
pip install -r requirements.txt
playwright install
- name: Build wheel
run: python -m build --wheel

- name: Install wheel
run: |
pip install dist/*.whl
python -m tsbrowse --help
44 changes: 43 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
[build-system]
requires = ["setuptools"]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"

[project]
name = "tsbrowse"
authors = [
{name = "Tskit Developers", email = "[email protected]"},
]
description = "Webapp to view and visualise tskit ARGs"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"click",
"daiquiri",
"panel",
"hvplot",
"datashader",
"tskit",
"tszip",
]
dynamic = ["version"]
keywords = ["tree sequence", "ancestral recombination graph", "tskit", "quality control"]

[project.urls]
"Bug Tracker" = "https://github.com/tskit-dev/tsbrowse/issues"
"Source Code" = "https://github.com/tskit-dev/tsbrowse"
Homepage = "https://tskit.dev/tsbrowse/"

[tool.setuptools]
packages = ["tsbrowse", "tsbrowse.pages"]

[tool.setuptools_scm]
write_to = "tsbrowse/_version.py"

[tool.pytest]
testpaths = ["tests"]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build
click
coverage
coveralls
Expand Down

0 comments on commit b8b8271

Please sign in to comment.