From e163e67a60229047b384069917d9907310d43a4078e3f16ea528ee48f66cc2c7 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 13 Jan 2025 03:02:33 +0000 Subject: [PATCH] - Update to 0.13.3: * Support poetry-core 2.0 by @s-t-e-v-e-n-k in #37 - Drop patch support-poetry-core-2.patch, included upstream. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-easydev?expand=0&rev=20 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + easydev-0.13.2.tar.gz | 3 ++ easydev-0.13.3.tar.gz | 3 ++ python-easydev.changes | 75 ++++++++++++++++++++++++++++++++++++ python-easydev.spec | 77 +++++++++++++++++++++++++++++++++++++ support-poetry-core-2.patch | 31 +++++++++++++++ 7 files changed, 213 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 easydev-0.13.2.tar.gz create mode 100644 easydev-0.13.3.tar.gz create mode 100644 python-easydev.changes create mode 100644 python-easydev.spec create mode 100644 support-poetry-core-2.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/easydev-0.13.2.tar.gz b/easydev-0.13.2.tar.gz new file mode 100644 index 0000000..996e8e9 --- /dev/null +++ b/easydev-0.13.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcf2a26adfdc1e108ef65f6b5cbf917740feb4726ef3332ce2ec2cf29b722d6a +size 81280 diff --git a/easydev-0.13.3.tar.gz b/easydev-0.13.3.tar.gz new file mode 100644 index 0000000..47a9067 --- /dev/null +++ b/easydev-0.13.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:347f814bde55f444cd4f1e6550189957f5933b257c4d7ade21198db370e417de +size 83581 diff --git a/python-easydev.changes b/python-easydev.changes new file mode 100644 index 0000000..c4e845d --- /dev/null +++ b/python-easydev.changes @@ -0,0 +1,75 @@ +------------------------------------------------------------------- +Mon Jan 13 03:01:27 UTC 2025 - Steve Kowalik + +- Update to 0.13.3: + * Support poetry-core 2.0 by @s-t-e-v-e-n-k in #37 +- Drop patch support-poetry-core-2.patch, included upstream. + +------------------------------------------------------------------- +Fri Jan 10 04:35:36 UTC 2025 - Steve Kowalik + +- Add patch support-poetry-core-2.patch: + * Support poetry-core 2.0 changes. + +------------------------------------------------------------------- +Mon Apr 29 06:11:17 UTC 2024 - pgajdos@suse.com + +- update to 0.13.2 + * remove Python2 crumbs by @a-detiste in #29 + * remove more Python2 compat code by @a-detiste in #30 +- removed patches + - python-easydev-no-mock.patch (upstreamed) + +------------------------------------------------------------------- +Tue Mar 28 06:38:58 UTC 2023 - Steve Kowalik + +- Remove unneeded BuildRequires on line_profiler. + +------------------------------------------------------------------- +Fri Feb 10 10:33:40 UTC 2023 - Dirk Müller + +- update to 0.12.1: + * Fix a ipython warning + +------------------------------------------------------------------- +Wed Mar 16 13:50:05 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build +- added patches + fix https://github.com/cokelaer/easydev/issues/20 + + python-easydev-no-mock.patch + +------------------------------------------------------------------- +Thu Sep 16 04:01:51 UTC 2021 - Steve Kowalik + +- Update to 0.12.0: + * Fixing a warning from deprecated get_platform function. + * Applied black + * some cleanups + * removed the package module (not used) + * more tests + * logging slightly improved +- Actually run tests, skipping one test that requires network. +- Stop installing easydev_buildPackage + +------------------------------------------------------------------- +Tue May 26 06:34:04 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Fri Sep 13 08:20:09 UTC 2019 - Tomáš Chvátal + +- Update to 0.9.38: + * synchronized with pypi. Just an updated travis version to get rid of + py3.3 and removing deprecated messages. + +------------------------------------------------------------------- +Tue Dec 4 12:47:31 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Thu May 3 04:42:13 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-easydev.spec b/python-easydev.spec new file mode 100644 index 0000000..421f850 --- /dev/null +++ b/python-easydev.spec @@ -0,0 +1,77 @@ +# +# spec file for package python-easydev +# +# Copyright (c) 2025 SUSE LLC +# +# 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/ +# + + +Name: python-easydev +Version: 0.13.3 +Release: 0 +Summary: Common utilities to ease the development of Python packages +License: BSD-3-Clause +URL: https://github.com/cokelaer/easydev +Source: https://github.com/cokelaer/easydev/archive/refs/tags/v%{version}.tar.gz#/easydev-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-colorama +Requires: python-colorlog +Requires: python-line_profiler +Requires: python-pexpect +Requires: python-platformdirs +Requires(post): update-alternatives +Requires(postun): update-alternatives +Recommends: python-line_profiler +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module colorama} +BuildRequires: %{python_module colorlog} +BuildRequires: %{python_module line_profiler} +BuildRequires: %{python_module pexpect} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module platformdirs} +BuildRequires: %{python_module poetry} +BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module pytest} +# /SECTION +%python_subpackages + +%description +The easydev package provides miscellaneous functions that are +repeatedly used during the development of Python packages. The goal +is to help developers on speeding up their own dev. It has been used +also as an incubator for other packages and is stable. + +%prep +%autosetup -p1 -n easydev-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Requires network access +%pytest -k 'not test_isurl' + +%files %{python_files} +%doc README.rst +%license COPYING +%{python_sitelib}/easydev +%{python_sitelib}/easydev-%{version}.dist-info + +%changelog diff --git a/support-poetry-core-2.patch b/support-poetry-core-2.patch new file mode 100644 index 0000000..e1f8eea --- /dev/null +++ b/support-poetry-core-2.patch @@ -0,0 +1,31 @@ +From 57840ffd66a23e9546c3cf97f870094d0b6dd5aa Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +Date: Fri, 10 Jan 2025 15:33:10 +1100 +Subject: [PATCH] Support poetry-core 2.0 + +poetry-core 2.0 has been released, and it is a lot more strict with the +configuration in pyproject.toml. +--- + pyproject.toml | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 52c55a3..2ad7f62 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -2,11 +2,13 @@ + requires = ["poetry-core"] + build-backend = "poetry.core.masonry.api" + +-[tool.poetry] ++[project] + name = "easydev" + version = "0.13.2" + description = "Commn utilities to ease development of Python packages" +-authors = ["Thomas Cokelaer "] ++authors = [ ++ { "name" = "Thomas Cokelaer", "email" = "thomas.cokelaer@pasteur.fr" }, ++] + license = "BSD-3-Clause" + readme = "README.rst" + keywords = ["config", "decorators", "development"]