Skip to content

Commit

Permalink
fix: pypi rejected wheel metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
russkel committed Jun 29, 2022
1 parent a116c75 commit 4fcf0f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
branches:
- master

env:
CIBW_TEST_COMMAND: python {project}/tests/test.py


jobs:
build_sdist:
name: Build SDist
Expand Down Expand Up @@ -107,15 +103,13 @@ jobs:
make install;
CIBW_SKIP: pp*
CIBW_TEST_SKIP: "*"
# CIBW_TEST_COMMAND: python {project}/tests/test.py

- name: Build MacOS Wheels
uses: pypa/[email protected]
if: matrix.os == 'macos-latest'
env:
CIBW_SKIP: pp*
CIBW_TEST_SKIP: "*"
# CIBW_TEST_COMMAND: python {project}/tests/test.py

- name: Show files
run: ls -lh wheelhouse
Expand All @@ -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:
Expand All @@ -147,6 +141,9 @@ jobs:
name: sdist
path: dist

- uses: olegtarasov/[email protected]
id: tagName

- name: Create Release
id: create_release
uses: "marvinpinto/[email protected]"
Expand All @@ -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
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
python-moos
===========
Python (2.7 and 3) bindings for MOOS.
Python bindings for MOOS.

| CI | status |
|----------------------|--------|
| conda.recipe | [![Conda Actions Status][actions-conda-badge]][actions-conda-link] |
| 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
Expand Down
11 changes: 8 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"],
Expand All @@ -19,10 +23,11 @@
setup(
name="pymoos",
version=__version__,
author='Mohamed Saad Ibn Seddik',
author_email='[email protected]',
author='Mohamed Saad Ibn Seddik <[email protected]>',
maintainer='Russ Webber <[email protected]>',
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"},
Expand Down

0 comments on commit 4fcf0f1

Please sign in to comment.