| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # spec file for package python-tomlkit
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2020-03-11 11:46:12 +00:00
										 |  |  | # Copyright (c) 2020 SUSE LLC
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # All modifications and additions to the file contributed by third parties
 | 
					
						
							|  |  |  | # remain the property of their copyright owners, unless otherwise agreed
 | 
					
						
							|  |  |  | # upon. The license for this file, and modifications and additions to the
 | 
					
						
							|  |  |  | # file, is the same license as for the pristine package itself (unless the
 | 
					
						
							|  |  |  | # license for the pristine package is not an Open Source License, in which
 | 
					
						
							|  |  |  | # case the license is the MIT License). An "Open Source License" is a
 | 
					
						
							|  |  |  | # license that conforms to the Open Source Definition (Version 1.9)
 | 
					
						
							|  |  |  | # published by the Open Source Initiative.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Please submit bugfixes or comments via https://bugs.opensuse.org/
 | 
					
						
							|  |  |  | #
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							| 
									
										
										
										
											2020-03-12 08:03:45 +00:00
										 |  |  | %bcond_without python2
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | Name:           python-tomlkit
 | 
					
						
							| 
									
										
										
										
											2020-10-06 08:31:55 +00:00
										 |  |  | Version:        0.7.0
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | Release:        0
 | 
					
						
							|  |  |  | Summary:        Style preserving TOML library
 | 
					
						
							|  |  |  | License:        MIT
 | 
					
						
							|  |  |  | URL:            https://github.com/sdispater/tomlkit
 | 
					
						
							|  |  |  | Source:         https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2020-10-06 08:31:55 +00:00
										 |  |  | BuildRequires:  %{python_module PyYAML >= 5.3.1}
 | 
					
						
							| 
									
										
										
										
											2019-07-22 12:38:50 +00:00
										 |  |  | BuildRequires:  %{python_module pytest}
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module typing >= 3.6}
 | 
					
						
							|  |  |  | BuildRequires:  fdupes
 | 
					
						
							|  |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:23:19 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
										
										
											2020-03-12 08:03:45 +00:00
										 |  |  | %if %{with python2}
 | 
					
						
							|  |  |  | BuildRequires:  python-enum34
 | 
					
						
							|  |  |  | BuildRequires:  python-functools32
 | 
					
						
							|  |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | %ifpython2
 | 
					
						
							|  |  |  | Requires:       python-enum34
 | 
					
						
							|  |  |  | Requires:       python-functools32
 | 
					
						
							|  |  |  | %endif
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:23:19 +00:00
										 |  |  | %if %{python_version_nodots} < 35
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | Requires:       python-typing >= 3.6
 | 
					
						
							|  |  |  | %endif
 | 
					
						
							|  |  |  | %python_subpackages
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | Style preserving TOML library
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							|  |  |  | %setup -q -n tomlkit-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							|  |  |  | %python_build
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							|  |  |  | %python_install
 | 
					
						
							| 
									
										
										
										
											2019-07-22 12:38:50 +00:00
										 |  |  | %python_expand rm -r %{buildroot}%{$python_sitelib}/tests/
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | %python_expand %fdupes %{buildroot}%{$python_sitelib}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-22 12:38:50 +00:00
										 |  |  | %check
 | 
					
						
							|  |  |  | %pytest
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							|  |  |  | %doc README.md
 | 
					
						
							|  |  |  | %license LICENSE
 | 
					
						
							| 
									
										
										
										
											2020-10-06 08:31:55 +00:00
										 |  |  | %{python_sitelib}/tomlkit
 | 
					
						
							|  |  |  | %{python_sitelib}/tomlkit-%{version}-py*.egg-info
 | 
					
						
							| 
									
										
										
										
											2019-03-05 11:13:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |