Skip to content

Commit

Permalink
Add pyproject.toml for project configuration and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
boyuan276 committed Dec 5, 2024
1 parent b7c4f37 commit 5d0b6aa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
40 changes: 40 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "nygrid"
version = "0.1.0" # Update this to match your version
description = "A python version of the NYgrid model"
readme = "README.md" # Adjust if your README file is named differently
license = {text = "MIT License"}
authors = [
{name = "The NYgrid-python Developers", email = "[email protected]"}
]
maintainers = [
{name = "Bo Yuan", email = "[email protected]"}
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3 :: Only",
]
keywords = ["Power system", "Renewable energy", "Optimization"]
dependencies = [
"numpy",
"scipy",
"pandas",
"pyomo",
"pypower",
"matplotlib",
"openpyxl"
]
requires-python = ">=3.7"
urls = {homepage = "https://github.com/boyuan276/NYgrid-python"}

[tool.setuptools]
packages = ["nygrid"] # If your package is a directory named nygrid

[project.optional-dependencies]
dev = ["pytest", "black"]
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
PLATFORMS = "Any"
PACKAGES = find_packages()
SCRIPTS = []
PACKAGE_DATA = {
# "cmaqpy": ["cmaqpy/data/*"],
}
PACKAGE_DATA = {}
INSTALL_REQUIRES = [
"numpy",
"scipy",
Expand Down

0 comments on commit 5d0b6aa

Please sign in to comment.