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

Added pyproject.toml #5

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Updated pyproject.toml to include data.
  • Loading branch information
e-eight committed Dec 4, 2024
commit bbcd0965802495eb0db179a84859f6b4d2a26fae
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pip install --user -r requirements.txt

With all of the necessary requirements installed, the below will start the app
```bash
python3 app.py
python3 src/app.py
```
The console will tell you where to point your browser - likely http://127.0.0.1:8050/.

Expand Down
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"

[project]
name = "pynch"
version = "1.0.0"
dynamic = ["dependencies"]
dynamic = ["dependencies", "version"]

[tool.setuptools]
package-dir = {"" = "pynch"}
include-package-data = true

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
2 changes: 1 addition & 1 deletion app.py → src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def update_graph(y_var, x_value, year):

logit = (
True
if y_var in ["HalfLife", "NubaseRelativeError", "AMERelativeError"]
if y_var in ["HalfLife", "NUBASERelativeError", "AMERelativeError"]
else False
)

Expand Down
Loading