Skip to content

Commit

Permalink
switch to pyproject.toml instead of setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieTaylor-TUOS committed Feb 20, 2024
1 parent a93b12c commit 3a91f55
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 122 deletions.
52 changes: 52 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "sp2ts"
version = "1.0.0"
dynamic = ["dependencies"]
requires-python = ">=3.9"
authors = [
{name="Jamie Taylor", email="[email protected]"},
]
maintainers = [
{name="Jamie Taylor", email="[email protected]"},
]
description = "Convert between the settlement periods used by GB electricity industry and Unix timestamps."
readme = "README.md"
#license = {file = "LICENSE.txt"}
keywords = ["timestamp", "timezone", "settlement period", "settlement date", "settlement time", "electricity market"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Topic :: Database :: Database Engines/Servers",
"Topic :: Utilities",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]

#[project.optional-dependencies]

[project.urls]
Homepage = "https://github.com/SheffieldSolar/sp2ts"
Documentation = "https://sheffieldsolar.github.io/PV_Live-API/build/html/index.html"
Repository = "https://github.com/SheffieldSolar/sp2ts"
"Bug Tracker" = "https://github.com/SheffieldSolar/sp2ts/issues"

[project.scripts]
sp2ts = "sp2ts.sp2ts:main"

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
optional-dependencies = {dev = {file = ["requirements_dev.txt"]}}

[tool.setuptools.packages.find]
#include = []
exclude = ["Tests*"]
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

120 changes: 0 additions & 120 deletions setup.py

This file was deleted.

0 comments on commit 3a91f55

Please sign in to comment.