17
0

Accepting request 851075 from home:jayvdb:branches:devel:languages:python:django

- Update to v1.0.0

OBS-URL: https://build.opensuse.org/request/show/851075
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-django-codemod?expand=0&rev=3
This commit is contained in:
2020-11-27 13:53:52 +00:00
committed by Git OBS Bridge
parent aeb7f9e641
commit 44f00a5dba
4 changed files with 18 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e2424801922efc9e2c13602ab8fce1920ff4d7dee7aedea43eb2fbd76e142dc
size 26206

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3276655feca901653962339d799b5f9aee6e866581aa376781c4ae831f34ab86
size 63035

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 26 08:48:41 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.0.0
* See https://github.com/browniebroke/django-codemod/compare/v0.13.0...v1.0.0
-------------------------------------------------------------------
Sat Aug 8 03:53:00 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -18,19 +18,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-django-codemod
Version: 0.13.0
Version: 1.0.0
Release: 0
Summary: Collections of libCST codemodders to upgrade Django
License: MIT
Group: Development/Languages/Python
URL: https://github.com/browniebroke/django-codemod
Source: https://files.pythonhosted.org/packages/source/d/django-codemod/django-codemod-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
Source: https://github.com/browniebroke/django-codemod/archive/v%{version}.tar.gz#/django-codemod-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-click
Requires: python-libcst
Requires: python-rich
Recommends: python-setuptools
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
@@ -49,14 +51,14 @@ Collections of libCST codemodders to upgrade Django.
%prep
%setup -q -n django-codemod-%{version}
sed -i 's/rich<5/rich/' setup.cfg
sed -i '/addopts/d' setup.cfg
sed -i 's/rich = ".*"/rich = "*"/' pyproject.toml
sed -i '/addopts/d' pyproject.toml
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/djcodemod
%python_expand %fdupes %{buildroot}%{$python_sitelib}