-
-
Notifications
You must be signed in to change notification settings - Fork 42
PR: Replace setup.py with pyproject.toml
#557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
0c2d904
Replace setup.py with pyproject.toml
dalthviz d277949
Merge branch 'master' into fixes_issue_555
dalthviz fc0765b
Apply suggestions from code review
dalthviz dc36e5a
Remove setup.py change a couple of pyproject.toml entries
dalthviz 9411e24
Remove license classifier
dalthviz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,75 @@ | ||
| [build-system] | ||
| requires = ["setuptools"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = "spyder_kernels._version.__version__"} | ||
|
|
||
| [tool.setuptools.packages.find] | ||
| exclude = ["docs", "*tests"] | ||
|
|
||
| [project] | ||
| name = "spyder-kernels" | ||
| dynamic = ["version"] | ||
| description = "Jupyter kernels for Spyder's console" | ||
| keywords = ["spyder jupyter kernel ipython console"] | ||
| readme = "README.md" | ||
| authors = [ | ||
| {name = "Spyder Development Team", email = "[email protected]"}, | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 5 - Production/Stable", | ||
| "Framework :: IPython", | ||
| "Framework :: Jupyter", | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: MIT License", | ||
| "Operating System :: OS Independent", | ||
| "Programming Language :: Python :: 3", | ||
| "Programming Language :: Python :: 3.10", | ||
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.8", | ||
| "Programming Language :: Python :: 3.9", | ||
| "Topic :: Software Development :: Interpreters", | ||
| ] | ||
| requires-python = ">=3.9" | ||
| dependencies = [ | ||
| "cloudpickle", | ||
| "ipykernel>=6.29.3,<7", | ||
| "ipython>=8.13.0,<9,!=8.17.1", | ||
| "jupyter-client>=7.4.9,<9", | ||
| "pyxdg>=0.26;platform_system==\"Linux\"", | ||
| "pyzmq>=24.0.0", | ||
| # We need at least this version of traitlets to fix an error when setting | ||
| # the Matplotlib inline backend formats. | ||
| # Fixes spyder-ide/spyder#24390 | ||
| "traitlets>=5.14.3", | ||
| "wurlitzer>=1.0.3;platform_system!=\"Windows\"", | ||
| ] | ||
| license = {text = "MIT"} | ||
ccordoba12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [project.urls] | ||
| Homepage = "https://github.com/spyder-ide/spyder-kernels" | ||
| Downloads = "https://www.spyder-ide.org/download" | ||
dalthviz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| "anyio", | ||
| "cython", | ||
| "dask[distributed]", | ||
| "django", | ||
| "flaky", | ||
| "h5py", | ||
| "matplotlib", | ||
| "mock", | ||
| "numpy", | ||
| "pandas", | ||
| "pillow", | ||
| "polars", | ||
| "pyarrow", | ||
| "pydicom", | ||
| "pytest", | ||
| "pytest-cov", | ||
| "scipy", | ||
| "xarray", | ||
| ] | ||
ccordoba12 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -8,99 +8,7 @@ | |
|
|
||
| """Jupyter Kernels for the Spyder consoles.""" | ||
|
|
||
| # Standard library imports | ||
| import ast | ||
| import io | ||
| import os | ||
|
|
||
| # Third party imports | ||
| from setuptools import find_packages, setup | ||
|
|
||
| HERE = os.path.abspath(os.path.dirname(__file__)) | ||
|
|
||
| with io.open('README.md', encoding='utf-8') as f: | ||
| LONG_DESCRIPTION = f.read() | ||
|
|
||
|
|
||
| def get_version(module='spyder_kernels'): | ||
| """Get version.""" | ||
| with open(os.path.join(HERE, module, '_version.py'), 'r') as f: | ||
| data = f.read() | ||
| lines = data.split('\n') | ||
| for line in lines: | ||
| if line.startswith('VERSION_INFO'): | ||
| version_tuple = ast.literal_eval(line.split('=')[-1].strip()) | ||
| version = '.'.join(map(str, version_tuple)) | ||
| break | ||
| return version | ||
|
|
||
|
|
||
| REQUIREMENTS = [ | ||
| 'cloudpickle', | ||
| 'ipykernel>=6.29.3,<7', | ||
| 'ipython>=8.12.2,<8.13; python_version=="3.8"', | ||
| 'ipython>=8.13.0,<9,!=8.17.1; python_version>"3.8"', | ||
| 'jupyter-client>=7.4.9,<9', | ||
| 'pyzmq>=24.0.0', | ||
| 'pyxdg>=0.26;platform_system=="Linux"', | ||
| # We need at least this version of traitlets to fix an error when setting | ||
| # the Matplotlib inline backend formats. | ||
| # Fixes spyder-ide/spyder#24390 | ||
| 'traitlets>=5.14.3', | ||
| 'wurlitzer>=1.0.3;platform_system!="Windows"', | ||
| ] | ||
|
|
||
| TEST_REQUIREMENTS = [ | ||
| "cython", | ||
| "dask[distributed]", | ||
| "flaky", | ||
| "matplotlib", | ||
| "mock", | ||
| "numpy", | ||
| "pandas", | ||
| "polars", | ||
| "pyarrow", | ||
| "pytest", | ||
| "pytest-cov", | ||
| "scipy", | ||
| "xarray", | ||
| "pillow", | ||
| "django", | ||
| "h5py", | ||
| "pydicom", | ||
| "anyio", | ||
| ] | ||
| from setuptools import setup | ||
|
|
||
| setup( | ||
| name='spyder-kernels', | ||
| version=get_version(), | ||
| keywords='spyder jupyter kernel ipython console', | ||
| url='https://github.com/spyder-ide/spyder-kernels', | ||
| download_url="https://www.spyder-ide.org/#fh5co-download", | ||
| license='MIT', | ||
| author='Spyder Development Team', | ||
| author_email="[email protected]", | ||
| description="Jupyter kernels for Spyder's console", | ||
| long_description=LONG_DESCRIPTION, | ||
| long_description_content_type='text/markdown', | ||
| packages=find_packages(exclude=['docs', '*tests']), | ||
| install_requires=REQUIREMENTS, | ||
| extras_require={'test': TEST_REQUIREMENTS}, | ||
| include_package_data=True, | ||
| python_requires='>=3.9', | ||
| classifiers=[ | ||
| 'Development Status :: 5 - Production/Stable', | ||
| 'Framework :: Jupyter', | ||
| 'Framework :: IPython', | ||
| 'Intended Audience :: Developers', | ||
| 'License :: OSI Approved :: MIT License', | ||
| 'Operating System :: OS Independent', | ||
| 'Programming Language :: Python :: 3', | ||
| '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 :: Software Development :: Interpreters', | ||
| ] | ||
| ) | ||
| setup() | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.