Skip to content

Commit

Permalink
Migration to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramsDataScience committed Sep 10, 2024
1 parent 0e6d8be commit c503578
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 33 deletions.
3 changes: 2 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ python:
install:
- method: pip
path: .
- requirements: docs/requirements.txt
- method: pip
command: install -e .[docs] # Change to use pyproject.toml and set to editable mode so changes to source code can reflect without need to reinstall
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 = "ocf_data_sampler"
version = "0.0.16"
license = { file = "LICENSE" }
readme = "README.md"
description = "Sample from weather data for renewable energy prediction"
authors = [
{name = "James Fulton, Peter Dudfield, and the Open Climate Fix team"},
{email = "info@openclimatefix.org"}
]

maintainers = [
{name="Open Climate Fix Ltd"}
]

dependencies = [ # Migration from requirements.txt
"numpy",
"pandas",
"xarray",
"zarr",
"dask",
"ocf_blosc2",
"ocf_datapipes==3.3.39",
"pvlib"
]

keywords = [ # I've added some keywords, but please provide feedback if you'd like them changed!
"weather data",
"renewable energy prediction",
"sample weather data"
]

classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8", # Sourced from .readthedocs.yml (please advise if this is wrong!)
"Operating System :: POSIX :: Linux", # Sourced from .github/workflows/workflows.yaml
]
requires-python = ">=3.8"

[project.optional-dependencies]
docs = [
"mkdocs>=1.2",
"mkdocs-material>=8.0"
]

[project.urls]
homepage = "https://github.com/openclimatefix"
repository = "https://github.com/openclimatefix/ocf-data-sampler"

[tool.setuptools]
packages = { find = {} } # Replaces the find_packages() in the setup.py
include-package-data = true

[tool.ruff]
line-length = 100
exclude = ["tests","data","scripts"]
8 changes: 0 additions & 8 deletions requirements.txt

This file was deleted.

24 changes: 0 additions & 24 deletions setup.py

This file was deleted.

0 comments on commit c503578

Please sign in to comment.