-
Notifications
You must be signed in to change notification settings - Fork 10
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
Swap to pyproject.toml setup #507
Merged
+137
−81
Merged
Changes from 3 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7204158
swap to pyproject.toml
4d65aa5
changelog
30eab0d
remove
01ba720
center README logo and badges; fix logo link in README so will show u…
a421e55
remove 3.8 from testing
c66aacb
add changelog mention
396be81
fix import
2ade3f1
fix import
8a9f808
Merge branch 'dev' into toml_setup
CodyCBakerPhD 45bf49d
Merge branch 'dev' into toml_setup
CodyCBakerPhD 022afaf
resolve conflicts
CodyCBakerPhD d7da84c
fix import; remove ros3 install; use hatchling instead of setuptools
CodyCBakerPhD 9de9471
Update pyproject.toml
CodyCBakerPhD 000456a
Update pyproject.toml
CodyCBakerPhD d7d5597
Update pyproject.toml
CodyCBakerPhD 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
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,23 @@ | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: true | ||
|
||
# Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: requirements-rtd.txt | ||
- method: pip | ||
path: . |
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,7 @@ | ||
numpy | ||
jsonschema==3.2.0 | ||
Jinja2>=3.1.3 | ||
sphinx==5.1.1 | ||
sphinx_rtd_theme==0.5.1 | ||
readthedocs-sphinx-search==0.3.2 | ||
sphinx-copybutton==0.5.0 |
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,67 @@ | ||
[build-system] | ||
requires = ["setuptools>=64"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "nwbinspector" | ||
version = "0.6.0" | ||
CodyCBakerPhD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
description = "Tool to inspect NWB files for best practices compliance." | ||
readme = "README.md" | ||
authors = [ | ||
{name = "Cody Baker"}, | ||
{name = "Steph Prince"}, | ||
{name = "Szonja Weigl"}, | ||
{name = "Heberto Mayorquin"}, | ||
{name = "Paul Adkisson"}, | ||
{name = "Luiz Tauffer"}, | ||
{name = "Ben Dichter", email = "[email protected]"} | ||
] | ||
urls = { "Homepage" = "https://github.com/NeurodataWithoutBorders/nwbinspector" } | ||
license = {file = "license.txt"} | ||
keywords = ["nwb"] | ||
classifiers = [ | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: Microsoft :: Windows", | ||
"Operating System :: MacOS", | ||
"License :: OSI Approved :: BSD License", | ||
] | ||
requires-python = ">=3.9" | ||
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. This also removes Python 3.8 support, which ends its security upgrades next month |
||
dependencies = [ | ||
"pynwb", | ||
CodyCBakerPhD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"hdmf-zarr", | ||
"fsspec", | ||
"s3fs", | ||
"requests", | ||
"aiohttp", | ||
"PyYAML", | ||
"jsonschema", | ||
"packaging", | ||
"natsort", | ||
"click", | ||
"tqdm", | ||
"isodate", | ||
"numpy>=1.22.0,<2.0.0" # TODO: remove 2.0 bound when HDMF supports | ||
CodyCBakerPhD marked this conversation as resolved.
Show resolved
Hide resolved
|
||
] | ||
|
||
[project.optional-dependencies] | ||
dandi = [ | ||
"dandi", | ||
"remfile", | ||
] | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[project.scripts] | ||
nwbinspector = "nwbinspector._nwbinspector_cli:_nwbinspector_cli" | ||
|
||
|
||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py37'] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.
I copied over these two RTD files to start a smooth transition to keeping the files there instead of the outer level to reduce clutter
It works fine as long as the settings on the RTD admin page are adjusted, which is why I will wait until after this PR is merged to do that and then remove the files still at the outer level (so it doesn't break on the other current PRs)