From a7512601a3aec8b8d12c92b2c5d3b995a9e53d88 Mon Sep 17 00:00:00 2001 From: Flavio Pingas Date: Tue, 28 Mar 2023 15:00:57 +0200 Subject: [PATCH] Test distribution --- .github/workflows/push.yaml | 3 ++- setup.py | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index f09a2dcc..be99952f 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -42,8 +42,9 @@ jobs: set -euxo pipefail python3 -m pip install --upgrade pip - python3 -m pip install build + python3 -m pip install build twine python3 -m build + python3 -m twine check dist/* test-suite: runs-on: ubuntu-20.04 diff --git a/setup.py b/setup.py index d6044868..065ec867 100644 --- a/setup.py +++ b/setup.py @@ -26,8 +26,13 @@ def requirements_from_pip(filename='requirements.txt'): all_deps = all_models_deps + tools_deps devel_deps = test_deps + all_deps +with open("README.md", "r") as fh: + long_description = fh.read() + setup(name=MODULE_NAME, description="Functional machine learning", + long_description=long_description, + long_description_content_type="text/markdown", url='https://github.com/nubank/{:s}'.format(REPO_NAME), python_requires='>=3.6.2,<3.10', author="Nubank",