Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-18 Thread Sylvestre Ledru
On 17/05/2018 20:31, Nicholas D Steeves wrote:
> Hi Sylvestre,
> 
> On Thu, May 17, 2018 at 10:19:01AM +0200, Sylvestre Ledru wrote:
>> On 16/05/2018 22:06, Nicholas D Steeves wrote:
>>> On Wed, May 16, 2018 at 08:55:51AM +0200, Sylvestre Ledru wrote:
 On 15/05/2018 18:31, Georges Khaznadar wrote:
> The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
> and make other modification as you want.
>

 Uploaded! Many thanks!
>>>
>>> Thank you Georges and Sylvestre :-)
>>>
>>> WRT elpy, I've updated its packaging in git to use python3-autopep8
>>> and will upload after python3-autopep8 clears NEW.
>> Are you sure you push your changes? I don't see them.
> 
> I just double checked, and can confirm that I had pushed to
> https://salsa.debian.org/emacsen-team/elpy.git :-)
my bad, I misread your email, sorry!


S



signature.asc
Description: OpenPGP digital signature


Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-17 Thread Nicholas D Steeves
Hi Sylvestre,

On Thu, May 17, 2018 at 10:19:01AM +0200, Sylvestre Ledru wrote:
> On 16/05/2018 22:06, Nicholas D Steeves wrote:
> > On Wed, May 16, 2018 at 08:55:51AM +0200, Sylvestre Ledru wrote:
> >> On 15/05/2018 18:31, Georges Khaznadar wrote:
> >>> The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
> >>> and make other modification as you want.
> >>>
> >>
> >> Uploaded! Many thanks!
> > 
> > Thank you Georges and Sylvestre :-)
> > 
> > WRT elpy, I've updated its packaging in git to use python3-autopep8
> > and will upload after python3-autopep8 clears NEW.
> Are you sure you push your changes? I don't see them.

I just double checked, and can confirm that I had pushed to
https://salsa.debian.org/emacsen-team/elpy.git :-)

Wow, python3-autopep8 passed through NEW really fast!  I had expected
it to take about a week, during which time I had hoped upstream
yasnippet-snippets would merge elpy's python-mode snippets, so that I
could unbundle them from elpy.  Elpy-1.20.0-1 is in the archive and as
it stands, I don't think there are yet enough changes to justify a
-2.  If you've found any bugs then please file reports; fixing them
would definitely justify a -2 ;-)

Kind regards,
Nicholas


signature.asc
Description: PGP signature


Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-17 Thread Sylvestre Ledru
On 16/05/2018 22:06, Nicholas D Steeves wrote:
> On Wed, May 16, 2018 at 08:55:51AM +0200, Sylvestre Ledru wrote:
>> On 15/05/2018 18:31, Georges Khaznadar wrote:
>>> The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
>>> and make other modification as you want.
>>>
>>
>> Uploaded! Many thanks!
> 
> Thank you Georges and Sylvestre :-)
> 
> WRT elpy, I've updated its packaging in git to use python3-autopep8
> and will upload after python3-autopep8 clears NEW.
Are you sure you push your changes? I don't see them.

Thanks

S




signature.asc
Description: OpenPGP digital signature


Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-16 Thread Nicholas D Steeves
On Wed, May 16, 2018 at 08:55:51AM +0200, Sylvestre Ledru wrote:
> On 15/05/2018 18:31, Georges Khaznadar wrote:
> > The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
> > and make other modification as you want.
> >
>
> Uploaded! Many thanks!

Thank you Georges and Sylvestre :-)

WRT elpy, I've updated its packaging in git to use python3-autopep8
and will upload after python3-autopep8 clears NEW.

P.S. Thank you for the Recommends: python-autopep8; it makes it
possible to transition to depending only on the Python 3 package,
while still running self-tests for the Python 2 modules.  I appreciate
that this makes it possible to defer the issue of 1) failing py2
tests, therefor do one of 2) explicitly depend on the py2 package ||
3) patch tests to run with py3 only.  Also, when that Recommendation
is dropped it will be a good reminder to do #3 ! ;-)

Regards,
Nicholas


signature.asc
Description: PGP signature


Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-16 Thread Sylvestre Ledru
Uploaded! Many thanks!

