import python-lit-0.11.0-1.module+el8.4.0+8598+a071fcd5
This commit is contained in:
		
							parent
							
								
									89138fb908
								
							
						
					
					
						commit
						cae988eeda
					
				
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1 +1 @@ | ||||
| SOURCES/lit-0.10.0.tar.gz | ||||
| SOURCES/lit-0.11.0.post1.tar.gz | ||||
|  | ||||
| @ -1 +1 @@ | ||||
| b1c31b0e5bc1d6c9dc4969362caf91dbfaed23c4 SOURCES/lit-0.10.0.tar.gz | ||||
| 67956574b4009f3268dd46afd4a9f529e91ca447 SOURCES/lit-0.11.0.post1.tar.gz | ||||
|  | ||||
| @ -1,42 +0,0 @@ | ||||
| diff --git a/llvm/utils/lit/lit/cl_arguments.py b/llvm/utils/lit/lit/cl_arguments.py
 | ||||
| index bac2be2..402fadb 100644
 | ||||
| --- a/llvm/utils/lit/lit/cl_arguments.py
 | ||||
| +++ b/llvm/utils/lit/lit/cl_arguments.py
 | ||||
| @@ -15,7 +15,9 @@ def parse_args():
 | ||||
|      parser.add_argument("--version", | ||||
|              dest="show_version", | ||||
|              help="Show version and exit", | ||||
| -            action="store_true")
 | ||||
| +            version="lit " + lit.__version__,
 | ||||
| +            action="version")
 | ||||
| +
 | ||||
|      parser.add_argument("-j", "--threads", "--workers", | ||||
|              dest="workers", | ||||
|              metavar="N", | ||||
| diff --git a/llvm/utils/lit/lit/main.py b/llvm/utils/lit/lit/main.py
 | ||||
| index c58b06c..0f0c76b 100755
 | ||||
| --- a/llvm/utils/lit/lit/main.py
 | ||||
| +++ b/llvm/utils/lit/lit/main.py
 | ||||
| @@ -21,10 +21,6 @@ import lit.util
 | ||||
|  def main(builtin_params={}): | ||||
|      opts = lit.cl_arguments.parse_args() | ||||
|   | ||||
| -    if opts.show_version:
 | ||||
| -        print("lit %s" % lit.__version__)
 | ||||
| -        return
 | ||||
| -
 | ||||
|      params = create_params(builtin_params, opts.user_params) | ||||
|      is_windows = platform.system() == 'Windows' | ||||
|   | ||||
| diff --git a/llvm/utils/lit/tests/version.py b/llvm/utils/lit/tests/version.py
 | ||||
| new file mode 100644 | ||||
| index 0000000..6d1d0fc
 | ||||
| --- /dev/null
 | ||||
| +++ b/llvm/utils/lit/tests/version.py
 | ||||
| @@ -0,0 +1,5 @@
 | ||||
| +# Basic sanity check that --version works.
 | ||||
| +#
 | ||||
| +# RUN: %{lit} --version | FileCheck %s
 | ||||
| +#
 | ||||
| +# CHECK: lit {{[0-9]+\.[0-9]+\.[0-9]+[a-zA-Z0-9]*}}
 | ||||
| 
 | ||||
| @ -7,6 +7,7 @@ | ||||
| %endif | ||||
| 
 | ||||
| #%%global rc_ver 1 | ||||
| %global post_ver 1 | ||||
| %global baserelease 1 | ||||
| 
 | ||||
| %bcond_without check | ||||
| @ -16,16 +17,14 @@ | ||||
| %{!?py2_install: %global py2_install %{expand: CFLAGS="%{optflags}" %{__python2} setup.py %{?py_setup_args} install -O1 --skip-build --root %{buildroot}}} | ||||
| 
 | ||||
| Name: python-%{srcname} | ||||
| Version: 0.10.0 | ||||
| Version: 0.11.0 | ||||
| Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist} | ||||
| BuildArch: noarch | ||||
| 
 | ||||
| License: NCSA | ||||
| Summary: Tool for executing llvm test suites | ||||
| URL: https://pypi.python.org/pypi/lit | ||||
| Source0: https://files.pythonhosted.org/packages/e7/56/7967ff7ea510c12a4f3d5f6582a416ff74bd6b1194be265c979df6701c56/lit-0.10.0.tar.gz | ||||
| 
 | ||||
| Patch0: version.patch | ||||
| Source0: %{pypi_source %{srcname} %{version}%{?post_ver:.post%{post_ver}}} | ||||
| 
 | ||||
| # for file check | ||||
| %if %{with check} | ||||
| @ -63,7 +62,7 @@ lit is a tool used by the LLVM project for executing its test suites. | ||||
| %endif | ||||
| 
 | ||||
| %prep | ||||
| %autosetup -n %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}} -p4 | ||||
| %autosetup -n %{srcname}-%{version}%{?rc_ver:rc%{rc_ver}}%{?post_ver:.post%{post_ver}} -p4 | ||||
| 
 | ||||
| %build | ||||
| %py3_build | ||||
| @ -92,12 +91,14 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python2_sitelib}/%{srcna | ||||
| %endif | ||||
| 
 | ||||
| %files -n python3-%{srcname} | ||||
| %license LICENSE.TXT | ||||
| %doc README.txt | ||||
| %{python3_sitelib}/* | ||||
| %{_bindir}/lit | ||||
| 
 | ||||
| %if 0%{?with_python2} | ||||
| %files -n python2-%{srcname} | ||||
| %license LICENSE.TXT | ||||
| %doc README.txt | ||||
| %{python2_sitelib}/* | ||||
| %if %{undefined with_python2} | ||||
| @ -106,6 +107,12 @@ sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python2_sitelib}/%{srcna | ||||
| %endif | ||||
| 
 | ||||
| %changelog | ||||
| * Thu Oct 29 2020 sguelton@redhat.com - 0.11.0-1 | ||||
| - 0.11.0 final release | ||||
| 
 | ||||
| * Thu Sep 17 2020 sguelton@redhat.com - 0.11.0-0.1.rc1 | ||||
| - 0.11.0 rc1 Release | ||||
| 
 | ||||
| * Thu Apr 9 2020 sguelton@redhat.com - 0.10.0-1 | ||||
| - 0.10.0 final release | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user