From 333d9abb214ec6575c632e5e01409f753562fdb7 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Tue, 31 Oct 2017 14:40:33 +0100 Subject: [PATCH 1/4] Create an empty 3.6 branch for the F27 Modular server --- python3.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 python3.yaml diff --git a/python3.yaml b/python3.yaml new file mode 100644 index 0000000..5395a06 --- /dev/null +++ b/python3.yaml @@ -0,0 +1,34 @@ +# This module is left empty because python3 is contained in the +# Platform module of Fedora 27 Modular Server edition. + +# Other modules can depend on this empty one so that, when the +# implementation of python3 is moved out of the Platform module, +# other modules should not be affected. + +document: modulemd +version: 1 +data: + summary: Python programming language, version 3 + description: >- + Python is an interpreted, interactive, object-oriented programming + language often compared to Tcl, Perl, Scheme or Java. Python includes + modules, classes, exceptions, very high level dynamic data types + and dynamic typing. Python supports interfaces to many system calls and + libraries, as well as to various windowing systems (X11, Motif, Tk, + Mac and MFC). + + Programmers can write new built-in modules for Python in C or C++. + Python can be used as an extension language for applications that + need a programmable interface. + license: + module: + - MIT + dependencies: + buildrequires: + bootstrap: master + requires: + platform: master + references: + community: https://www.python.org/ + documentation: https://docs.python.org/3/ + tracker: https://src.fedoraproject.org/modules/python3 From 78b836d487a8c889ae54e550791eff36ec4bad3b Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Tue, 31 Oct 2017 16:11:54 +0100 Subject: [PATCH 2/4] Build a small package and immediatelly filter out all binary RPMs Because mbs build system currently does not support building empty modules. --- python3.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python3.yaml b/python3.yaml index 5395a06..5795194 100644 --- a/python3.yaml +++ b/python3.yaml @@ -32,3 +32,17 @@ data: community: https://www.python.org/ documentation: https://docs.python.org/3/ tracker: https://src.fedoraproject.org/modules/python3 + filter: + rpms: + - python-rpm-macros + - python-srpm-macros + - python2-rpm-macros + - python3-rpm-macros + - platform-python-rpm-macros + components: + rpms: + python-rpm-macros: + rationale: | + Build and filter all RPMs, since an empty module doesn't + build + ref: master From af0cfb9f5ecf6ba9f3121dfcf98ad5e56dcf8e06 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Mon, 13 Nov 2017 11:09:34 +0100 Subject: [PATCH 3/4] we need to require f27 as the base --- python3.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python3.yaml b/python3.yaml index 5795194..2629bca 100644 --- a/python3.yaml +++ b/python3.yaml @@ -25,9 +25,9 @@ data: - MIT dependencies: buildrequires: - bootstrap: master + bootstrap: f27 requires: - platform: master + platform: f27 references: community: https://www.python.org/ documentation: https://docs.python.org/3/ From f9c6ada7fdf17b7275616397a0369bca32aa0ad2 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Mon, 27 Nov 2017 11:44:21 +0100 Subject: [PATCH 4/4] Add sham profiles so DNF does not complain when installing the module Profiles are optional according to the modulemd specs, but DNF does not handle it properly and errors out. Therefore until it's fixed I'm adding sham profiles. --- python3.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/python3.yaml b/python3.yaml index 2629bca..fe870a6 100644 --- a/python3.yaml +++ b/python3.yaml @@ -32,6 +32,27 @@ data: community: https://www.python.org/ documentation: https://docs.python.org/3/ tracker: https://src.fedoraproject.org/modules/python3 + profiles: + minimal: + rpms: + - python3 + - python3-libs + - python3-pip + - python3-setuptools + default: + rpms: + - python3 + - python3-libs + - python3-pip + - python3-setuptools + full: + rpms: + - python3 + - python3-devel + - python3-libs + - python3-pip + - python3-setuptools + - python3-wheel filter: rpms: - python-rpm-macros