diff --git a/.gitignore b/.gitignore index 9702d48e..66b63318 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /.env /.pytest_cache/ /benchmarks/__pycache__/ +/packages/any/api_README.md /packages/any/build /packages/any/dist /packages/any/wasmer.egg-info/ diff --git a/justfile b/justfile index 8cb4219c..accf92fb 100644 --- a/justfile +++ b/justfile @@ -76,7 +76,8 @@ build-wheel package python_version rust_target: # Create a distribution of wasmer that can be installed anywhere (it will fail on import) build-any-wheel: mkdir -p ./target/wheels/ - cd packages/any/ && pip3 wheel . -w ../../target/wheels/ + cp packages/api/README.md packages/any/api_README.md + cd packages/any/ && pip3 wheel . --wheel-dir ../../target/wheels/ # Run Python. python-run file='': diff --git a/packages/any/setup.py b/packages/any/setup.py index b44073ae..21a5ad94 100644 --- a/packages/any/setup.py +++ b/packages/any/setup.py @@ -1,5 +1,12 @@ from setuptools import setup from setuptools.dist import Distribution +from os import path + +__dir__ = path.abspath(path.dirname(__file__)) +readme_path = path.join(__dir__, 'api_README.md') + +with open(readme_path, encoding='utf-8') as readme: + long_description = readme.read() setup( name='wasmer', @@ -9,6 +16,8 @@ license='MIT', packages=['wasmer'], description='Python extension to run WebAssembly binaries', + long_description=long_description, + long_description_content_type='text/markdown', zip_safe=False, platforms='any', classifiers=[