Skip to content

Commit

Permalink
fix(any) Add a long description to the package.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Sep 21, 2020
1 parent 51ba5bd commit 0c2bf79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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='':
Expand Down
9 changes: 9 additions & 0 deletions packages/any/setup.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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=[
Expand Down

0 comments on commit 0c2bf79

Please sign in to comment.