[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 00/25] python-r2 eclass suite
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2020-02-29 20:41:36
Message-ID: 20200229204201.99290-1-mgorny () gentoo ! org
[Download RAW message or body]

Hello,

Here's a first proposed version of python-r2 suite.  This aims to switch
the eclasses into more proactive versioning model over deprecating
and removing API in place.  The main idea is that for the majority
of ebuilds (and especially those that do not trigger QA warnings right
now), the migration should be as simple as applying a few sed patterns.

Another implication of this model is that I'm going to provide a simple
conversion script once the eclasses are ready.  While it won't be able
to fix all possible issues, it should be able to fix the common renames,
and catch the removed bits.

The list of changes included so far:

- all deprecated things (read: those triggering deprecation warnings)
  have been removed or explicitly banned

- python.eclass / distutils.eclass failed migration checks have been
  removed

- some functions were explicitly made internal:

  a. python_wrapper_setup -- called by python_setup

  b. python_is_installed -- used by any-r1 python_setup

  c. python_export -- some bits are used only internally, others are now
                      available via python_get* only

- multi-impl eclass is now called python-multi-r2, to stop confusing
  people into using it

- distutils-r1 now passes --skip-build to install phase

- in python-single-r1, PYTHON_MULTI_USEDEP has been renamed back
  to PYTHON_USEDEP, for consistency between eclasses
  (PYTHON_SINGLE_USEDEP is still a thing)

I'm open to further suggestions.

-- 
Best regards,
Michał Górny

Michał Górny (25):
  eclass: Copy python-r1 suite to python-r2
  distutils-r2.eclass: Remove EXAMPLES
  distutils-r2.eclass: Remove no-op subphase defaults
  distutils-r2.eclass: Remove distutils.eclass checks
  distutils-r2.eclass: Make all old QA warnings fatal
  python-r2.eclass: Remove python_gen_usedep
  python-utils-r2.eclass: Remove python.eclass checks
  python-utils-r2.eclass: Mark python_wrapper_setup private
  python-utils-r2.eclass: Mark python_is_installed private
  python-utils-r2.eclass: Add missing @INTERNAL to private func
  python-utils-r2.eclass: Fix obsolete docs on python_export_best
  python-utils-r2.eclass: Mark python_export private
  python-utils-r2.eclass: Remove PYTHON_SITEDIR export
  python-utils-r2.eclass: Remove PYTHON_INCLUDEDIR export
  python-utils-r2.eclass: Remove PYTHON_LIBPATH export
  python-utils-r2.eclass: Remove PYTHON_CFLAGS export
  python-utils-r2.eclass: Remove PYTHON_LIBS export
  python-utils-r2.eclass: Remove PYTHON_CONFIG export
  python-utils-r2.eclass: Remove PYTHON_SCRIPTDIR export
  python-single-r2.eclass: PYTHON_MULTI_USEDEP → PYTHON_USEDEP
  distutils-r2.eclass: Pass --skip-build to install
  eclass: python-r2.eclass → python-multi-r2.eclass
  python-any-r2.eclass: Verbosely report used implementation
  python-single-r2.eclass: Report used impl verbosely
  python-multi-r2.eclass: Report python_setup impl verbosely

 eclass/distutils-r2.eclass      | 1112 +++++++++++++++++++++++++++++
 eclass/python-any-r2.eclass     |  360 ++++++++++
 eclass/python-multi-r2.eclass   |  783 ++++++++++++++++++++
 eclass/python-single-r2.eclass  |  509 +++++++++++++
 eclass/python-utils-r2.eclass   | 1191 +++++++++++++++++++++++++++++++
 eclass/tests/distutils-r2.sh    |   98 +++
 eclass/tests/python-utils-r2.sh |  250 +++++++
 7 files changed, 4303 insertions(+)
 create mode 100644 eclass/distutils-r2.eclass
 create mode 100644 eclass/python-any-r2.eclass
 create mode 100644 eclass/python-multi-r2.eclass
 create mode 100644 eclass/python-single-r2.eclass
 create mode 100644 eclass/python-utils-r2.eclass
 create mode 100755 eclass/tests/distutils-r2.sh
 create mode 100755 eclass/tests/python-utils-r2.sh

-- 
2.25.1


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic