forked from jf---/python-fcl
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from BerkeleyAutomation/remove/arm
Enable MacOS ARM Runner And Wheels
- Loading branch information
Showing
8 changed files
with
123 additions
and
97 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 |
---|---|---|
|
@@ -12,27 +12,23 @@ jobs: | |
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: flake8 | ||
uses: py-actions/flake8@v2 | ||
- name: black | ||
uses: psf/black@stable | ||
with: | ||
options: '--check --diff -l 90' | ||
python-version: "3.10" | ||
- name: ruff | ||
run: | | ||
pip install ruff | ||
ruff . | ||
build_wheels: | ||
name: Build wheel on ${{matrix.platform}} | ||
runs-on: ${{matrix.platform}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [ubuntu-latest, macos-latest, windows-latest] | ||
platform: [ubuntu-latest, macos-latest, windows-latest, macos-14] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_MACOS: 'x86_64 arm64' | ||
uses: pypa/[email protected] | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl |
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
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 |
---|---|---|
|
@@ -3,10 +3,99 @@ requires = [ | |
"setuptools", | ||
"wheel", | ||
"Cython<3.0", | ||
"oldest-supported-numpy; python_version<'3.12'", | ||
"numpy; python_version<'3.12'", | ||
"numpy>=1.26.0b1; python_version>='3.12'"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "python-fcl" | ||
description = "Python bindings for the Flexible Collision Library" | ||
requires-python = ">=3.7" | ||
authors = [ | ||
{name = "Jelle Feringa", email = "[email protected]"}, | ||
{name = "Matthew Matl", email = "[email protected]"}, | ||
{name = "Shirokuma", email = "[email protected]"}, | ||
{name = "Michael Dawson-Haggerty"}, | ||
{name = "See contributor list"}, | ||
] | ||
maintainers = [{name = "Matthew Matl", email = "[email protected]"}] | ||
license = {text = "BSD"} | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
] | ||
keywords = ["fcl collision distance"] | ||
dependencies = [ | ||
"numpy; python_version<'3.12'", | ||
"numpy>=1.26.0b1; python_version>='3.12'", | ||
"Cython", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/berkeleyautomation/python-fcl" | ||
|
||
|
||
|
||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
package-dir = {"" = "src"} | ||
license-files = ["LICENSE"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.pyx", "*.pxd", "*.dll"] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "fcl.__version__"} | ||
|
||
[tool.ruff] | ||
target-version = "py37" | ||
line-length = 90 | ||
|
||
[tool.ruff.lint] | ||
# See https://github.com/charliermarsh/ruff#rules for error code definitions. | ||
select = [ | ||
"B", # bugbear | ||
"C", # comprehensions | ||
"E", # style errors | ||
"F", # flakes | ||
"I", # import sorting | ||
"RUF100", # meta | ||
"U", # upgrade | ||
"W", # style warnings | ||
"YTT", # sys.version | ||
] | ||
|
||
ignore = [ | ||
"C901", # Comprehension is too complex (11 > 10) | ||
"N802", # Function name should be lowercase | ||
"N806", # Variable in function should be lowercase | ||
"E501", # Line too long ({width} > {limit} characters) | ||
"B904", # raise ... from err | ||
"B905", # zip() without an explicit strict= parameter | ||
] | ||
|
||
|
||
[tool.cibuildwheel] | ||
skip = ["pp*", "*musllinux*"] | ||
test-requires = "pytest" | ||
|
@@ -18,7 +107,9 @@ archs = ["x86_64"] | |
|
||
[tool.cibuildwheel.macos] | ||
before-all = "bash build_dependencies/install_macos.sh" | ||
environment = { CPATH = "$(brew --prefix)/include:$(brew --prefix)/include/eigen3", LD_LIBRARY_PATH = "$(brew --prefix)/lib" } | ||
|
||
[tool.cibuildwheel.windows] | ||
before-all = "powershell build_dependencies\\install_windows.ps1" | ||
archs = ["AMD64"] | ||
archs = ["AMD64"] | ||
|
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 +1 @@ | ||
__version__ = "0.7.0.5" | ||
__version__ = "0.7.0.6" |
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