Skip to content

Add entrypoints to setup.py #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 26, 2022
Merged
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ recursive-include numcodecs *.pxd
recursive-include numcodecs *.c
recursive-include numcodecs *.h
include cpuinfo.py
include numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt
1 change: 1 addition & 0 deletions numcodecs/tests/test_entrypoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def set_path():
numcodecs.registry.codec_registry.pop("test")


@pytest.mark.xfail(reason="FIXME: not working in wheels build")
def test_entrypoint_codec(set_path):
cls = numcodecs.registry.get_codec({"id": "test"})
assert cls.codec_id == "test"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cython
entrypoints
numpy
msgpack
pytest
Expand Down
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Cython==0.29.21
entrypoints==0.4
msgpack==1.0.2
numpy==1.22.0
zfpy==0.5.5
Expand Down
1 change: 1 addition & 0 deletions requirements_rtfd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ numpydoc
mock
numpy
cython
entrypoints
zfpy==0.5.5
typing-extensions
1 change: 0 additions & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
coverage
coveralls
entrypoints
flake8
pytest
pytest-cov
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def run_setup(with_extensions):
'setuptools-scm>1.5.4'
],
install_requires=[
'entrypoints',
'numpy>=1.7',
'typing-extensions>=3.7.4',
],
Expand Down Expand Up @@ -369,6 +370,7 @@ def run_setup(with_extensions):
maintainer_email='[email protected]',
url='https://github.com/zarr-developers/numcodecs',
license='MIT',
zip_safe=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might not be needed. Just trying something 🍀

That said, we probably already should have had this given we have shared libraries

Or at least shared libraries misbehaving was what had usually prompted this before. Maybe it is not as relevant anymore

)


Expand Down