Skip to content

[Maintenance] Change to Poetry for Package Management - #34

Merged
terrancedejesus merged 6 commits into
mainfrom
25-maintenance-review-swat-packaging
Jul 21, 2023
Merged

[Maintenance] Change to Poetry for Package Management#34
terrancedejesus merged 6 commits into
mainfrom
25-maintenance-review-swat-packaging

Conversation

@terrancedejesus

@terrancedejesus terrancedejesus commented Jul 19, 2023

Copy link
Copy Markdown
Contributor

Overview

This pull request adjusts the package management of SWAT to Poetry from setup.py.

To install package:
poetry install (base installation)
poetry install --extras "audit_support" (base installation w/ Pandas for GWS auditing)

Screenshot 2023-07-18 at 8 34 30 PM

@brokensound77

@terrancedejesus terrancedejesus added enhancement New feature or request development labels Jul 19, 2023
@terrancedejesus terrancedejesus self-assigned this Jul 19, 2023
@terrancedejesus terrancedejesus linked an issue Jul 19, 2023 that may be closed by this pull request
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml
google-api-python-client = "^2.88.0"
PyYAML = "^6.0"
requests = "^2.30.0"
pandas = { version = "2.0.2", optional = true }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why here and extras?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Based on my understanding, both are needed. The tool.poetry.extras allows us to use -E argument with poetry install but it needs to point to a variable pandas which is then referenced with the version under tool.poetry.dependencies.

Reference: https://towardsdatascience.com/python-poetry-83f184ac9ed1

Comment thread pyproject.toml
Comment thread pyproject.toml
@terrancedejesus
terrancedejesus merged commit ea6c368 into main Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Maintenance] Review SWAT packaging

2 participants