Skip to content

Commit

Permalink
Upadte package metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
emakryo committed Nov 25, 2021
1 parent 6ad0994 commit 78883b9
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 29 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ jobs:
- name: Install cargo-edit
if: steps.cache-cargo-edit.outputs.cache-hit != 'true'
run: cargo install cargo-edit
- name: Python syntax check
- name: Check flake8
run: flake8
- name: Rust lint
- name: Check clippy
run: cargo clippy
- name: Build wheel
run: |
Expand All @@ -72,8 +72,6 @@ jobs:
run: pip install target/wheels/rustdef-*${{ matrix.python-name }}*.whl
- name: Execute examples
shell: bash
# Skip numpy.ipynb due to problem w/ pyo3 https://github.com/PyO3/rust-numpy/issues/97
# ##[error]thread '<unnamed>' panicked at 'An error occurred while initializing class SliceBox', rustdef_cell_4f1f27901aca8ef8c2b7ba8fd8a3fd78760e5ae7/src/lib.rs:1:1
run: jupyter-nbconvert --to html --debug --stdout --ExecutePreprocessor.timeout=-1 --execute 'Get started.ipynb' types.ipynb numpy.ipynb
working-directory: examples

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 1 addition & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rustdef"
version = "0.3.0"
version = "0.3.1-rc"
authors = ["Ryosuke Kamesawa <emak.ryo@gmail.com>"]
edition = "2018"

Expand All @@ -15,19 +15,3 @@ quote = "1.0.10"
zip = "0.5.13"
syn = { version = "1.0.81", features = ["full"] }
pyo3 = { version = "0.15.1", features = ["extension-module"] } # version corresponds to numpy

[package.metadata.maturin]
requires-dist = ["maturin", "jupyter"]
classifier = [
"Framework :: Jupyter",
"Framework :: IPython",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Rust",
]
requires-python = ">=3.6"
requires-external = ["rust"]
project-url = { Github = "https://github.com/emakryo/rustdef" }
35 changes: 28 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,46 @@
[build-system]
requires = ["maturin"]
requires = ["maturin>=0.12,<0.13"]
build-backend = "maturin"

[package.metadata.maturin]
requires-dist = [
[project]
name = "rustdef"
description = "Jupyter extension which executes Rust functions in Python"
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["Jupyter notebook", "Rust", "Jupyter extension"]
requires-dist = ["maturin", "jupyter"]
classifiers = [
"Framework :: Jupyter",
"Framework :: IPython",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Rust",
]
requires-python = ">=3.6"
project-url = { Github = "https://github.com/emakryo/rustdef" }
dependencies = [
"jupyter",
"pip>=21.1"
"pip",
"toml>=0.10",
"maturin>=0.12",
]
authors = [
{ email = "emak.ryo@gmail.com", name = "Ryosuke Kamesawa" }
]

# Poetry is used for development
[tool.poetry]
name = "rustdef"
version = "0.3.0"
description = ""
authors = ["Ryosuke Kamesawa <emak.ryo@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.6"
pip = "^21.1"
jupyter = "^1.0.0"
maturin = "^0.8.3"
numpy = "^1.19.4"

[tool.poetry.dev-dependencies]

0 comments on commit 78883b9

Please sign in to comment.