Skip to content

Commit

Permalink
BLD Convert to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Feb 6, 2025
1 parent bb29e08 commit b0f4a96
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 55 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -28,7 +28,6 @@ jobs:
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install .
- name: Lint with flake8
run: |
Expand All @@ -44,4 +43,4 @@ jobs:
for t in integration_tests/*.py; do
echo "Running $t ..."
python $t
done
done
51 changes: 51 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "argnorm"
dynamic = ['version']
description = "Normalize antibiotic resistance genes (ARGs) results by using the ARO ontology (developed by CARD)."
readme = "README.md"
authors = [
{ name = "ArgNorm Developers", email = "[email protected]" }
]
license = { text = "MIT" }
requires-python = ">=3.7"
keywords = ["bioinformatics", "antibiotic-resistance", "ontology"]
dependencies = [
"pandas",
"pronto"
]
classifiers = [
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
]

[project.urls]
Homepage = "https://github.com/BigDataBiology/argNorm"

[project.optional-dependencies]
dev = ["pytest"]

[tool.setuptools]
packages = ["argnorm", "argnorm.data"]
include-package-data = true

[tool.setuptools.package-data]
"argnorm" = ["data/aro.obo", "data/*.tsv", "data/manual_curation/*.tsv"]

[project.scripts]
argnorm = "argnorm.cli:main"

[tool.setuptools.dynamic]
version = {attr = "argnorm.argnorm_version.__version__"}
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

48 changes: 0 additions & 48 deletions setup.py

This file was deleted.

0 comments on commit b0f4a96

Please sign in to comment.