-
Notifications
You must be signed in to change notification settings - Fork 825
Towards PEP621 #3528
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
Towards PEP621 #3528
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
82e0328
Initial attempt at PEP 621 for main MDA package
IAlibay 6e4c9b0
version should be string
IAlibay 40be8aa
toml tables not python
IAlibay 90f5616
switch to project.urls, hope the whitespace works
IAlibay 5b44eb9
quoted keys _should_ be fine?
IAlibay 3f5b303
pyproject.toml for testsuite
IAlibay fe05f9f
uncomment test
IAlibay ad006fb
Merge branch 'develop' into issue-3526
IAlibay e118a12
Remove testsuite pyproject.toml for now, dynamic version
IAlibay fda7634
try to circumvent disutil issues with manifest
IAlibay b00d4c5
Add trove-classifiers for better testing of pyproject.toml classifiers
IAlibay 3153109
temp disable readme from pyproject.toml
IAlibay 755a65e
don't forget packaging
IAlibay fa6063a
move readme to dynamic section
IAlibay a7ed38b
revert manifest
IAlibay fd7ccda
remove readme completely for now
IAlibay 81926ce
Merge branch 'develop' into issue-3526
IAlibay 2977ddb
various pyproject.toml fixups
IAlibay 6c1b3ab
Add changelog entry
IAlibay f638e1b
fix typo
IAlibay 68d4735
Merge branch 'develop' into issue-3526
IAlibay aa643aa
Merge branch 'develop' into issue-3526
IAlibay 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 was deleted.
Oops, something went wrong.
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 |
|---|---|---|
|
|
@@ -25,3 +25,90 @@ requires = [ | |
| "setuptools", | ||
| "wheel", | ||
| ] | ||
|
|
||
| [project] | ||
| name = "MDAnalysis" | ||
| dynamic = ['version',] | ||
| license = {file = "LICENSE"} | ||
| readme = "README.rst" | ||
| description = "An object-oriented toolkit to analyze molecular dynamics trajectories." | ||
| authors = [ | ||
| {name = 'MDAnalysis Development Team', email = 'mdanalysis@numfocus.org'} | ||
| ] | ||
| maintainers = [ | ||
| {name = 'MDAnalysis Core Developers', email = 'mdanalysis@numfocus.org'} | ||
| ] | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| 'numpy>=1.20.0', | ||
| 'biopython>=1.71', | ||
| 'networkx>=2.0', | ||
| 'GridDataFormats>=0.4.0', | ||
| 'mmtf-python>=1.0.0', | ||
| 'joblib>=0.12', | ||
| 'scipy>=1.5.0', | ||
| 'matplotlib>=1.5.1', | ||
| 'tqdm>=4.43.0', | ||
| 'threadpoolctl', | ||
| 'packaging', | ||
| 'fasteners', | ||
| 'gsd>=1.9.3', | ||
| ] | ||
| keywords = [ | ||
| "python", "science", "chemistry", "biophysics", "molecular-dynamics", | ||
| "computational-chemistry", "molecular-simulation", "analysis", | ||
| "trajectory-analysis", | ||
| ] | ||
| classifiers = [ | ||
| 'Development Status :: 6 - Mature', | ||
| 'Environment :: Console', | ||
| 'Intended Audience :: Science/Research', | ||
| 'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)', | ||
orbeckst marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'Operating System :: POSIX', | ||
| 'Operating System :: MacOS :: MacOS X', | ||
| 'Operating System :: Microsoft :: Windows', | ||
| 'Programming Language :: Python', | ||
| 'Programming Language :: Python :: 3.8', | ||
| 'Programming Language :: Python :: 3.9', | ||
IAlibay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'Programming Language :: Python :: 3.10', | ||
| 'Programming Language :: Python :: 3.11', | ||
| 'Programming Language :: C', | ||
| 'Topic :: Scientific/Engineering', | ||
| 'Topic :: Scientific/Engineering :: Bio-Informatics', | ||
| 'Topic :: Scientific/Engineering :: Chemistry', | ||
| 'Topic :: Software Development :: Libraries :: Python Modules', | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| extra_formats = [ | ||
| "netCDF4>=1.0", | ||
| "h5py>=2.10", | ||
| "chemfiles>=0.10", | ||
| "pyedr>=0.7.0", | ||
| ] | ||
| analysis = [ | ||
| "seaborn", | ||
| "scikit-learn", | ||
| "tidynamics>=1.0.0", | ||
| ] | ||
| doc = [ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing test entry because passing in a dynamic |
||
| "sphinx", | ||
| "sphinx-sitemap", | ||
| "sphinx_rtd_theme", | ||
| "msmb_theme==1.2.0", | ||
| "sphinxcontrib-bibtex", | ||
| "pybtex", | ||
| "pybtex-docutils", | ||
| ] | ||
|
|
||
|
|
||
| [project.urls] | ||
| Documentation = 'https://docs.mdanalysis.org/' | ||
| "User Guide" = 'https://userguide.mdanalysis.org/' | ||
| "Issue Tracker" = 'https://github.com/mdanalysis/mdanalysis/issues' | ||
| "User Group" = 'https://groups.google.com/g/mdnalysis-discussion/' | ||
| Discord = 'https://discord.com/channels/807348386012987462/' | ||
| Blog = 'https://www.mdanalysis.org/blog/' | ||
| Twitter = 'https://twitter.com/mdanalysis' | ||
| Source = 'https://github.com/mdanalysis/mdanalysis' | ||
|
|
||
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't too sure how to deal with the optional deps here.
Tests -> should I just add MDAnalysisTests as the dep? How do you dynamically set the version number in pyproject.toml?
Extra deps ->
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
condaonly deps seems like a bad idea in general, not sure you can do much about them here..As for
dependencies, I think it should just be the mandatory runtime dependencies, and then[project.optional-dependencies]can contain sections fortest,doc, anddevtools (I'd suggest just looking at i.e., the SciPy examplepyproject.tomland adapting for our purposes, if you aren't already doing that).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, for now let's just skip
[project.optional-dependencies]since most are conda based, I'll raise an issue on merge of this PR with all the things that can be added at a later date to augment the pyproject.toml.