Skip to content

Commit 053d40c

Browse files
committed
Use pyproject.toml instead of deprecated setup.
1 parent 19d8cf5 commit 053d40c

3 files changed

Lines changed: 29 additions & 35 deletions

File tree

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
authors = [
7+
{name = "Frederic Escudie", email = "escudie.frederic@iuct-oncopole.fr"}
8+
]
9+
description = "Scripts for easily process NGS data from medical centers. This package contains several aggregators, converters, filters, wrappers, etc."
10+
dependencies = [
11+
"scipy == 1.11.3",
12+
"pysam == 0.23.3",
13+
"anacore == 2.12.1",
14+
"scikit-learn == 1.3.2"
15+
]
16+
dynamic = ["version"]
17+
keywords = ["bio", "NGS"]
18+
license.text = "GNU GPL v3"
19+
name = "anacore-utils"
20+
readme = "README.md"
21+
requires-python = ">=3.10"
22+
23+
[project.urls]
24+
Homepage = "https://github.com/bialimed/anacore-utils"
25+
Repository = "https://github.com/bialimed/anacore-utils"
26+
27+
[tool.setuptools.packages.find]
28+
where = ['bin']

requirements.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
import os
33
import re
4-
from distutils.core import setup
4+
from setuptools import setup
55

66

77
def get_version():
@@ -14,36 +14,6 @@ def get_version():
1414
return version
1515

1616

17-
def load_scripts(path):
18-
scripts = []
19-
for filename in os.listdir(path):
20-
filepath = os.path.join(path, filename)
21-
if os.path.isdir(filepath):
22-
if filename != "test":
23-
load_scripts(filepath)
24-
else:
25-
if filename.endswith(".py") and not filename.startswith("__"):
26-
scripts.append(filepath)
27-
return scripts
28-
29-
30-
def load_requirements(path):
31-
requirements = []
32-
with open(path) as FH:
33-
requirements = [elt.strip().replace(" ", "") for elt in FH]
34-
return requirements
35-
36-
3717
setup(
38-
name='anacore-utils',
3918
version=get_version(),
40-
description='Scripts for easily process NGS data.',
41-
long_description='Scripts for easily process NGS data from medical centers. This package contains several aggregators, converters, filters, wrappers, etc.',
42-
author='Frederic Escudie',
43-
author_email='escudie.frederic@iuct-oncopole.fr',
44-
license='GNU GPL v3',
45-
packages=["bin"],
46-
python_requires='>=3.10',
47-
install_requires=load_requirements("requirements.txt"),
48-
scripts=load_scripts("bin")
4919
)

0 commit comments

Comments
 (0)