Skip to content

Commit

Permalink
Pyproject.toml (#197)
Browse files Browse the repository at this point in the history
* reset for merge conflict

* #185 change from setup.py to pyproject.toml (#192)

* #185 change from setup.py to pyproject.toml

* #192 issue: change from setup.py to pyproject.toml

added the required changes mentioned.

* #985 issue: error fix

* fix

* remove readme-content-type

* adjust current version

---------

Co-authored-by: Rohan Singh <[email protected]>
  • Loading branch information
peterdudfield and Brohan7524 authored Sep 13, 2024
1 parent c4ec473 commit aeb2da3
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ tag = True
current_version = 1.0.72
message = Bump version: {current_version} → {new_version} [skip ci]

[bumpversion:file:setup.py]
search = version="{current_version}"
replace = version="{new_version}"
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
60 changes: 60 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "quartz_solar_forecast"
version = "1.0.72"
description = "Open Source Solar Forecasting for a Site"
authors = [
{ name = "Peter Dudfield", email = "[email protected]" }
]
readme = "README.md"
requires-python = ">=3.6"
license = { text = "MIT" }

dependencies = [
"xarray==2022.12.0",
"pv-site-prediction==0.1.19",
"pydantic==2.6.2",
"huggingface_hub==0.17.3", # only for evaluation
"python-dotenv==1.0.1",
"openmeteo-requests==1.2.0",
"requests-cache==1.2.0",
"retry-requests==2.0.0",
"gdown==5.1.0",
"xgboost==2.0.3",
"plotly",
"typer",
"streamlit",
"async_timeout",
"uvicorn",
"fastapi",
"pydantic_settings",
"httpx"
]

[project.urls]
Company = "Open Climate Fix Ltd"
"Source Code" = "https://github.com/openclimatefix/Open-Source-Quartz-Solar-Forecast.git"

[tool.setuptools]
packages = { find = { include = ["*"] } }
package-data = { "quartz_solar_forecast" = ["*"] }

[project.optional-dependencies]
dev = []

[tool.mypy]

[tool.ruff]
line-length = 100
exclude = ["tests", "data", "scripts", "^tests/"]
disallow-untyped-defs = true
disallow-any-unimported = true
no-implicit-optional = true
check-untyped-defs = true
warn-return-any = true
warn-unused-ignores = true
show-error-codes = true
warn-unreachable = true
19 changes: 0 additions & 19 deletions requirements.txt

This file was deleted.

24 changes: 0 additions & 24 deletions setup.py

This file was deleted.

0 comments on commit aeb2da3

Please sign in to comment.