S

On 15/05/2018 18:31, Georges Khaznadar wrote:
> The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
> and make other modification as you want.
> 
> Here is the diff file:
> 
> ---8<---
> diff --git a/debian/changelog b/debian/changelog
> index 2fb245b..149390f 100644
> --- a/debian/changelog
> +++ b/debian/changelog
> @@ -1,3 +1,11 @@
> +autopep8 (1.3.5-1.1) unstable; urgency=medium
> +
> +  * Non-maintainer upload.
> +  * created the new package python3-autopep8. Closes: #875906
> +  * modified debian/control and debian/rules accordingly
> +
> + -- Georges Khaznadar   Tue, 15 May 2018 18:18:28 +0200
> +
>  autopep8 (1.3.5-1) unstable; urgency=medium
>  
>* New upstream release
> diff --git a/debian/control b/debian/control
> index 3c4553e..2f60809 100644
> --- a/debian/control
> +++ b/debian/control
> @@ -4,19 +4,35 @@ Uploaders: Debian Python Modules Team 
>   Section: python
>  Priority: optional
>  Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3),
> + python3-setuptools, python3-all,
>   debhelper (>= 10), pycodestyle, python-pycodestyle (>= 2.3.1), dh-python,
>   help2man
> -Standards-Version: 4.1.3
> +Standards-Version: 4.1.4
>  Homepage: https://pypi.python.org/pypi/autopep8/
>  Vcs-Git: https://salsa.debian.org/python-team/modules/autopep8.git
>  Vcs-Browser: https://salsa.debian.org/python-team/modules/autopep8
> +X-Python-Version: >= 2.7
> +X-Python3-Version: >= 3.5
>  
>  Package: python-autopep8
>  Architecture: all
> -Depends: ${misc:Depends}, ${python:Depends}, python-pep8, 
> python-pkg-resources
> +Depends: ${misc:Depends}, ${python:Depends}, python-pep8,
> + python-pkg-resources
>  Description: tool that automatically formats Python code to conform to PEP 8
>   autopep8 automatically formats Python code to conform to the PEP 8 style
>   guide. It uses the pep8 utility to determine what parts of the code needs to
>   be formatted. autopep8 is capable of fixing most of the formatting issues 
> that
> - can be reported by pep8.
> + can be reported by pep8. This package is for Python2.
> +
> +Package: python3-autopep8
> +Architecture: all
> +# the recommends is to get /usr/bin/autopep8
> +Recommends: python-autopep8
> +Depends: ${misc:Depends}, ${python3:Depends}, python3-pep8,
> + python3-pkg-resources
> +Description: tool that automatically formats Python code to conform to PEP 8
> + autopep8 automatically formats Python code to conform to the PEP 8 style
> + guide. It uses the pep8 utility to determine what parts of the code needs to
> + be formatted. autopep8 is capable of fixing most of the formatting issues 
> that
> + can be reported by pep8. This package is for Python3.
>  
> diff --git a/debian/rules b/debian/rules
> index 1e3f4e6..3ffb067 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -2,16 +2,26 @@
>  VERSION = $(shell dpkg-parsechangelog |  sed -rne "s,^Version: 
> ([0-9.]+)(~|-)(.*),\1,p")
>  
>  %:
> - dh $@ --with python2 --buildsystem=python_distutils
> + dh $@ --with python2 --with python3 --buildsystem=python_distutils
>  
>  override_dh_installdocs:
>   help2man --name=autopep8  --version-string=$(VERSION) "python 
> autopep8.py" > debian/autopep8.1
>   dh_installdocs
>  
> +override_dh_auto_build:
> + python setup.py build --force
> + python3 setup.py build --force
> +
> +override_dh_auto_install:
> + python setup.py install --force --root=$(CURDIR)/debian/python-autopep8 
> --no-compile -O0 --install-layout=deb
> + python3 setup.py install --force 
> --root=$(CURDIR)/debian/python3-autopep8 --no-compile -O0 --install-layout=deb
> + rm -rf $(CURDIR)/debian/python3-autopep8/usr/bin
> +
>  #override_dh_auto_test:
>  #make test
>  #dh_auto_test
>  
>  override_dh_clean:
>   rm -f debian/*.1
> + rm -rf build
>   dh_clean
> ---8<---
> 
> Best regards, Georges.
> 




signature.asc
Description: OpenPGP digital signature


Bug#875906: Hello, I am NMUing to DELAYED-15 to close this bug report

2018-05-15 Thread Georges Khaznadar
The NMU shoud reach debian/unstable in two weeks. Feel free to cancel it
and make other modification as you want.

Here is the diff file:

---8<---
diff --git a/debian/changelog b/debian/changelog
index 2fb245b..149390f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+autopep8 (1.3.5-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * created the new package python3-autopep8. Closes: #875906
+  * modified debian/control and debian/rules accordingly
+
+ -- Georges Khaznadar   Tue, 15 May 2018 18:18:28 +0200
+
 autopep8 (1.3.5-1) unstable; urgency=medium
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 3c4553e..2f60809 100644
--- a/debian/control
+++ b/debian/control
@@ -4,19 +4,35 @@ Uploaders: Debian Python Modules Team 
= 0.6b3), python-all (>= 2.6.6-3),
+ python3-setuptools, python3-all,
  debhelper (>= 10), pycodestyle, python-pycodestyle (>= 2.3.1), dh-python,
  help2man
-Standards-Version: 4.1.3
+Standards-Version: 4.1.4
 Homepage: https://pypi.python.org/pypi/autopep8/
 Vcs-Git: https://salsa.debian.org/python-team/modules/autopep8.git
 Vcs-Browser: https://salsa.debian.org/python-team/modules/autopep8
+X-Python-Version: >= 2.7
+X-Python3-Version: >= 3.5
 
 Package: python-autopep8
 Architecture: all
-Depends: ${misc:Depends}, ${python:Depends}, python-pep8, python-pkg-resources
+Depends: ${misc:Depends}, ${python:Depends}, python-pep8,
+ python-pkg-resources
 Description: tool that automatically formats Python code to conform to PEP 8
  autopep8 automatically formats Python code to conform to the PEP 8 style
  guide. It uses the pep8 utility to determine what parts of the code needs to
  be formatted. autopep8 is capable of fixing most of the formatting issues that
- can be reported by pep8.
+ can be reported by pep8. This package is for Python2.
+
+Package: python3-autopep8
+Architecture: all
+# the recommends is to get /usr/bin/autopep8
+Recommends: python-autopep8
+Depends: ${misc:Depends}, ${python3:Depends}, python3-pep8,
+ python3-pkg-resources
+Description: tool that automatically formats Python code to conform to PEP 8
+ autopep8 automatically formats Python code to conform to the PEP 8 style
+ guide. It uses the pep8 utility to determine what parts of the code needs to
+ be formatted. autopep8 is capable of fixing most of the formatting issues that
+ can be reported by pep8. This package is for Python3.
 
diff --git a/debian/rules b/debian/rules
index 1e3f4e6..3ffb067 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,16 +2,26 @@
 VERSION = $(shell dpkg-parsechangelog |  sed -rne "s,^Version: 
([0-9.]+)(~|-)(.*),\1,p")
 
 %:
-   dh $@ --with python2 --buildsystem=python_distutils
+   dh $@ --with python2 --with python3 --buildsystem=python_distutils
 
 override_dh_installdocs:
help2man --name=autopep8  --version-string=$(VERSION) "python 
autopep8.py" > debian/autopep8.1
dh_installdocs
 
+override_dh_auto_build:
+   python setup.py build --force
+   python3 setup.py build --force
+
+override_dh_auto_install:
+   python setup.py install --force --root=$(CURDIR)/debian/python-autopep8 
--no-compile -O0 --install-layout=deb
+   python3 setup.py install --force 
--root=$(CURDIR)/debian/python3-autopep8 --no-compile -O0 --install-layout=deb
+   rm -rf $(CURDIR)/debian/python3-autopep8/usr/bin
+
 #override_dh_auto_test:
 #  make test
 #  dh_auto_test
 
 override_dh_clean:
rm -f debian/*.1
+   rm -rf build
dh_clean
---8<---

Best regards,   Georges.

-- 
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70



signature.asc
Description: PGP signature