Skip to content
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

ENH: Use a requirements.txt file to list the external dependencies #146

Merged
merged 5 commits into from
Sep 21, 2023

Conversation

jhlegarreta
Copy link
Contributor

  • STYLE: Remove unnecessary whitespaces around assignment operator
  • STYLE: Add additional blank line before class definition
  • STYLE: Remove unnecessary blank lines
  • ENH: Remove unused imports from setup.py
  • ENH: Use a requirements.txt file to list the external dependencies

Remove unnecessary whitespaces around assignment operator.

Fixes:
```
PEP 8: E251 unexpected spaces around keyword / parameter equals
```
Add additional blank line before class definition.

Fixes:
```
PEP 8: E302 expected 2 blank lines, found 1
```
Remove unnecessary blank lines.
Remove unused imports from `setup.py`.

Fixes:
```
Unused import statement 'glob'
```

and similar warnings.
Use a `requirements.txt` file to list the external dependencies of the
package.

Separating the list of external dependencies from the actual setup
script conforms to Python standard practices, makes things easier to
maintain, and it is a step in the transition to newer PEPs where the
setup system recommeds using a `pyproject.toml` config file.

Documentation:
https://pip.pypa.io/en/stable/reference/requirements-file-format/
Copy link
Member

@ljod ljod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you

Copy link
Member

@ljod ljod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@ljod ljod merged commit cebf9f0 into SlicerDMRI:master Sep 21, 2023
1 check passed
@jhlegarreta jhlegarreta deleted the UseRequirementsFileForDependList branch September 21, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants