-
Notifications
You must be signed in to change notification settings - Fork 21
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 #32 from LabForComputationalVision/pyprojecttoml
Switch all metadata to pyproject.toml
- Loading branch information
Showing
40 changed files
with
85 additions
and
136 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 |
---|---|---|
|
@@ -39,3 +39,6 @@ docs/_build | |
docs/api | ||
|
||
.idea | ||
|
||
# created automatically by setuptools.scm, don't track | ||
version.py |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,51 @@ | ||
[project] | ||
name = "pyrtools" | ||
dynamic = ["version"] | ||
authors = [{name="Pyrtools authors"}] | ||
description = "Python tools for multi-scale image processing, including Laplacian pyramids, Wavelets, and Steerable Pyramids." | ||
readme = "README.md" | ||
requires-python = ">=3.7" | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: MIT License", | ||
"Intended Audience :: Science/Research", | ||
] | ||
keywords = ['image processing', 'visual information processing', 'computational models'] | ||
|
||
dependencies = ['numpy>=1.1', | ||
'scipy>=0.18', | ||
'matplotlib>=1.5', | ||
'tqdm>=4.29', | ||
'requests>=2.21'] | ||
|
||
[project.optional-dependencies] | ||
docs = [ | ||
'sphinx', | ||
'numpydoc', | ||
# because of this issue: | ||
# https://nbsphinx.readthedocs.io/en/0.6.0/installation.html#Pygments-Lexer-for-Syntax-Highlighting | ||
'ipython', | ||
'nbsphinx', | ||
'nbsphinx_link', | ||
'sphinxcontrib-apidoc', | ||
# fix sphinx 7 incompatibility issue | ||
'sphinx_rtd_theme>=1.3.0rc1' | ||
] | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
requires = ["setuptools", "wheel", "setuptools-scm[toml]"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/LabForComputationalVision/pyrtools" | ||
"Documentation" = "https://pyrtools.readthedocs.io/en/latest/" | ||
"Download" = "https://zenodo.org/records/10403034" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/pyrtools/version.py" | ||
version_scheme = 'python-simplified-semver' | ||
local_scheme = 'no-local-version' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,6 @@ | |
|
||
from wheel.bdist_wheel import bdist_wheel | ||
from setuptools import setup, Extension | ||
import importlib | ||
import os | ||
|
||
# copied from kymatio's setup.py: https://github.com/kymatio/kymatio/blob/master/setup.py | ||
pyrtools_version_spec = importlib.util.spec_from_file_location('pyrtools_version', | ||
'pyrtools/version.py') | ||
pyrtools_version_module = importlib.util.module_from_spec(pyrtools_version_spec) | ||
pyrtools_version_spec.loader.exec_module(pyrtools_version_module) | ||
VERSION = pyrtools_version_module.version | ||
|
||
# Adapted from the cibuildwheel example https://github.com/joerick/python-ctypes-package-sample | ||
# it marks the wheel as not specific to the Python API version. | ||
|
@@ -25,33 +16,15 @@ def get_tag(self): | |
|
||
|
||
setup( | ||
name='pyrtools', | ||
version=VERSION, | ||
long_description=open('README.md', 'r').read(), | ||
long_description_content_type='text/markdown', | ||
description='Python tools for multi-scale image processing, including Laplacian pyramids, Wavelets, and Steerable Pyramids', | ||
license='MIT', | ||
url='https://github.com/LabForComputationalVision/pyrtools', | ||
author='Eero Simoncelli', | ||
author_email='[email protected]', | ||
keywords='multi-scale image-processing', | ||
packages=['pyrtools', 'pyrtools.pyramids', 'pyrtools.tools', 'pyrtools.pyramids.c'], | ||
package_data={'': ['*.h', 'LICENSE']}, | ||
install_requires=['numpy>=1.1', | ||
'scipy>=0.18', | ||
'matplotlib>=1.5', | ||
'tqdm>=4.29', | ||
'requests>=2.21'], | ||
ext_modules=[Extension('pyrtools.pyramids.c.wrapConv', | ||
sources=['pyrtools/pyramids/c/py.c', | ||
'pyrtools/pyramids/c/convolve.c', | ||
'pyrtools/pyramids/c/edges.c', | ||
'pyrtools/pyramids/c/wrap.c', | ||
'pyrtools/pyramids/c/internal_pointOp.c'], | ||
depends=['pyrtools/pyramids/c/meta.h', | ||
'pyrtools/pyramids/c/convolve.h', | ||
'pyrtools/pyramids/c/internal_pointOp.h'], | ||
sources=['src/pyrtools/pyramids/c/py.c', | ||
'src/pyrtools/pyramids/c/convolve.c', | ||
'src/pyrtools/pyramids/c/edges.c', | ||
'src/pyrtools/pyramids/c/wrap.c', | ||
'src/pyrtools/pyramids/c/internal_pointOp.c'], | ||
depends=['src/pyrtools/pyramids/c/meta.h', | ||
'src/pyrtools/pyramids/c/convolve.h', | ||
'src/pyrtools/pyramids/c/internal_pointOp.h'], | ||
extra_compile_args=['-fPIC', '-shared'])], | ||
cmdclass={"bdist_wheel": WheelABINone}, | ||
tests='TESTS', | ||
) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.