ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Zakharyaschev <imz@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Cc: lav@altlinux.org
Subject: Re: [devel] [#163703] DONE python-module-Pygments.git=2.1.3-alt1
Date: Sat, 23 Apr 2016 06:07:12 +0300 (MSK)
Message-ID: <alpine.LFD.2.20.1604230558040.1850@imap.altlinux.org> (raw)
In-Reply-To: <56a7e4f428c3956ecdfd8bf19c13055f@office.etersoft.ru>

[-- Attachment #1: Type: text/plain, Size: 2328 bytes --]


On Sat, 23 Apr 2016, Vitaly Lipatov wrote:

> Ivan Zakharyaschev писал 22.4.16 22:17:
>>  О, спасибо! Этого как раз не хватало, чтобы тесты в релизном sphinx
>>  прошли. Расстроился, что тесты не проходят, решил немного погулять, а
>>  тут такой подарочек.
>
> Отлично! А я уж думал, что сломал что-то :)

Вот новый sphinx немного сломал сборку чего-то, по сути из-за пустяка. 
Например, ttystatus -- 
https://lists.altlinux.org/pipermail/sisyphus-incominger/2016-April/434869.html 
.

Недосчитался автозависимости на alabaster (потому что в коде оно стало 
импортироваться глубоко, возможно, условно, а при вызове 
/usr/bin/sphinx-build setuptools берут и проверяют наличие всех 
объявленных зависимостей в любом случае и отказываются работать, как 
тут...)

http://git.altlinux.org/people/imz/packages/python-module-sphinx.git?p=python-module-sphinx.git;a=commit;h=0db4ee2fe0979c3eb7fa82b1a0b15c1b0e8ba79e

     1:1.4.1-alt2 - %py_requires alabaster (in the new source code, alabaster looks like a conditional import)

     --i.e., not top-level and hence not autodetected--but this doesn't
     make much sense since setuptools check the declared reqs when running
     the entry_point %_bindir/sphinx-build...

     diff --git a/sphinx/theming.py b/sphinx/theming.py
     index 49bd707..08051be 100644
     --- a/sphinx/theming.py
     +++ b/sphinx/theming.py
     @@ -26,9 +26,6 @@ except ImportError:
      from sphinx import package_dir
      from sphinx.errors import ThemeError

     -import alabaster
     -import sphinx_rtd_theme
     -
      NODEFAULT = object()
      THEMECONF = 'theme.conf'

     @@ -71,8 +68,15 @@ class Theme(object):

          @classmethod
          def load_extra_theme(cls, name):
     -        if name in ('alabaster', 'sphinx_rtd_theme'):
     +        themes = ['alabaster']
     +        try:
     +            import sphinx_rtd_theme
     +            themes.append('sphinx_rtd_theme')
     +        except ImportError:
     +            pass
     +        if name in themes:
                  if name == 'alabaster':
     +                import alabaster
                      themedir = alabaster.get_path()
                      # alabaster theme also requires 'alabaster' extension, it will be loaded
                      # at sphinx.application module.


-- 
Best regards,
Ivan

      reply	other threads:[~2016-04-23  3:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-22 19:17 ` Ivan Zakharyaschev
2016-04-22 23:06   ` Vitaly Lipatov
2016-04-23  3:07     ` Ivan Zakharyaschev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.20.1604230558040.1850@imap.altlinux.org \
    --to=imz@altlinux.org \
    --cc=devel@lists.altlinux.org \
    --cc=lav@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git