-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fixes in packaging to make it compatible with maturin 1.4.0 (#39)
* Build package with maturin 1.4.0 * Loosen maturin version requirement * Remove pyo3 from install instructions in README * Remove empty package.metadata.maturin section * Fix the builds * Update action versions * Lock maturin to major version * Bump version of python package to 1.2.1 * Add building src-dist in ubuntu build * Update build.yml Writing out the sha256 checksum for the sdist in `dist/` * Update README.md We should probably support 3.12 as well, since it's a final release. It *should* work, since we're specifically only targeting the broader python 3 abi with this. I should write some simple unit tests that run across the full matrix of python versions. That's a fix for me to do, though. * Update pyproject.toml 3.12 support! We think! --------- Co-authored-by: Dax Pryce <[email protected]>
- Loading branch information
1 parent
3eba7c4
commit 4a06a86
Showing
5 changed files
with
49 additions
and
30 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
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 |
---|---|---|
|
@@ -29,7 +29,7 @@ git clone [email protected]:microsoft/graspologic-native.git | |
cd graspologic-native | ||
python3.8 -m venv venv | ||
pip install -U pip setuptools wheel | ||
pip install pyo3 maturin | ||
pip install maturin | ||
cd packages/pyo3 | ||
maturin build --release -i python3.8 # this is where things break on windows. instead of `python3.8` here, you will need the full path to the correct python.exe on your windows machine, something like `-i "C:\python38\bin\python.exe"` | ||
``` | ||
|
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,19 +1,12 @@ | ||
[package] | ||
name = "graspologic_native" | ||
version = "1.2.0" | ||
version = "1.2.1" | ||
authors = ["[email protected]"] | ||
edition = "2018" | ||
license = "MIT" | ||
description = "Python native companion module to the graspologic library" | ||
readme = "README.md" | ||
|
||
[package.metadata.maturin] | ||
maintainer = "Dax Pryce" | ||
maintainer-email = "[email protected]" | ||
requires-python = ">=3.6,<3.12" | ||
project-url = {"Github" = "https://github.com/microsoft/graspologic-native", "Graspologic"="https://github.com/microsoft/graspologic"} | ||
classifier = ["Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: 3.6", "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", "Topic :: Scientific/Engineering :: Mathematics"] | ||
|
||
[lib] | ||
name = "graspologic_native" | ||
crate-type = ["rlib","cdylib"] | ||
|
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,26 @@ | ||
[project] | ||
name = "graspologic-native" | ||
maintainer = "Dax Pryce" | ||
maintainer-email = "[email protected]" | ||
requires-python = ">=3.6,<3.13" | ||
classifier = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python :: Implementation :: CPython", | ||
"Programming Language :: Python :: 3.6", | ||
"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", | ||
"Topic :: Scientific/Engineering :: Mathematics"] | ||
|
||
[project.urls] | ||
Github = "https://github.com/microsoft/graspologic-native" | ||
Graspologic = "https://github.com/microsoft/graspologic" | ||
|
||
|
||
[build-system] | ||
requires = ["maturin>=0.12,<0.13"] | ||
requires = ["maturin>=1.4,<2.0"] | ||
build-backend = "maturin" |