-
Notifications
You must be signed in to change notification settings - Fork 54
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
16 changed files
with
128 additions
and
167 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 |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
[run] | ||
branch = True | ||
omit = | ||
*/setup.py | ||
oct2py/compat.py | ||
oct2py/tests/* | ||
oct2py/ipython/tests/* | ||
|
||
|
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,19 @@ | ||
[flake8] | ||
ignore = E501, W503, E402 | ||
builtins = "c, get_config" | ||
exclude = [ | ||
.cache, | ||
.github, | ||
docs | ||
] | ||
enable-extensions = "G" | ||
extend-ignore = [ | ||
G001, G002, G004, G200, G201, G202, | ||
# black adds spaces around ':' | ||
E203 | ||
] | ||
per-file-ignores = [ | ||
# B011: Do not call assert False since python -O removes these calls | ||
# F841 local variable 'foo' is assigned to but never used | ||
tests/*: B011, F841 | ||
] |
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,2 @@ | ||
# Run AutoFormatters: https://github.com/blink1073/oct2py/pull/232 | ||
00192f2cd97f2395cfce8af69ba3671ae0cb70b1 |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
conda: | ||
file: docs/environment.yml |
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
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
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 |
---|---|---|
@@ -1,9 +1,53 @@ | ||
[build-system] | ||
requires = ["setuptools>=46.4.0", "wheel", "packaging", "numpy", "octave_kernel"] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["flit_core >=3.2,<4"] | ||
build-backend = "flit_core.buildapi" | ||
|
||
[project] | ||
name = "oct2py" | ||
version = "5.5.1" | ||
description = "'Python to GNU Octave bridge --> run m-files from python.'" | ||
license = {text = "MIT"} | ||
authors = [{name = "Steven Silvester", email = "[email protected]"}] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"numpy >=1.12", | ||
"scipy >=0.17", | ||
"octave_kernel >= 0.34.0", | ||
] | ||
readme = "README.rst" | ||
|
||
[project.urls] | ||
homepage = "https://github.com/blink1073/oct2py" | ||
documentation = "https://blink1073.github.io/oct2py" | ||
|
||
[project.optional-dependencies] | ||
test = [ | ||
"pytest", | ||
"pandas", | ||
"nbconvert", | ||
"pytest-timeout", | ||
"pre-commit", | ||
] | ||
docs = [ | ||
"sphinx", | ||
"sphinx-bootstrap-theme", | ||
"myst-parser", | ||
"sphinx_rtd_theme" | ||
] | ||
|
||
[tool.jupyter-releaser] | ||
skip = ["check-links"] | ||
skip = ["check-links", "check-manifest"] | ||
|
||
[tool.jupyter-releaser.hooks] | ||
before-build-python = ["sudo apt-get update", "sudo apt-get install -qq octave octave-signal liboctave-dev"] | ||
|
@@ -12,24 +56,36 @@ before-check-links = ["sudo apt-get update", "sudo apt-get install -qq octave oc | |
[tool.tbump.version] | ||
current = "5.5.1" | ||
regex = ''' | ||
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<micro>\d+)(?P<releaselevel>[a-z]+)?(?P<serial>\d+)? | ||
(?P<major>\d+)\.(?P<minor>\d+)\.(?P<micro>\d+)(?P<releaselevel>[a-z]+)?(?P<serial>[a-z]+)? | ||
''' | ||
|
||
[tool.tbump.git] | ||
message_template = "Bump to {new_version}" | ||
tag_template = "v{new_version}" | ||
|
||
[[tool.tbump.file]] | ||
src = "pyproject.toml" | ||
version_template = '{major}.{minor}.{micro}{releaselevel}{serial}' | ||
|
||
[[tool.tbump.file]] | ||
src = "oct2py/_version.py" | ||
version_template = '({major}, {minor}, {micro}, "{releaselevel}", {serial})' | ||
version_template = '({major}, {minor}, {micro}, "{releaselevel}", "{serial}")' | ||
|
||
[[tool.tbump.file]] | ||
src = "docs/source/conf.py" | ||
version_template = '{major}.{minor}.{micro}{releaselevel}{serial}' | ||
|
||
[[tool.tbump.file]] | ||
src = "Makefile" | ||
version_template = '{major}.{minor}.{micro}{releaselevel}{serial}' | ||
|
||
[[tool.tbump.field]] | ||
name = "releaselevel" | ||
default = "final" | ||
default = "" | ||
|
||
[[tool.tbump.field]] | ||
name = "serial" | ||
default = 0 | ||
default = "" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = "oct2py" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.