diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 5ce5141..b295f3f 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,10 +7,6 @@ on: branches: - master -env: - CIBW_TEST_COMMAND: python {project}/tests/test.py - - jobs: build_sdist: name: Build SDist @@ -107,7 +103,6 @@ jobs: make install; CIBW_SKIP: pp* CIBW_TEST_SKIP: "*" - # CIBW_TEST_COMMAND: python {project}/tests/test.py - name: Build MacOS Wheels uses: pypa/cibuildwheel@v2.7.0 @@ -115,7 +110,6 @@ jobs: env: CIBW_SKIP: pp* CIBW_TEST_SKIP: "*" - # CIBW_TEST_COMMAND: python {project}/tests/test.py - name: Show files run: ls -lh wheelhouse @@ -135,7 +129,7 @@ jobs: release: needs: ['build_wheels', 'build_sdist'] runs-on: ubuntu-latest - if: github.ref == 'refs/heads/master' + if: startsWith(github.event.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v3 with: @@ -147,6 +141,9 @@ jobs: name: sdist path: dist + - uses: olegtarasov/get-tag@v2.1 + id: tagName + - name: Create Release id: create_release uses: "marvinpinto/action-automatic-releases@v1.2.1" @@ -155,7 +152,7 @@ jobs: automatic_release_tag: "latest" draft: true prerelease: false - title: pymoos TAG HERE + title: pymoos ${{ steps.tagName.outputs.tag }} files: | dist/*.whl dist/*.tar.gz diff --git a/README.md b/README.md index eff73ae..b6a7bc3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ python-moos =========== -Python (2.7 and 3) bindings for MOOS. +Python bindings for MOOS. | CI | status | |----------------------|--------| @@ -8,10 +8,9 @@ Python (2.7 and 3) bindings for MOOS. | pip builds | [![Pip Actions Status][actions-pip-badge]][actions-pip-link] | | [`cibuildwheel`][] | [![Wheels Actions Status][actions-wheels-badge]][actions-wheels-link] | -[actions-badge]: https://github.com/russkel/python-moos/workflows/Tests/badge.svg -[actions-conda-link]: https://github.com/russkel/python-moos/actions?query=workflow%3A%22Conda +[actions-conda-link]: https://github.com/russkel/python-moos/actions?query=workflow%3AConda [actions-conda-badge]: https://github.com/russkel/python-moos/workflows/Conda/badge.svg -[actions-pip-link]: https://github.com/russkel/python-moos/actions?query=workflow%3A%22Pip +[actions-pip-link]: https://github.com/russkel/python-moos/actions?query=workflow%3APip [actions-pip-badge]: https://github.com/russkel/python-moos/workflows/Pip/badge.svg [actions-wheels-link]: https://github.com/russkel/python-moos/actions?query=workflow%3AWheels [actions-wheels-badge]: https://github.com/russkel/python-moos/workflows/Wheels/badge.svg diff --git a/setup.py b/setup.py index fe4452b..05cb458 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ from setuptools import setup +from pathlib import Path # Available at setup time due to pyproject.toml from pybind11.setup_helpers import Pybind11Extension, build_ext @@ -8,6 +9,9 @@ __version__ = "2022.1" +this_directory = Path(__file__).parent +long_description = (this_directory / "README.md").read_text() + ext_modules = [ Pybind11Extension("pymoos", ["src/pyMOOS.cpp"], @@ -19,10 +23,11 @@ setup( name="pymoos", version=__version__, - author='Mohamed Saad Ibn Seddik', - author_email='ms.ibnseddik@gmail.com', + author='Mohamed Saad Ibn Seddik ', + maintainer='Russ Webber ', description='MOOS Python Wrapper.', - long_description='', + long_description=long_description, + long_description_content_type='text/markdown', url="https://github.com/russkel/python-moos", ext_modules=ext_modules, extras_require={"test": "pytest"},