Skip to content
Snippets Groups Projects
Commit e9a9f435 authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

[conda] Fixes

parent 9cab01a4
No related branches found
No related tags found
1 merge request!15Fading some algorithms from bob.learn.linear
Pipeline #58235 failed
include LICENSE README.rst buildout.cfg develop.cfg requirements.txt version.txt include LICENSE README.rst buildout.cfg develop.cfg requirements.txt version.txt
recursive-include doc conf.py *.rst recursive-include doc *.py *.rst
recursive-include bob/learn/linear *.cpp *.h
recursive-include bob/learn/linear/data *.*
# see https://docs.python.org/3/library/pkgutil.html # see https://docs.python.org/3/library/pkgutil.html
from pkgutil import extend_path from pkgutil import extend_path
__path__ = extend_path(__path__, __name__) __path__ = extend_path(__path__, __name__)
...@@ -41,7 +41,7 @@ test: ...@@ -41,7 +41,7 @@ test:
imports: imports:
- {{ name }} - {{ name }}
commands: commands:
- pytest --verbose --cov {{ name }} --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }} - pytest --capture=no --verbose --cov {{ name }} --cov-config {{ project_dir }}/pyproject.toml --cov-report term-missing --cov-report html:{{ project_dir }}/sphinx/coverage --cov-report xml:{{ project_dir }}/coverage.xml --pyargs {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
......
...@@ -8,7 +8,7 @@ from setuptools import setup, find_packages, dist ...@@ -8,7 +8,7 @@ from setuptools import setup, find_packages, dist
from bob.extension.utils import load_requirements from bob.extension.utils import load_requirements
build_requires = load_requirements() install_requires = load_requirements()
# Define package version # Define package version
version = open("version.txt").read().rstrip() version = open("version.txt").read().rstrip()
...@@ -25,9 +25,15 @@ setup( ...@@ -25,9 +25,15 @@ setup(
long_description=open("README.rst").read(), long_description=open("README.rst").read(),
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
setup_requires=build_requires, setup_requires=install_requires,
install_requires=build_requires, # This line is required for any distutils based packaging.
ext_modules=[], packages=find_packages(),
# This line defines which packages should be installed when you "install"
# this package. All packages that are mentioned here, but are not installed
# on the current system will be installed locally and only visible to the
# scripts of this package. Don't worry - You won't need administrative
# privileges when using buildout.
install_requires=install_requires,
entry_points={"console_scripts": [],}, entry_points={"console_scripts": [],},
classifiers=[ classifiers=[
"Framework :: Bob", "Framework :: Bob",
...@@ -40,3 +46,4 @@ setup( ...@@ -40,3 +46,4 @@ setup(
"Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Libraries :: Python Modules",
], ],
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment