11
0

16 Commits

Author SHA256 Message Date
a72efdfc80 Accepting request 1243428 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1243428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=8
2025-02-06 21:04:51 +00:00
a6b82f21f3 Accepting request 1241358 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1241358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=7
2025-01-31 15:03:32 +00:00
e0e2610fb7 - Add minimal-dependencies.patch fixing the issue with test.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=16
2025-01-30 13:21:08 +00:00
4876584776 Accepting request 1234724 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1234724
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=6
2025-01-05 14:30:23 +00:00
dea58ebf5f - Skip failing test and open an issue upstream
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=14
2025-01-03 12:35:46 +00:00
18400fef21 Accepting request 1133868 from devel:languages:python
- update to 5.0:
  * Drop support for Python 2.7, 3.5, 3.6.

OBS-URL: https://build.opensuse.org/request/show/1133868
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=5
2023-12-19 22:15:23 +00:00
ad3d76e2fe - update to 5.0:
* Drop support for Python 2.7, 3.5, 3.6.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=12
2023-12-18 13:28:50 +00:00
8fd4fc0ebd Accepting request 1092193 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1092193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=4
2023-06-12 13:24:21 +00:00
1b59d7a039 Accepting request 1092174 from home:ecsos:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1092174
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=10
2023-06-11 11:26:50 +00:00
510a416365 Accepting request 1041335 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1041335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=3
2022-12-09 12:16:30 +00:00
4775bc091a Accepting request 1041285 from home:yarunachalam:branches:devel:languages:python
- Update to version 4.3 
  * Add support for Python 3.8, 3.9, 3.10, 3.11.
  * Drop support for Python 3.4.

OBS-URL: https://build.opensuse.org/request/show/1041285
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=8
2022-12-08 08:28:34 +00:00
11a1ea7090 Accepting request 691797 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/691797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=2
2019-04-08 18:53:13 +00:00
Tomáš Chvátal
34e1a4dd66 Accepting request 691795 from home:mcalabkova:branches:devel:languages:python
- update to version 4.2
  * Add support for Python 3.5, 3.6 and 3.7.
  * Drop support for Python 2.6, 3.2 and 3.3.
  * Add a page to the docs on hacking zope.location.
  * Note additional documentation dependencies.
  * Remove internal _compat implementation module.
- drop *-doc subpackage, use multibuild instead.

OBS-URL: https://build.opensuse.org/request/show/691795
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=6
2019-04-05 12:01:09 +00:00
40ec2a0029 Accepting request 569729 from devel:languages:python
Please put it in openSUSE:Factory:Staging:adi:19

OBS-URL: https://build.opensuse.org/request/show/569729
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-zope.location?expand=0&rev=1
2018-01-29 13:57:42 +00:00
98707d19f3 Accepting request 510284 from home:alois:branches:devel:languages:python
Please also create link to -doc

OBS-URL: https://build.opensuse.org/request/show/510284
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=2
2017-07-16 16:23:01 +00:00
Sascha Peilicke
6a82e27f7c Accepting request 184597 from home:frispete:python
Dear Sascha, 

as you can see, I'm in the process of adding a couple of missing packages
from the zope family.

You're right, the documentation could be more verbose, but facing that many
missing packages with some much serious issues (circular dependencies, 
failing tests, failing doc builds), I'm happy, that most of them come with
enabled tests, at least.

I try my best, to get it right from the start.

Cheers,
Pete

OBS-URL: https://build.opensuse.org/request/show/184597
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.location?expand=0&rev=1
2013-07-30 10:26:58 +00:00
2 changed files with 0 additions and 124 deletions

View File

