-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some fixes were made so the wheels generates are compatible with the current binary distributions of FreeCAD, so installing the FreeCAD pyoptools workbench is straight forward.
- Loading branch information
1 parent
5801114
commit 27d6c9e
Showing
5 changed files
with
76 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# set_cibw_build_env.py | ||
import os | ||
|
||
version = os.environ.get('PYTHON_VERSION').replace('.', '') | ||
env_file = os.environ['GITHUB_ENV'] | ||
|
||
with open(env_file, 'a') as f: | ||
f.write(f'CIBW_BUILD=cp{version}-*{os.linesep}') |
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,3 +1,45 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "numpy==1.24.2", "Cython==0.29.32"] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
"Cython", | ||
"numpy" | ||
] | ||
|
||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyoptools" | ||
version = "0.2.3" | ||
description = "Python tools for simulation of optical systems" | ||
authors = [{ name = "Ricardo Amézquita Orozco", email = "ramezquitao@cihologramas.com" }] | ||
license = {file = "LICENSE.txt"} | ||
readme = "README.md" | ||
dependencies = [ | ||
# Different numpy versions required for the integration with Freecad | ||
# 0.21.2 in windows and linux using the installer and appimage from the | ||
# FreeCAD website | ||
"numpy==1.19.3; python_version=='3.8'", | ||
"numpy==1.26.2; python_version=='3.9'", | ||
"numpy==1.26.2; python_version=='3.10'", | ||
# So it works directly in Debian 12 | ||
"numpy==1.24.2; python_version=='3.11'", | ||
"scipy>=1.5.2", | ||
"imageio>=2.9.0", | ||
"PyYAML>=5.3.1", | ||
"matplotlib>=3.3.1", | ||
"ijson>=3.1.3", | ||
"Pillow>=10.0.1", | ||
"jupyterlab>=3.0.0", | ||
"ipython>=7.19.0", | ||
"pythreejs>=2.2.0", | ||
"pytest>=6.1.1", | ||
"pep8>=1.7.1", | ||
"sphinxcontrib-apidoc>=0.3.0", | ||
"mako>=1.1.3", | ||
"ipykernel>=5.3.4", | ||
"nbformat>=5.0.8", | ||
"sphinx>=3.2.1", | ||
"nbsphinx>=0.8.0", | ||
"importlib-resources>=3.3.0", | ||
] |
This file was deleted.
Oops, something went wrong.
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