Skip to content

Commit

Permalink
Merge pull request #205 from benjeffery/pyproject
Browse files Browse the repository at this point in the history
Consolidate to pyproject.toml
  • Loading branch information
benjeffery authored Oct 21, 2024
2 parents c99569f + 6555d5a commit 74d6fbf
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 4 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:

- name: Install deps
run: |
pip install -r requirements.txt
playwright install
pip install -r requirements.txt
playwright install
- name: Tests with numba
run: coverage run --source=tsbrowse -m pytest -x tests
Expand All @@ -60,4 +60,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
coveralls --service=github
- 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 74d6fbf

Please sign in to comment.