From 468fe90a952b22fd316ae35ebb0f61c9a1821746 Mon Sep 17 00:00:00 2001 From: Andre Mayoraz <andre.mayoraz@idiap.ch> Date: Wed, 19 Oct 2022 16:53:52 +0200 Subject: [PATCH] Put requirements directly in pyproject.toml --- MANIFEST.in | 2 +- conda/meta.yaml | 2 +- pyproject.toml | 11 +++++++++-- requirements.txt | 6 ------ 4 files changed, 11 insertions(+), 10 deletions(-) delete mode 100644 requirements.txt diff --git a/MANIFEST.in b/MANIFEST.in index fe4735a..a77d48f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -include LICENSE README.rst buildout.cfg develop.cfg requirements.txt version.txt +include LICENSE README.rst develop.cfg recursive-include doc conf.py *.rst recursive-include bob/learn/em *.cpp *.h recursive-include bob/learn/em/data *.* diff --git a/conda/meta.yaml b/conda/meta.yaml index 679e793..3ea50e4 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -16,7 +16,7 @@ build: # installs the documentation source, readme to share/doc so it is available # during test time - install -d "${PREFIX}/share/doc/{{ name }}" - - cp -R README.rst requirements.txt doc "${PREFIX}/share/doc/{{ name }}/" + - cp -R README.rst doc "${PREFIX}/share/doc/{{ name }}/" requirements: host: diff --git a/pyproject.toml b/pyproject.toml index 87e339d..668bf60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ version = "3.2.1b0" requires-python = ">=3.9" description = "Bindings for EM machines and trainers of Bob" - dynamic = ["readme", "dependencies"] + dynamic = ["readme"] license = {text = "BSD 3-Clause License"} authors = [ {name = "Andre Anjos"}, @@ -25,6 +25,14 @@ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", ] + dependencies = [ + "setuptools", + "bob.extension", + "dask", + "dask-ml", + "h5py >= 3", + "scikit-learn", + ] [project.urls] documentation = "https://www.idiap.ch/software/bob/docs/bob/bob.learn.em/stable/" @@ -54,7 +62,6 @@ [tool.setuptools.dynamic] readme = {file = "README.rst"} - dependencies = {file = "requirements.txt"} [tool.distutils.bdist_wheel] diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 89806f2..0000000 --- a/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -setuptools -bob.extension -dask -dask-ml -h5py >= 3 -scikit-learn -- GitLab