-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initiating pyproject.toml * Moving some metadata to pyproject.toml * Checking TOML with pre-commit * Optional requirements [dev] * Moving dependencies into pyproject.toml * Version already moved * Keywords * zip_safe is considered obsolete Some info: https://setuptools.pypa.io/en/latest/deprecated/zip_safe.html#understanding-the-zip-safe-flag * fix: Requirements moved into dependencies * Fixing documentation URL * Moving include_package_data to pyproject.toml * Deginign package_dir with pyproject.toml * Defining optional dependency group 'test' * Moving to dynamic versioning * Build package with `build` and check it with twine * fix: fetch-depth to 0 due to bug with fetch-tags It looks like fetch-tags is currently not working, so we will need to fetch-depth for now. * fix: Explicit dependency on numpy and scipy * fix: Restricting TensorFlow to < 2.16
- Loading branch information
Showing
21 changed files
with
97 additions
and
80 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
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 61.0", | ||
"setuptools_scm[toml] >= 8", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "NREL-sup3r" | ||
dynamic = ["version"] | ||
description = "Super Resolving Renewable Resource Data (sup3r)" | ||
keywords = ["sup3r", "NREL"] | ||
readme = "README.rst" | ||
authors = [ | ||
{name = "Brandon Benton", email = "[email protected]"}, | ||
] | ||
license = {text = "BSD-3-Clause"} | ||
requires-python = ">= 3.8" | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
] | ||
dependencies = [ | ||
"NREL-rex>=0.2.84", | ||
"NREL-phygnn>=0.0.23", | ||
"NREL-gaps>=0.6.0", | ||
"NREL-farms>=1.0.4", | ||
"dask>=2022.0", | ||
"google-auth-oauthlib==0.5.3", | ||
"matplotlib>=3.1", | ||
"numpy>=1.7.0", | ||
"netCDF4==1.5.8", | ||
"pandas>=2.0", | ||
"pillow>=10.0", | ||
"pytest>=5.2", | ||
"scipy>=1.0.0", | ||
"sphinx>=7.0", | ||
"tensorflow>2.4,<2.16", | ||
"xarray>=2023.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"build>=0.5", | ||
"flake8", | ||
"pre-commit", | ||
"pylint", | ||
] | ||
doc = [ | ||
"sphinx>=7.0", | ||
] | ||
test = [ | ||
"pytest>=5.2", | ||
] | ||
|
||
[project.urls] | ||
homepage = "https://github.com/NREL/sup3r" | ||
documentation = "https://nrel.github.io/sup3r/" | ||
repository = "https://github.com/NREL/sup3r" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
packages = ["sup3r"] | ||
|
||
[tool.setuptools_scm] | ||
version_file = "sup3r/_version.py" |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,27 +1,12 @@ | ||
""" | ||
setup.py | ||
""" | ||
import os | ||
from codecs import open | ||
from setuptools import setup, find_packages | ||
from setuptools import setup | ||
from setuptools.command.develop import develop | ||
from subprocess import check_call | ||
import shlex | ||
from warnings import warn | ||
|
||
here = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
with open(os.path.join(here, "README.rst"), encoding="utf-8") as f: | ||
readme = f.read() | ||
|
||
with open(os.path.join(here, "requirements.txt")) as f: | ||
install_requires = f.readlines() | ||
|
||
with open(os.path.join(here, "sup3r", "version.py"), encoding="utf-8") as f: | ||
version = f.read() | ||
|
||
version = version.split('=')[-1].strip().strip('"').strip("'") | ||
|
||
|
||
class PostDevelopCommand(develop): | ||
""" | ||
|
@@ -42,12 +27,6 @@ def run(self): | |
|
||
|
||
setup( | ||
name="NREL-sup3r", | ||
version=version, | ||
description="Super Resolving Renewable Resource Data (sup3r)", | ||
long_description=readme, | ||
author="Brandon Benton", | ||
author_email="[email protected]", | ||
entry_points={ | ||
"console_scripts": ["sup3r=sup3r.cli:main", | ||
"sup3r-pipeline=sup3r.pipeline.pipeline_cli:main", | ||
|
@@ -66,27 +45,6 @@ def run(self): | |
"data_collect_cli:main"), | ||
], | ||
}, | ||
url="https://github.com/NREL/sup3r", | ||
packages=find_packages(), | ||
package_dir={"sup3r": "sup3r"}, | ||
include_package_data=True, | ||
license="BSD 3-Clause", | ||
zip_safe=False, | ||
keywords="sup3r", | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
], | ||
test_suite="tests", | ||
python_requires='>=3.8', | ||
install_requires=install_requires, | ||
extras_require={ | ||
"dev": ["flake8", "pre-commit", "pylint"], | ||
}, | ||
cmdclass={"develop": PostDevelopCommand}, | ||
) |
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
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
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
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
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 was deleted.
Oops, something went wrong.