-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify and modernize the setup and test experience
- Loading branch information
Showing
10 changed files
with
304 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ dependencies: | |
- pandas | ||
- wisdem | ||
- cmake | ||
- pyparsing==2.4.7 | ||
- pyparsing | ||
- control | ||
- pyzmq | ||
- mpi4py | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
[build-system] | ||
requires = ["setuptools", "cmake", "numpy", "wheel"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "ROSCO" | ||
version = "2.9.0" | ||
description = "A reference open source controller toolset for wind turbine applications." | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
license = {text = "Apache-2.0"} | ||
keywords = ["wind", "turbine", "control", "", ""] | ||
authors = [ | ||
{name = "National Wind Technology Center, NREL", email = "[email protected]" } | ||
] | ||
maintainers = [ | ||
{name = "Daniel Zalkind", email = "[email protected]" } | ||
] | ||
classifiers = [ # Optional | ||
# How mature is this project? Common values are | ||
# 3 - Alpha | ||
# 4 - Beta | ||
# 5 - Production/Stable | ||
"Development Status :: 4 - Beta", | ||
|
||
# Indicate who your project is intended for | ||
"Intended Audience :: Science/Research", | ||
"Topic :: Scientific/Engineering", | ||
|
||
"License :: OSI Approved :: Apache Software License", | ||
|
||
# Specify the Python versions you support here. In particular, ensure | ||
# that you indicate you support Python 3. These classifiers are *not* | ||
# checked by "pip install". See instead "python_requires" below. | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Fortran", | ||
] | ||
|
||
dependencies = [ | ||
"control", | ||
"numpy", | ||
"matplotlib", | ||
"mpi4py", | ||
"scipy", | ||
"pandas", | ||
"pyparsing", | ||
"pyYAML", | ||
"pyzmq", | ||
"treon", | ||
"wisdem", | ||
] | ||
|
||
# List additional groups of dependencies here (e.g. development | ||
# dependencies). Users will be able to install these using the "extras" | ||
# syntax, for example: | ||
# | ||
# $ pip install sampleproject[dev] | ||
# | ||
# Similar to `dependencies` above, these must be valid existing | ||
# projects. | ||
[project.optional-dependencies] # Optional | ||
dev = ["cmake"] | ||
test = ["pytest"] | ||
|
||
# List URLs that are relevant to your project | ||
# | ||
# This field corresponds to the "Project-URL" and "Home-Page" metadata fields: | ||
# https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use | ||
# https://packaging.python.org/specifications/core-metadata/#home-page-optional | ||
# | ||
# Examples listed include a pattern for specifying where the package tracks | ||
# issues, where the source is hosted, where to say thanks to the package | ||
# maintainers, and where to support the project financially. The key is | ||
# what's used to render the link text on PyPI. | ||
[project.urls] # Optional | ||
"Homepage" = "https://github.com/NREL/ROSCO" | ||
"Documentation" = "https://rosco.readthedocs.io" | ||
|
||
# This is configuration specific to the `setuptools` build backend. | ||
# If you are using a different build backend, you will need to change this. | ||
[tool.setuptools] | ||
zip-safe = false | ||
include-package-data = true | ||
|
||
#[tool.setuptools.packages] | ||
#find = {} | ||
|
||
[tool.setuptools.packages.find] | ||
#where = ["ROSCO"] | ||
exclude = ["Matlab_Toolbox"] | ||
namespaces = true | ||
|
||
[tool.setuptools.package-data] | ||
# If there are data files included in your packages that need to be | ||
# installed, specify them here. | ||
"*" = ["*.yaml", "*.xlsx", "*.txt", "*.so", "*.lib", "*.pyd", "*.pdb", "*.dylib", "*.dll", "*.exe"] | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py311'] | ||
include = '\.pyi?$' | ||
exclude = ''' | ||
/( | ||
\.git | ||
| \.hg | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| _build | ||
| buck-out | ||
| build | ||
| dist | ||
)/ | ||
''' | ||
|
||
[tool.isort] | ||
# https://github.com/PyCQA/isort | ||
multi_line_output = "3" | ||
include_trailing_comma = true | ||
force_grid_wrap = false | ||
use_parentheses = true | ||
line_length = "120" | ||
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] | ||
known_first_party = ["wisdem"] | ||
length_sort = "1" | ||
profile = "black" | ||
skip_glob = ['__init__.py'] | ||
atomic = true | ||
#lines_after_imports = 2 | ||
#lines_between_types = 1 | ||
#src_paths=isort,test | ||
|
||
[tool.cibuildwheel] | ||
skip = ["cp36-*", "cp37-*", "cp38-*", "*-win32", "*arm64", "pp*"] | ||
build-frontend = "build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.