#16 [source-git] [test] Add up/down-stream files for test
Closed 5 years ago by usercont. Opened 5 years ago by usercont.
Unknown source source-git-7  into  master

empty or binary file added
@@ -0,0 +1,61 @@

+ diff --git a/setup.py b/setup.py

+ index 1b208e5..67f1582 100644

+ --- a/setup.py

+ +++ b/setup.py

+ @@ -3,6 +3,7 @@ from __future__ import print_function

+  

+  import codecs

+  import os

+ +import sys

+  

+  from setuptools import setup, find_packages

+  

+ @@ -16,33 +17,13 @@ requirements = [

+      'requests >= 2.14.2, != 2.18.0',

+  ]

+  

+ -extras_require = {

+ -    ':python_version < "3.5"': 'backports.ssl_match_hostname >= 3.5',

+ -    # While not imported explicitly, the ipaddress module is required for

+ -    # ssl_match_hostname to verify hosts match with certificates via

+ -    # ServerAltname: https://pypi.python.org/pypi/backports.ssl_match_hostname

+ -    ':python_version < "3.3"': 'ipaddress >= 1.0.16',

+ -

+ -    # win32 APIs if on Windows (required for npipe support)

+ -    # Python 3.6 is only compatible with v220 ; Python < 3.5 is not supported

+ -    # on v220 ; ALL versions are broken for v222 (as of 2018-01-26)

+ -    ':sys_platform == "win32" and python_version < "3.6"': 'pypiwin32==219',

+ -    ':sys_platform == "win32" and python_version >= "3.6"': 'pypiwin32==223',

+ -

+ -    # urllib3 drops support for Python 3.3 in 1.23

+ -    ':python_version == "3.3"': 'urllib3 < 1.23',

+ -

+ -    # If using docker-py over TLS, highly recommend this option is

+ -    # pip-installed or pinned.

+ -

+ -    # TODO: if pip installing both "requests" and "requests[security]", the

+ -    # extra package from the "security" option are not installed (see

+ -    # https://github.com/pypa/pip/issues/4391).  Once that's fixed, instead of

+ -    # installing the extra dependencies, install the following instead:

+ -    # 'requests[security] >= 2.5.2, != 2.11.0, != 2.12.2'

+ -    'tls': ['pyOpenSSL>=0.14', 'cryptography>=1.3.4', 'idna>=2.0.0'],

+ -

+ -}

+ +if sys.version_info[:2] < (3, 5):

+ +    requirements.append('backports.ssl_match_hostname >= 3.5')

+ +# While not imported explicitly, the ipaddress module is required for

+ +# ssl_match_hostname to verify hosts match with certificates via

+ +# ServerAltname: https://pypi.python.org/pypi/backports.ssl_match_hostname

+ +if sys.version_info[:2] < (3, 3):

+ +    requirements.append('ipaddress >= 1.0.16')

+  

+  version = None

+  exec(open('docker/version.py').read())

+ @@ -69,7 +50,6 @@ setup(

+      packages=find_packages(exclude=["tests.*", "tests"]),

+      install_requires=requirements,

+      tests_require=test_requirements,

+ -    extras_require=extras_require,

+      zip_safe=False,

+      test_suite='tests',

+      classifiers=[

@@ -0,0 +1,7 @@

+ diff --git a/upstream_file.md b/upstream_file.md

+ new file mode 100644

+ index 0000000..d1e5457

+ --- /dev/null

+ +++ b/upstream_file.md

+ @@ -0,0 +1 @@

+ +Upstream content

file added
+1
@@ -0,0 +1,1 @@

+ Downstream content

file modified
+15
@@ -20,6 +20,21 @@

  URL:            https://pypi.python.org/pypi/%{srcname}

  Source0:        https://files.pythonhosted.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz

  

+ 

+ # PATCHES FROM SOURCE GIT:

+ 

+ # Fedora downstream packaging

+ # Author: Tomas Tomecek <ttomecek@redhat.com>

+ Patch0001: 0001-df003e5839f9864d14edc9b82ab40c29510225fc.patch

+ 

+ # remove environment markers

+ # Author: Tomas Tomecek <ttomecek@redhat.com>

+ Patch0002: 0002-d144ecf4e8c379a90ee7532f58800abd731fadac.patch

+ 

+ # Add up/down-stream files for test

+ # Author: Frantisek Lachman <flachman@redhat.com>

+ Patch0003: 0003-4b4e5f5ee479220ed71cabdaa203b5a9856d4104.patch

+ 

  # Upstream uses environment markers to conditionally apply some dependencies.

  # Environment markers were first added in setuptools 20.6.8, so that doesn't

  # work in RHEL.  This patch converts those environment markers into simple if