@@ -1,121 +0,0 @@
From bbe277f55cd69de23cdd32d277cc30e837ef70b3 Mon Sep 17 00:00:00 2001
From: Michael Howitz <icemac@gmx.net>
Date: Thu, 30 Jan 2025 09:14:32 +0100
Subject: [PATCH] Add tests for minimal dependencies.
Add `copy` extra to include the `zope.copy` dependency.
Fixes #5.
---
.meta.toml | 16 +++++++++++++++-
CHANGES.rst | 3 +++
setup.py | 17 ++++++++++++++---
src/zope/location/testing.py | 10 ++++++++++
src/zope/location/tests/test_configure.py | 12 +++++++++++-
src/zope/location/tests/test_pickling.py | 3 +++
tox.ini | 10 ++++++++++
7 files changed, 66 insertions(+), 5 deletions(-)
create mode 100644 src/zope/location/testing.py
diff --git a/setup.py b/setup.py
index c12779a..f5b72bd 100644
--- a/setup.py
+++ b/setup.py
@@ -37,8 +37,11 @@ def read(*rnames):
'zope.component >= 4.0.1',
]
-TESTS_REQUIRE = ZCML_REQUIRES + COMPONENT_REQUIRES + [
+COPY_REQUIRES = [
'zope.copy >= 4.0',
+]
+
+TESTS_REQUIRE = [
'zope.testrunner',
]
@@ -57,7 +60,7 @@ def read(*rnames):
+ '\n\n' +
read('CHANGES.rst')
),
- license='ZPL 2.1',
+ license='ZPL-2.1',
keywords=('zope location structural'),
classifiers=[
'Development Status :: 5 - Production/Stable',
@@ -93,7 +96,15 @@ def read(*rnames):
extras_require={
'zcml': ZCML_REQUIRES,
'component': COMPONENT_REQUIRES,
- 'test': TESTS_REQUIRE,
+ 'copy': COPY_REQUIRES,
+ 'test-minimal': TESTS_REQUIRE,
+ 'test-component': TESTS_REQUIRE + COMPONENT_REQUIRES + ZCML_REQUIRES,
+ 'test': (
+ TESTS_REQUIRE
+ + ZCML_REQUIRES
+ + COMPONENT_REQUIRES
+ + COPY_REQUIRES
+ ),
'docs': DOCS_REQUIRE,
},
include_package_data=True,
diff --git a/src/zope/location/testing.py b/src/zope/location/testing.py
new file mode 100644
index 0000000..bf28b3f
--- /dev/null
+++ b/src/zope/location/testing.py
@@ -0,0 +1,10 @@
+import importlib
+import unittest
+
+
+def skipUnlessImportable(module: str):
+ try:
+ importlib.import_module(module)
+ except ModuleNotFoundError: # pragma: no cover
+ return unittest.skip(f"{module!r} not importable")
+ return lambda func: func
diff --git a/src/zope/location/tests/test_configure.py b/src/zope/location/tests/test_configure.py
index 332faa5..5f1bf4f 100644
--- a/src/zope/location/tests/test_configure.py
+++ b/src/zope/location/tests/test_configure.py
@@ -15,12 +15,22 @@
"""
import unittest
+from zope.location.testing import skipUnlessImportable
+
+@skipUnlessImportable('zope.component')
class Test_ZCML_loads(unittest.TestCase):
def test_it(self):
import zope.component # no registrations made if not present
- ADAPTERS_REGISTERED = 4
+
+ try:
+ import zope.copy
+ ADAPTERS_REGISTERED = 4
+ except ModuleNotFoundError: # pragma: no cover
+ ADAPTERS_REGISTERED = 3
+ else:
+ del zope.copy
from zope.configuration.xmlconfig import XMLConfig
from zope.configuration.xmlconfig import _clearContext
from zope.configuration.xmlconfig import _getContext
diff --git a/src/zope/location/tests/test_pickling.py b/src/zope/location/tests/test_pickling.py
index ddcc274..4c19709 100644
--- a/src/zope/location/tests/test_pickling.py
+++ b/src/zope/location/tests/test_pickling.py
@@ -13,7 +13,10 @@
##############################################################################
import unittest
+from zope.location.testing import skipUnlessImportable
+
+@skipUnlessImportable('zope.copy')
class LocationCopyHookTests(unittest.TestCase):
def _getTargetClass(self):

BIN
zope.location-5.0.tar.gz (Stored with Git LFS)

Binary file not shown.