cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00104
Re: python3 and argparse
On Wed, 2017-09-20 at 13:10 +0200, Richard Brown wrote:
> We're working around the problem with the below patch, which we'd like to have considered for inclusion in
> cloud-init, or a better solution proposed
ahem, apologies, we probably should have done a little more testing before I got in touch..below is a much
better patch that still builds on Python2, and achieves what we need for Python3
--- requirements.txt
+++ requirements.txt
@@ -27,9 +27,6 @@
# All new style configurations are in the yaml format
pyyaml
-# The new main entrypoint uses argparse instead of optparse
-argparse
-
# Requests handles ssl correctly!
requests
--- setup.py
+++ setup.py
@@ -198,7 +198,7 @@
requirements = read_requires()
if sys.version_info < (3,):
- requirements.append('cheetah')
+ requirements.extend(('cheetah', 'argparse'))
setuptools.setup(
name='cloud-init',
--
Richard Brown
Linux Distribution Engineer - Future Technology Team
Chairman - openSUSE
Phone +4991174053-361
SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)
Follow ups
References