public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH 00/25] python-r2 eclass suite
@ 2020-02-29 20:41 Michał Górny
  2020-02-29 20:41 ` [gentoo-dev] [PATCH 01/25] eclass: Copy python-r1 suite to python-r2 Michał Górny
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: Michał Górny @ 2020-02-29 20:41 UTC (permalink / raw
  To: gentoo-dev; +Cc: python, Michał Górny

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



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2020-02-29 20:50 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-29 20:41 [gentoo-dev] [PATCH 00/25] python-r2 eclass suite Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 01/25] eclass: Copy python-r1 suite to python-r2 Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 02/25] distutils-r2.eclass: Remove EXAMPLES Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 03/25] distutils-r2.eclass: Remove no-op subphase defaults Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 04/25] distutils-r2.eclass: Remove distutils.eclass checks Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 05/25] distutils-r2.eclass: Make all old QA warnings fatal Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 06/25] python-r2.eclass: Remove python_gen_usedep Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 07/25] python-utils-r2.eclass: Remove python.eclass checks Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 08/25] python-utils-r2.eclass: Mark python_wrapper_setup private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 09/25] python-utils-r2.eclass: Mark python_is_installed private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 10/25] python-utils-r2.eclass: Add missing @INTERNAL to private func Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 11/25] python-utils-r2.eclass: Fix obsolete docs on python_export_best Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 12/25] python-utils-r2.eclass: Mark python_export private Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 13/25] python-utils-r2.eclass: Remove PYTHON_SITEDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 14/25] python-utils-r2.eclass: Remove PYTHON_INCLUDEDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 15/25] python-utils-r2.eclass: Remove PYTHON_LIBPATH export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 16/25] python-utils-r2.eclass: Remove PYTHON_CFLAGS export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 17/25] python-utils-r2.eclass: Remove PYTHON_LIBS export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 18/25] python-utils-r2.eclass: Remove PYTHON_CONFIG export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 19/25] python-utils-r2.eclass: Remove PYTHON_SCRIPTDIR export Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 20/25] python-single-r2.eclass: PYTHON_MULTI_USEDEP → PYTHON_USEDEP Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 21/25] distutils-r2.eclass: Pass --skip-build to install Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 22/25] eclass: python-r2.eclass → python-multi-r2.eclass Michał Górny
2020-02-29 20:41 ` [gentoo-dev] [PATCH 23/25] python-any-r2.eclass: Verbosely report used implementation Michał Górny
2020-02-29 20:42 ` [gentoo-dev] [PATCH 24/25] python-single-r2.eclass: Report used impl verbosely Michał Górny
2020-02-29 20:42 ` [gentoo-dev] [PATCH 25/25] python-multi-r2.eclass: Report python_setup " Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox