Skip to content

Commit

Permalink
build: convert setup.py based setup to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Apr 10, 2024
1 parent e928a7a commit 60acb6e
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 77 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/panaroo_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ jobs:
tar -xvf mash-Linux64-v2.2.tar
sudo cp ./mash-Linux64-v2.2/mash /usr/bin/mash
python --version
pip install -U pip
pip install -U pytest
python -m pip install -U pip
wget https://github.com/gtonkinhill/panaroo_test_data/releases/download/v0.0.2/travis_test_data.zip
unzip travis_test_data.zip
- name: Install
run: pip install .
run: python -m pip install .[test]

- name: Validation Tests
run: pytest -W ignore -q --datafolder="${{ github.workspace }}/travis_test_data/"


build-inspect:
name: Build and inspect the package
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@f51d0e79a34e62af977fcfe458b41fa8490e6e65 # v2.2.1
77 changes: 77 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "panaroo"
dynamic = ["version"]
description = "A pangenome analysis pipeline"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.6.0"
authors = [
{ name = "Gerry Tonkin-Hill", email = "[email protected]" },
{ name = "Neil MacAlistair" },
{ name = "Chris Ruis and Aaron Weimann" },
]
keywords = [
"bacteria",
"pangenome",
"roary",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
dependencies = [
"biocode",
"BioPython",
"dendropy",
"edlib",
"gffutils",
"intbitset",
"joblib",
"matplotlib",
"networkx",
"numpy",
"plotly",
"scikit-learn",
"scipy",
"tqdm",
]

[project.optional-dependencies]
test = [
"pytest",
]

[project.scripts]
panaroo = "panaroo.__main__:main"
panaroo-extract-gene = "panaroo.extract_gene_fasta:main"
panaroo-filter-pa = "panaroo.filter_pa:main"
panaroo-fmg = "panaroo.estimate_many_genes_params:main"
panaroo-gene-neighbourhood = "panaroo.get_neighborhood:main"
panaroo-generate-gffs = "panaroo.post_run_gff_output:main"
panaroo-img = "panaroo.estimate_img_params:main"
panaroo-integrate = "panaroo.integrate:main"
panaroo-merge = "panaroo.merge_graphs:main"
panaroo-msa = "panaroo.post_run_alignment_gen:main"
panaroo-plot-abundance = "panaroo.generate_abundance_plots:main"
panaroo-qc = "panaroo.generate_qc_plots:main"
panaroo-spydrpick = "panaroo.spydrpick:main"
run_prokka = "panaroo.run_prokka:main"

[project.urls]
Homepage = "https://github.com/gtonkinhill/panaroo"

[tool.hatch.version]
path = "panaroo/__init__.py"

[tool.hatch.build.targets.sdist]
include = [
"/panaroo",
]
73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit 60acb6e

Please sign in to comment.