SHA256
1
0
forked from pool/cloud-init

- add skip-argparse-on-python3.patch: don't depend on argparse

for python3, it is builtin there (as of python 3.2, so the
  patch should be good enough)

OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=86
This commit is contained in:
Dirk Mueller 2017-09-20 10:15:01 +00:00 committed by Git OBS Bridge
parent c46fc7308d
commit 606be11fa1
3 changed files with 32 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Sep 20 10:11:42 UTC 2017 - dmueller@suse.com
- add skip-argparse-on-python3.patch: don't depend on argparse
for python3, it is builtin there (as of python 3.2, so the
patch should be good enough)
-------------------------------------------------------------------
Mon Sep 18 09:39:26 CEST 2017 - kukuk@suse.de

View File

@ -57,6 +57,7 @@ Patch29: datasourceLocalDisk.patch
Patch30: cloud-init-handle-not-implemented-query.patch
Patch32: cloud-init-net-sysconfig-lp1665441.patch
Patch33: cloud-init-spceandtabs-clean.patch
Patch34: skip-argparse-on-python3.patch
BuildRequires: fdupes
BuildRequires: filesystem
%if 0%{?suse_version} && 0%{?suse_version} > 1315
@ -223,6 +224,7 @@ Unit tests for the cloud-init tools
%patch30
%patch32 -p1
%patch33 -p1
%patch34
%if 0%{?suse_version} && 0%{?suse_version} <= 1210
%patch40 -p1
%endif

View File

@ -0,0 +1,23 @@
--- 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.append('cheetah', 'argparse')
setuptools.setup(
name='cloud-init',