-
Notifications
You must be signed in to change notification settings - Fork 54
Switch to pyproject.toml and stub setup.py for better pip / setuptools compatibility #2698
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 4 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
2440e93
Change to pyproject.toml with stub setup.py
dgarnier 5c12216
actually this requirest setuptools >= 60.0.0 for the blank setup.py
dgarnier 8dfcf6a
add pyproject.toml to dist files
dgarnier 1b8c5bc
enable python2.7 and setuptools<60 support
dgarnier e827422
using slightly cleaner api
dgarnier bcebfae
change correspondence email
dgarnier 03af839
Merge branch 'alpha' into feature/pyproject
dgarnier 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
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
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
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
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,57 @@ | ||
| [build-system] | ||
| requires = ["setuptools>=44.1.1", "wheel"] # python2.7 support | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name='MDSplus' | ||
| authors = [ | ||
| {name = "MDSplus Development Team", email = "twf@www.mdsplus.org"}, | ||
| ] | ||
| license = {text = "MIT License"} | ||
| description = "MDSplus Python Object interface" | ||
| classifiers = [ | ||
| "Programming Language :: Python", | ||
| "Intended Audience :: Science/Research", | ||
| "Environment :: Console", | ||
| "Topic :: Scientific/Engineering", | ||
| "License :: OSI Approved :: MIT License", | ||
| ] | ||
| keywords=['physics', 'mdsplus'] | ||
| dynamic = ["version"] | ||
| dependencies = [ | ||
| 'numpy', | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Homepage = "http://www.mdsplus.org/" | ||
| Repository = "https://github.com/MDSplus/mdsplus" | ||
| Issues = "https://github.com/MDSplus/mdsplus/issues" | ||
|
|
||
| [project.optional-dependencies] | ||
| widgets = ["gtk", "gobject"] | ||
|
|
||
| [tool.setuptools] | ||
| packages = [ | ||
| 'MDSplus', | ||
| 'MDSplus.widgets', | ||
| 'MDSplus.wsgi', | ||
| 'MDSplus.tests', | ||
| ] | ||
| include-package-data = false # use package-data below | ||
|
|
||
| [tool.setuptools.package-dir] | ||
| 'MDSplus' = '.' | ||
| 'MDSplus.widgets' = 'widgets' | ||
| 'MDSplus.wsgi' = 'wsgi' | ||
| 'MDSplus.tests' = 'tests' | ||
|
|
||
| [tool.setuptools.package-data] | ||
| 'MDSplus.wsgi' = [ | ||
| 'html/*', | ||
| 'conf/*', | ||
| 'js/*', | ||
| '*.tbl', | ||
| ] | ||
|
|
||
| [tool.setuptools.dynamic] | ||
| version = {attr = '_version.version'} | ||
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
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.