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

Clean up dependences #182

Merged
merged 13 commits into from
Jun 29, 2024
Merged

Clean up dependences #182

merged 13 commits into from
Jun 29, 2024

Conversation

tianyizheng02
Copy link
Contributor

Fixes #181

Cleaned up dependencies (Pipfile and requirements.txt) by removing unused dependencies, updating dependencies to latest versions, and marking dependencies as dev dependencies where applicable. "Dev dependency" here refers to any dependency that we only use for development purposes (e.g., flake8 for linting, pytest for testing, and sphinx for documentation) and isn't required for the functionality of the API itself.

Remove nose and related dependencies from Pipfile and Pipfile.lock
because we no longer use nose for testing
We've already phased out bs4 and parse in favor of other packages such
as requests
The lxml package was only used as a downstream dependency for the people
module of the API, but now the required functionality has been offloaded
to a new package, lxml_html_clean. As a result, people.py and
people_test.py now fail with the following error message:

E   ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
E   Install lxml[html_clean] or lxml_html_clean directly.
Move dev dependencies (black, flake8, etc.) under [dev-packages] in
Pipfile
Remove virtualenv from Pipfile since we now use pipenv for venvs and
dependency management
Set versions for coverage and pytest-cov to "*" since there's no need to
stick with the existing specific versions and it should be safe to do so
Move sphinx to [dev-packages] in Pipfile because it's only used for
building documentation and not required for the running of the API
itself
@tianyizheng02 tianyizheng02 marked this pull request as ready for review June 16, 2024 07:34
@tianyizheng02 tianyizheng02 requested a review from nij-patel June 16, 2024 07:34
@tianyizheng02
Copy link
Contributor Author

Commit ea17ee4 updates urllib3 to 1.26.19. This will resolve the following Dependabot alerts:

and thus this PR supersedes #184.

@tianyizheng02
Copy link
Contributor Author

Final issue is just what to do about pytest-xdist: this dependency would allow us to run tests on multiple cores, but we haven't been using it. We could either start using it in our testing workflow (work for another PR) or remove it altogether.

Remove pytest-xdist from Pipfile since it's never used in any pytest
workflows
@nij-patel nij-patel merged commit 6d19456 into dev Jun 29, 2024
4 checks passed
@nij-patel nij-patel deleted the clean-up-deps branch June 29, 2024 18:58
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.

Clean up dependencies
2 participants