Blame SOURCES/modulemd.src.txt

7b3063
document: modulemd
7b3063
version: 2
7b3063
data:
292e29
    name: python36
292e29
    stream: 3.6
7b3063
    summary: Python programming language, version 3.6
7b3063
    description: |-
7b3063
        This module gives users access to the internal Python 3.6 in RHEL8, as
7b3063
        well as provides some additional Python packages the users might need.
7b3063
        In addition to these you can install any python3-* package available
7b3063
        in RHEL and use it with Python from this module.
7b3063
    license:
7b3063
        module:
7b3063
            - MIT
7b3063
    dependencies:
7b3063
        - buildrequires:
7b3063
              platform: [el8]
7b3063
              # python-pymongo needs mongodb for tests
7b3063
              # - mongodb version `3.6` being the same as version of Python 3.6
7b3063
              #   is a coincidence.
7b3063
              mongodb: [3.6]
7b3063
          requires:
7b3063
              platform: [el8]
7b3063
    references:
7b3063
        community: https://www.python.org/
7b3063
        documentation: https://docs.python.org/3.6/
7b3063
    profiles:
7b3063
        common:
7b3063
            rpms:
7b3063
                - python36
7b3063
        build:
7b3063
            rpms:
7b3063
                - python36
7b3063
                - python36-devel
7b3063
                - python36-rpm-macros
7b3063
    filter:
7b3063
        rpms:
7b3063
            - python2-PyMySQL
7b3063
            - python2-docutils
7b3063
            - python2-nose
7b3063
            - python2-pygments
7b3063
            - python2-scipy
7b3063
            - python2-sqlalchemy
7b3063
            - python2-virtualenv
7b3063
    api:
7b3063
        rpms:
7b3063
            - python-sqlalchemy-doc
7b3063
            - python-virtualenv-doc
7b3063
            - python3-PyMySQL
7b3063
            - python3-bson
7b3063
            - python3-docs
7b3063
            - python3-docutils
7b3063
            - python3-nose
7b3063
            - python3-pygments
7b3063
            - python3-pymongo
7b3063
            - python3-pymongo-gridfs
7b3063
            - python3-scipy
7b3063
            - python3-sqlalchemy
7b3063
            - python3-virtualenv
7b3063
            - python3-wheel
7b3063
            - python36
7b3063
            - python36-debug
7b3063
            - python36-devel
7b3063
            - python36-rpm-macros
7b3063
    buildopts:
7b3063
        rpms:
7b3063
            macros: |
7b3063
                %_without_python2 1
7b3063
7b3063
                # For packages depending on python36, so that they
7b3063
                # BuildRequire python36-devel/debug/rpm-macros instead of python3-*
7b3063
                #
7b3063
                # This won't be necessary for python37 and later. There we can
7b3063
                # set %{python3_pkgversion}, because all packages will need to
7b3063
                # have the pythonXY prefix. Whereas for Python 3.6 the packages
7b3063
                # are split between non-modular RHEL and the python36 module,
7b3063
                # and so it was easier and less confusing to keep the prefix at
7b3063
                # python3- except for the devel/debug/rpm/macros packages.
7b3063
                %_with_python36_module 1
7b3063
    components:
7b3063
        rpms:
7b3063
            python36:
7b3063
                # This package needs to be built before all others due to containing python36-rpm-macros
7b3063
                rationale:
7b3063
                    Contains the symlink to the platform-python interpreter.
7b3063
                    Also contains python36-rpm-macros needed to build the
7b3063
                    remaining packages.
292e29
                ref: stream-3.6-rhel-8.0.0
7b3063
                buildorder: 10
7b3063
            python-PyMySQL:
7b3063
                rationale: Python adapter for the MySQL/MariaDB databases
7b3063
                # PyMySQL [0] vs. mysqlclient-python [1]
7b3063
                # - PyMySQL was originally chosen for the rh-python35 RH
7b3063
                #   Software collection due to the opinion that maintaining
7b3063
                #   mysqlclient-python would take much more resources (bad
7b3063
                #   communication with upstream, backward incompatibilities in
7b3063
                #   test suite, ...)[2]. PyMySQL was deemed the better
7b3063
                #   alternative.
7b3063
                # - When creating this module, this decision was reassessed,
7b3063
                #   because mysqlclient-python seems to be faster than PyMySQL,
7b3063
                #   but the choice was reaffirmed due to the customers already
7b3063
                #   being familiar with PyMySQL from the abovementioned RHSCLs,
7b3063
                #   and due to wider popularity of PyMySQL upstream.[3]
7b3063
                # [0] https://github.com/PyMySQL/PyMySQL
7b3063
                # [1] https://github.com/PyMySQL/mysqlclient-python
7b3063
                # [2] https://bugzilla.redhat.com/show_bug.cgi?id=1012475
7b3063
                # [3] python-maint@redhat.com mailing list, 2018-04-30, subject
7b3063
                #     "python-MySQL vs PyMySQL"
292e29
                ref: stream-0.8.0-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-docutils:
7b3063
                rationale: System for processing plaintext documentation
292e29
                ref: stream-0.14-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-nose:
7b3063
                rationale: Discovery-based unit test extension for Python
292e29
                ref: stream-1.3.7-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-pygments:
7b3063
                rationale: Syntax highlighting engine written in Python
292e29
                ref: stream-2.2.0-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-pymongo:
7b3063
                # Package maintainer: mskalick
7b3063
                rationale: Python driver for MongoDB
292e29
                ref: stream-3.6.1-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-sqlalchemy:
7b3063
                rationale: Modular and flexible ORM library for python
292e29
                ref: stream-1.3.2-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-virtualenv:
7b3063
                rationale: Tool to create isolated Python environments
292e29
                ref: stream-15.1.0-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-wheel:
7b3063
                rationale: Built-package format for Python
292e29
                ref: stream-0.30.0-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            scipy:
7b3063
                rationale: Scientific Tools for Python
292e29
                ref: stream-1.0.0-rhel-8.0.0
7b3063
                buildorder: 20
7b3063
            python-docs:
7b3063
                rationale: Documentation for Python
292e29
                ref: stream-3.6-rhel-8.0.0
7b3063
                buildorder: 20