Remove the need to include the version in the entry-point
Remove the need to include the version in the entry-point - we can already determine that from the distribution metadata.
Note that this renders the entrypoint to be simply a flag to cmmnbuild-dep-manager
to say that it has Java dependencies. In the future, we may as well not bother with the entrypoint, and state that if you depend on cmmnbuild-dep-manager
, then you have the opportunity to declare Java dependencies.
The resulting change in PyJapc will look like:
diff --git a/setup.py b/setup.py
index 8ea45ff..427c335 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ with (HERE / 'README.rst').open('rt') as fh:
REQUIREMENTS: dict = {
'core': [
'jpype1 ~=1.1',
- 'cmmnbuild-dep-manager~=2.9',
+ 'cmmnbuild-dep-manager~=2.13',
'numpy',
'pytz',
'typing_extensions >=4.2,<5; python_version < "3.8"'
@@ -73,6 +73,6 @@ setup(
},
entry_points={
# Register with cmmnbuild_dep_manager.
- 'cmmnbuild_dep_manager': [f'pyjapc={VERSION}'],
+ 'cmmnbuild_dep_manager': [f'pyjapc=site'],
},
)
Closes #14 (closed).