Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12499

Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1 [ITP]]

Path csiph.com!3.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!aioe.org!bofh.it!news.nic.it!robomod
From Félix Sipma <felix+debian@gueux.org>
Newsgroups linux.debian.maint.python
Subject Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1 [ITP]]
Date Mon, 20 Apr 2020 16:40:02 +0200
Message-ID <zXFKy-4A3-9@gated-at.bofh.it> (permalink)
References <zXf3I-4Ut-13@gated-at.bofh.it> <zXk3o-893-7@gated-at.bofh.it> <zXk3n-893-5@gated-at.bofh.it> <zXoA1-2uo-3@gated-at.bofh.it> <zXAKR-1Br-1@gated-at.bofh.it> <zXE25-3uC-9@gated-at.bofh.it> <zXE25-3uC-7@gated-at.bofh.it> <zXFKy-4A3-11@gated-at.bofh.it>
X-Original-To Thomas Goirand <zigo@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Apr 20 14:35:59 2020
Old-Return-Path <felix+debian@gueux.org>
X-Amavis-Spam-Status No, score=-12.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate:hard: -4.6
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=gueux.org; h= in-reply-to:content-disposition:content-type:content-type :mime-version:references:message-id:subject:subject:from:from :date:date:received:received:received; s=gueux.org; t= 1587393343; x=1589207744; bh=IErXH4xwtq4GkVxMn/t9wIstnxaCQ0O1j8o 7CU8g/Kc=; b=NQMfWT8Ce8qRFZcL0zBlDpD1aeH7/pmCdbXNMjmYCvOL1ECT1Fw OBq4ltJVzffPMkybJHb+yZFbOhs0WyhlJdDL+ISiaX1tQCzsHc7W4Cz9SbwC/813 y6/UxVyH1/JjpxbUdInGYP6BO2BCMlzEQSlAhcaYHj03xt7gJVMnjN9s=
Mail-Followup-To Thomas Goirand <zigo@debian.org>, debian-python@lists.debian.org
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fdj2RfSjLxBAspz7"
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/18174
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20200420143540.GA742213@capeo.gueux.org
Approved robomod@news.nic.it
Lines 160
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Mon, 20 Apr 2020 16:35:40 +0200
X-Original-Message-ID <20200420143540.GA742213@capeo.gueux.org>
X-Original-References <20200419095323.GA49812@capeo.gueux.org> <2a203a59-342a-cb98-5e21-1dc0ca718e58@debian.org> <20200419152417.GA161740@capeo.gueux.org> <fe5cb9b3-d341-a58e-8e40-450f847a7be6@debian.org> <20200420091338.GA437073@capeo.gueux.org> <7b28a88d-cc86-04dc-e2ac-036dee10c36f@debian.org> <20200420124514.GE437073@capeo.gueux.org> <cad2b809-5905-c85a-69f3-9cc734ea1ce3@debian.org>
Xref csiph.com linux.debian.maint.python:12499

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On 2020-04-20 16:16+0200, Thomas Goirand wrote:
>On 4/20/20 2:45 PM, Félix Sipma wrote:
>> On 2020-04-20 12:06+0200, Thomas Goirand wrote:
>>> I'm not sure, the doc still accounts for half of the package. But let's
>>> pretend it's ok.
>>
>> We are talking about 80KB for the whole package. If it's not a blocker
>> for you I prefer keeping it like that.
>
>Fine, ok.
>>
>>> Now, the package contains a test suite. It'd be nice to run it. If you
>>> add, as dependency: python3-mock, python3-pytest, then pybuild runs the
>>> tests automatically. It needs to be overridden though, to avoid running
>>> integration tests which are failing (or these tests must be fixed).
>>>
>>> Can you do that? Then I'll happily upload...
>>
>> I added the dependencies, and disabled the integration tests which
>> requires golang and dotnet sphinxcontrib extensions. I don't have the
>> energy to package these myself...
>
>Of course! However, when I build the package:
>
>The text files are in build/sphinx/text.
> dh_auto_test -O--buildsystem=pybuild
>I: pybuild base:217: cd
>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-autoapi/build; python3.8
>-m unittest discover -v
>
>----------------------------------------------------------------------
>Ran 0 tests in 0.000s
>
>So, it's running zero tests now. I'm unsure what you did, but that's not
>correct. When it tried myself, a lot of tests ran with success.

