-
Notifications
You must be signed in to change notification settings - Fork 58
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
Migrate to pyproject.toml #653
Open
Sand-jrd
wants to merge
12
commits into
vortex-exoplanet:master
Choose a base branch
from
Sand-jrd:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
fa23f84
Migrate to pyproject.toml
Sand-jrd 732d776
Migrate to pyproject.toml
Sand-jrd 70f2a21
Create requirements-dev.txt
Sand-jrd 796e0e4
Update makefile for .toml build
Sand-jrd b2de76f
Update classifiers (Windows and Python versions)
Sand-jrd 0f1dbee
Update dynamic versioning
Sand-jrd 498466d
Reading version from __version.py in conf.py
Sand-jrd c1eb921
Replace single underscore with a double underscore
Sand-jrd 07edf16
Fix typo: single underscore in _version.py (oops)
Sand-jrd 6243df1
avoid circular import
Sand-jrd 3910b81
Dynamically set __version__ argument
Sand-jrd 44ce567
Update __init__.py
Sand-jrd 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 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 |
---|---|---|
|
@@ -9,6 +9,7 @@ _pycache__/ | |
build | ||
dist | ||
*.egg-info | ||
*_version.py | ||
|
||
# documentation / sphinx | ||
docs/build | ||
|
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel", "setuptools_scm"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
version_file = "vip_hci/_version.py" | ||
|
||
[project] | ||
dynamic = ["version", "dependencies"] | ||
name = "vip_hci" | ||
license = {text = "MIT"} | ||
readme = {file = "README.rst", content-type = "text/x-rst"} | ||
requires-python = ">=3.8" | ||
authors = [{name = "Carlos Alberto Gomez Gonzalez", email = "[email protected]"}] | ||
maintainers = [{name = "Valentin Christiaens", email = "[email protected]"}] | ||
description = "Package for astronomical high-contrast image processing" | ||
classifiers = [ | ||
'Intended Audience :: Science/Research', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: POSIX :: Linux', | ||
'Operating System :: Microsoft :: Windows', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
'Topic :: Scientific/Engineering :: Astronomy' | ||
] | ||
|
||
[tool.setuptools] | ||
packages = ['vip_hci', | ||
'vip_hci.config', | ||
'vip_hci.fits', | ||
'vip_hci.fm', | ||
'vip_hci.invprob', | ||
'vip_hci.metrics', | ||
'vip_hci.objects', | ||
'vip_hci.preproc', | ||
'vip_hci.psfsub', | ||
'vip_hci.stats', | ||
'vip_hci.var'] | ||
|
||
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements.txt"]} | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"sphinx", | ||
"myst-nb", | ||
"myst-parser", | ||
"pandoc", | ||
"nbsphinx", | ||
"sphinx_rtd_theme", | ||
"jupyter_sphinx", | ||
"pytest", | ||
"pytest-cov ~=2.6.0", | ||
"pytest-split", | ||
"flake8", | ||
"flake8-bandit", | ||
"flake8-docstrings", | ||
"autopep8", | ||
"pre-commit", | ||
"opencv-python", | ||
"ratelimit" | ||
] | ||
|
||
[project.urls] | ||
Documentation = "https://vip.readthedocs.io/en/latest/" | ||
Repository = "https://github.com/vortex-exoplanet/VIP" |
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
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.
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.
Should also be compatible with Windows
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.
Um I blindly copied the description classifiers from the previous setup; I guess it’s a good time to update them indeed
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’ve just updated them—both the Windows classifier and the Python version, as you pointed out.