diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-11-20 12:04:56 -0800 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2020-11-20 12:04:56 -0800 |
commit | ff92791e6e86bca48c03fdd2c826493e7e9d30bc (patch) | |
tree | 571a6ea7b187ce69c59b25e125ea2476c22bc596 | |
parent | cba5ac752df5c68302e7d795f48b3373b610d026 (diff) | |
download | specs-ff92791e6e86bca48c03fdd2c826493e7e9d30bc.tar.gz specs-ff92791e6e86bca48c03fdd2c826493e7e9d30bc.tar.xz specs-ff92791e6e86bca48c03fdd2c826493e7e9d30bc.zip |
- python-bowler
-rw-r--r-- | python/python-bowler.spec | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/python/python-bowler.spec b/python/python-bowler.spec deleted file mode 100644 index 6a5adb8..0000000 --- a/python/python-bowler.spec +++ /dev/null @@ -1,88 +0,0 @@ -%global srcname bowler - -%bcond_without tests - -Name: python-%{srcname} -Version: 0.9.0 -Release: 1%{?dist} -Summary: Safe code refactoring for modern Python projects -License: MIT -URL: https://pybowler.io -Source0: %{pypi_source} - -BuildArch: noarch - -BuildRequires: python3-devel -BuildRequires: python3-setuptools -%if %{with tests} -BuildRequires: %{py3_dist appdirs} -BuildRequires: %{py3_dist attrs} -BuildRequires: %{py3_dist click} -BuildRequires: %{py3_dist coverage} -BuildRequires: %{py3_dist fissix} -BuildRequires: %{py3_dist moreorless} >= 0.2.0 -BuildRequires: %{py3_dist volatile} -%endif - - -%global _description %{expand: -Bowler is a refactoring tool for manipulating Python at the syntax tree level. -It enables safe, large scale code modifications while guaranteeing that the -resulting code compiles and runs. It provides both a simple command line -interface and a fluent API in Python for generating complex code modifications -in code.} - -%description %_description - - -%package -n python3-%{srcname} -Summary: %{summary} - -%description -n python3-%{srcname} %_description - - -%package -n python3-%{srcname}-docs -Summary: Documentation for python3-%{srcname} -Requires: python3-%{srcname} = %{version}-%{release} - -%description -n python3-%{srcname}-docs %_description - -The python3-%{srcname}-docs package contains documentation for python3-%{srcname}. - - -%prep -%autosetup -p1 -n %{srcname}-%{version} -sed -i '1d' $(grep -l '#!/usr/bin/env' bowler/*.py) -# this is only needed for testing -sed -i '/volatile/d' requirements.txt - - -%build -%py3_build - - -%install -%py3_install - - -%if %{with tests} -%check -%{python3} -m coverage run -m bowler.tests -%endif - - -%files -n python3-%{srcname} -%license LICENSE -%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md -%{_bindir}/%{srcname} -%{python3_sitelib}/%{srcname}/ -%exclude %{python3_sitelib}/%{srcname}/tests -%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ - -%files -n python3-%{srcname}-docs -%doc docs/*.md - - -%changelog -* Thu Nov 19 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.9.0-1 -- Initial package |