I added python3-mock and python3-pytest to actually run the tests, then
I just disabled one specific test through

     `export PYBUILD_TEST_ARGS=-k-test_integration`

I use `dgit sbuild` to build the package, and the other tests are 
actually ran (I just tried again)...

     ...
     The text files are in build/sphinx/text.
        dh_auto_test -O--buildsystem=pybuild
     I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-autoapi/build; python3.8 -m pytest -k-test_integration
     ============================= test session starts ==============================
     platform linux -- Python 3.8.2, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
     rootdir: /<<PKGBUILDDIR>>
     collected 235 items / 14 deselected / 221 selected
     
     tests/test_astroid_utils.py ............................................ [ 19%]
     ........................................................................ [ 52%]
     ........................................................                 [ 77%]
     tests/test_domains.py ......                                             [ 80%]
     tests/test_objects.py .......                                            [ 83%]
     tests/python/test_parser.py ..........                                   [ 88%]
     tests/python/test_pyintegration.py ..........................            [100%]
     
     =============================== warnings summary ===============================
     /usr/lib/python3/dist-packages/jinja2/sandbox.py:19
       /usr/lib/python3/dist-packages/jinja2/sandbox.py:19: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
         from collections import Mapping
     
     tests/test_domains.py:147
       /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-autoapi/build/tests/test_domains.py:147: DeprecationWarning: invalid escape sequence \s
         self.assertEqual(ret, "With surrounding characters s :any:`FOO`\s")
     
     tests/test_domains.py:152
       /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_sphinx-autoapi/build/tests/test_domains.py:152: DeprecationWarning: invalid escape sequence \s
         self.assertEqual(ret, "With surrounding characters s ``FOO``\s")
     
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::TestSimpleModule::test_manual_directives
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_napoleon_integration_loaded
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_class_class_content
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_both_class_content
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_init_class_content
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_hiding_inheritance
     .pybuild/cpython3_3.8_sphinx-autoapi/build/tests/python/test_pyintegration.py::test_inherited_members
       /usr/lib/python3/dist-packages/sphinx/domains/python.py:400: RemovedInSphinx40Warning: PyClassmember is deprecated.
         warnings.warn('PyClassmember is deprecated.',
     
     -- Docs: https://docs.pytest.org/en/latest/warnings.html
     ============ 221 passed, 14 deselected, 10 warnings in 3.96 seconds ============
        create-stamp debian/debhelper-build-stamp
        dh_testroot -O--buildsystem=pybuild
        dh_prep -O--buildsystem=pybuild
        dh_auto_install -O--buildsystem=pybuild
     I: pybuild base:217: /usr/bin/python3 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-sphinx-autoapi 
     ...


Could you have another look?

>> Could you please also give me the upload rights for this package when it
>> will enter sid?
>
>I'm sorry, but considering the process and how many mistakes I had to
>point at which were easy to spot, I wont take this responsibility. I
>however will agree to review subsequent uploads.

No problem. I got the "how many mistakes I had to point at which were 
easy to spot", as I did not submit a new package for a long time and 
forgot about some of the packaging subtleties, probably did not put 
enough energy to get this package quality to the top level from the 
beginning, and also (thanks!) because I had to learn new tricks I did 
not know before (like using dh_sphinxdoc). But, just to have an idea, 
what do you mean by "considering the process"?

Regards,

-- 
Félix

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-19 12:10 +0200
  Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-19 17:30 +0200
    Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1 [ITP]] Scott Kitterman <debian@kitterman.com> - 2020-04-19 17:40 +0200
      Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-19 19:00 +0200
    Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Dmitry Shachnev <mitya57@debian.org> - 2020-04-19 22:20 +0200
      Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-20 11:20 +0200
    Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-20 11:20 +0200
      Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-20 14:50 +0200
        Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-20 16:40 +0200
          Re: [felix+debian@gueux.org: Bug#955862: RFS: sphinx-autoapi/1.2.1-1  [ITP]] Félix Sipma <felix+debian@gueux.org> - 2020-04-21 11:20 +0200

csiph-web