Skip to content
Snippets Groups Projects
Commit 70bbca3a authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[conda] Allow package to be tested outside of source checkout (see bob/bob.devtools#5)

parent bc1a4cd4
No related branches found
No related tags found
1 merge request!37Allow package to be tested outside of source checkout (see bob/bob.devtools#5)
Pipeline #27259 passed
{% set name = 'beat.backend.python' %} {% set name = 'beat.backend.python' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package: package:
name: {{ name }} name: {{ name }}
...@@ -7,7 +6,6 @@ package: ...@@ -7,7 +6,6 @@ package:
build: build:
entry_points: entry_points:
- execute = beat.backend.python.scripts.execute:main - execute = beat.backend.python.scripts.execute:main
- loop_execute = beat.backend.python.scripts.loop_execute:main - loop_execute = beat.backend.python.scripts.loop_execute:main
- describe = beat.backend.python.scripts.describe:main - describe = beat.backend.python.scripts.describe:main
...@@ -17,11 +15,15 @@ build: ...@@ -17,11 +15,15 @@ build:
run_exports: run_exports:
- {{ pin_subpackage(name) }} - {{ pin_subpackage(name) }}
script: script:
- cd {{ project_dir }} - cd {{ environ.get('RECIPE_DIR') + '/..' }}
{% if environ.get('BUILD_EGG') %} {% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip - python setup.py sdist --formats=zip
{% endif %} {% endif %}
- python setup.py install --single-version-externally-managed --record record.txt - python setup.py install --single-version-externally-managed --record record.txt
# 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 doc "${PREFIX}/share/doc/{{ name }}/"
requirements: requirements:
host: host:
...@@ -48,8 +50,9 @@ test: ...@@ -48,8 +50,9 @@ test:
- databases_provider --help - databases_provider --help
- index --help - index --help
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }} - nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx - sphinx-build -aEW ${PREFIX}/share/doc/{{ name }}/doc sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx - if [ -n "${CI_PROJECT_DIR}" ]; then mv sphinx "${CI_PROJECT_DIR}/"; fi
- sphinx-build -aEb doctest ${PREFIX}/share/doc/{{ name }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win] - conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx] - conda inspect objects -p $PREFIX {{ name }} # [osx]
requires: requires:
...@@ -66,3 +69,4 @@ about: ...@@ -66,3 +69,4 @@ about:
license: AGPLv3 license: AGPLv3
summary: Python Backend for the BEAT Platform summary: Python Backend for the BEAT Platform
license_family: AGPL license_family: AGPL
license_file: ../LICENSE.AGPL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment