-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from timcera/main
Sync Forked Repo 2022/08/29
- Loading branch information
Showing
12 changed files
with
1,738 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,89 @@ | ||
[project] | ||
name = "mettoolbox" | ||
dynamic = ["readme", "version"] | ||
description="mettoolbox is set of command line and Python tools for the analysis and reporting of meteorological data." | ||
requires-python = ">=3.7.1" | ||
dependencies = [ | ||
"toolbox_utils < 1.0.0", | ||
"cltoolbox", | ||
"solarpy", | ||
"standard-precip", | ||
"pydaymet", | ||
"pyet", | ||
] | ||
license = {file = "LICENSE.txt"} | ||
authors = [ | ||
{name = "Tim Cera", email = "[email protected]"} | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Developers", | ||
"Environment :: Console", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
] | ||
keywords = ["time-series", | ||
"cli-app", | ||
"meteorology", | ||
"evaporation", | ||
"precipitation", | ||
"climate", | ||
"weather", | ||
"climate-data", | ||
"climate-data-analysis", | ||
"climate-data-analysis-tools", | ||
"temperature", | ||
"humidity", | ||
"wind", | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
"black", | ||
"cleanpy", | ||
"twine", | ||
"pytest", | ||
"coverage", | ||
"flake8", | ||
"pytest-cov", | ||
"pytest-mpl", | ||
"pre-commit", | ||
"black-nbconvert", | ||
"blacken-docs", | ||
"velin", | ||
"isort", | ||
"pyroma", | ||
"pyupgrade", | ||
"commitizen", | ||
] | ||
|
||
[project.scripts] | ||
mettoolbox = "mettoolbox.mettoolbox:main" | ||
|
||
[project_urls] | ||
documentation = "https://timcera.bitbucket.io/mettoolbox/docs/index.html#mettoolbox-documentation" | ||
github = "https://github.com/timcera/mettoolbox" | ||
bitbucket = "https://bitbucket.org/timcera/mettoolbox/src/main/" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.dynamic] | ||
readme = {file = "README.rst"} | ||
version = {file = "VERSION"} | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
exclude = ["examples*", "tools*", "docs*", "mettoolbox.tests*"] | ||
|
||
[tool.check-manifest] | ||
ignore = [".travis.yml", | ||
|
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 |
---|---|---|
|
@@ -4,11 +4,12 @@ | |
import subprocess | ||
import sys | ||
|
||
from setuptools import find_packages, setup | ||
from setuptools import setup | ||
|
||
pkg_name = "mettoolbox" | ||
|
||
version = open("VERSION").readline().strip() | ||
with open("VERSION", encoding="ascii") as version_file: | ||
version = version_file.readline().strip() | ||
|
||
if sys.argv[-1] == "publish": | ||
subprocess.run(shlex.split("cleanpy ."), check=True) | ||
|
@@ -18,68 +19,4 @@ | |
) | ||
sys.exit() | ||
|
||
README = open("README.rst").read() | ||
|
||
install_requires = [ | ||
# List your project dependencies here. | ||
# For more details, see: | ||
# http://packages.python.org/distribute/setuptools.html#declaring-dependencies | ||
"tstoolbox > 103.18.4", | ||
"solarpy", | ||
"standard-precip", | ||
"pydaymet", | ||
"pyet", | ||
] | ||
|
||
extras_require = { | ||
"dev": [ | ||
"black", | ||
"cleanpy", | ||
"twine", | ||
"pytest", | ||
"coverage", | ||
"flake8", | ||
"pytest-cov", | ||
"pytest-mpl", | ||
"pre-commit", | ||
] | ||
} | ||
|
||
setup( | ||
name=pkg_name, | ||
version=version, | ||
description="mettoolbox is set of command line and Python tools for the analysis and reporting of meteorological data.", | ||
long_description=README, | ||
classifiers=[ | ||
# Get strings from | ||
# http://pypi.python.org/pypi?%3Aaction=list_classifiers | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Science/Research", | ||
"Intended Audience :: End Users/Desktop", | ||
"Intended Audience :: Developers", | ||
"Environment :: Console", | ||
"License :: OSI Approved :: BSD License", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Scientific/Engineering :: Information Analysis", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
], | ||
keywords="time_series", | ||
author="Tim Cera, PE", | ||
author_email="[email protected]", | ||
url=f"http://timcera.bitbucket.io/{pkg_name}/docs/index.html", | ||
license="BSD", | ||
packages=find_packages("src"), | ||
package_dir={"": "src"}, | ||
include_package_data=True, | ||
zip_safe=False, | ||
install_requires=install_requires, | ||
extras_require=extras_require, | ||
entry_points={"console_scripts": [f"{pkg_name}={pkg_name}.{pkg_name}:main"]}, | ||
test_suite="tests", | ||
python_requires=">=3.7.1", | ||
) | ||
setup() |
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
Oops, something went wrong.