#3 Initial example of the Flexible Metadata Format
Closed 5 years ago by psss. Opened 5 years ago by psss.

file added
+1
@@ -0,0 +1,1 @@ 

+ 1

file added
+4
@@ -0,0 +1,4 @@ 

+ contact:

+     - Petr Šplíchal <psplicha@redhat.com>

+     - Miro Hrončok <miro@hroncok.cz>

mhroncok at redhat.com please

+ component: [python]

file added
+49
@@ -0,0 +1,49 @@ 

+ summary: Basic smoke test for virtualenv

+ description: |

+     Check basic functionality of Python virtual environments (venv

+     or virtualenv based). The test supports different python

+     versions & implementations including pypy and jython.

+ 

+     The following steps are performed:

+ 

+     * Create virtual environment

+     * Activate virtual environment

+     * Install pip, pytest and Cython

+     * Create and test a simple module

+     * Check we can do extension modules

+     * Ensure we can test with the tox tool

+ 

+     Use the following environment variables to adjust what

+     should be tested (default values listed first):

+ 

+     * VERSION ... python version (3.7, 3.6, 2.7, 2.6)

+     * PYTHON ... implementation (python${VERSION}, pypy, pypy3, jython)

+     * METHOD ... virtual environment creation method (venv, virtualenv)

+     * TOX ... enable or disable the tox test (true, false)

+ 

+ path: smoke

+ test: ./venv.sh

+ 

+ tier: 1

+ tags: [venv]

+ 

+ environment:

+     VERSION: 3.7

+     METHOD: venv

+     TOX: true

+ duration: 10m

+ component+:

+     - python2

+     - python26

+     - python3

+     - python34

+     - python35

+     - python36

+     - pypy

+     - pypy3

+     - jython

+     - python-pip

+     - python-wheel

+     - python-setuptools

+     - python-virtualenv

+     - python-tox

@churchyard, could you please have a look whether the description & summary included in the venv.fmf describe well what the test does?

can this be both of us?

of Python virtual environments (venv or virtualenv based).

virtual environment creation method (venv, virtualenv)

(python${VERSION}, pypy, pypy3, jython)

what exactly is this? should it list e.g. python3 or python34 or pypy3 as well?

1 new commit added

  • Incorporate pull request feedback
5 years ago

1 new commit added

  • Update the list of components
5 years ago

Thanks for the feedback.

can this be both of us?

Make sense, updated. I'll update the spec as well.

of Python virtual environments (venv or virtualenv based).
pytest and Cython
virtual environment creation method (venv, virtualenv)
(python${VERSION}, pypy, pypy3, jython)

Updated.

python?
what exactly is this? should it list e.g. python3 or python34 or pypy3 as well?

Tags could be used for additional filtering. While the component
field should contain all relevant components. So I would suggest
to keep tags only for further categorization of python tests and
list all components using/affected by this test.

See the following page for details about already drafted/defined
metadata attributes: https://fedoraproject.org/wiki/CI/Metadata

All components are listed in https://bugzilla.redhat.com/show_bug.cgi?id=1623434

  • (python26) will be removed shortly
  • python2
  • python34
  • python35
  • python36
  • python3
  • pypy
  • pypy3
  • (jython) not sure
  • python-vitualenv
  • python-setuptools
  • python-pip
  • python-wheel
  • python-tox

1 new commit added

  • Add python-tox to the list of relevant components
5 years ago

Thanks. Now the list of relevant components should be complete. We can later adjust the list when components are removed. Ok to merge now?

mhroncok at redhat.com please

Please change my e-mail address to the redhat one, squash everything and feel free to merge.

Thank You!

Metadata Update from @psss:
- Request assigned

5 years ago

Pull-Request has been closed by psss

5 years ago

FYI: Python venv integration test including the metadata example documented here:
https://fedoraproject.org/wiki/CI/Examples#Python