forked from msis/python-moos
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,10 +7,6 @@ on: | |
branches: | ||
- master | ||
|
||
env: | ||
CIBW_TEST_COMMAND: python {project}/tests/test.py | ||
|
||
|
||
jobs: | ||
build_sdist: | ||
name: Build SDist | ||
|
@@ -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 | ||
|
@@ -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/[email protected] | ||
id: tagName | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: "marvinpinto/[email protected]" | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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='[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"}, | ||
|