forked from blaylockbk/Herbie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (59 loc) · 2.03 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
from pathlib import Path
from setuptools import setup, find_packages
HERE = Path(__file__).parent
README = (HERE / "README.md").read_text(encoding="utf8")
setup(
name="herbie-data", # Unfortunately, "herbie" is already used.
version="0.0.8",
author="Brian K. Blaylock",
author_email="blaylockbk@gmail.com",
description="Download model data (HRRR, RAP, GFS, NBM, etc.) from NOMADS, NOAA's Big Data Program partners (Amazon, Google, Microsoft), and the University of Utah Pando Archive System.",
long_description=README,
long_description_content_type="text/markdown",
project_urls={
"Source Code": "https://github.com/blaylockbk/Herbie",
"Documentation": "https://blaylockbk.github.io/Herbie/_build/html/",
},
license="MIT",
packages=find_packages(),
package_data={
"": ["*.cfg"],
},
python_requires=">=3.8",
install_requires=["numpy", "pandas", "xarray", "cfgrib", "metpy"],
keywords=[
"xarray",
"meteorology",
"weather",
"HRRR",
"numerical weather prediction",
"forecast",
"atmosphere",
],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Atmospheric Science",
],
zip_safe=False,
)
###############################################################################
## Brian's Note: How to upload a new version to PyPI
## -------------------------------------------------
# Created a new conda environment with twine
# conda create -n pypi python=3 twine pip -c conda-forge
"""
conda activate pypi
cd Herbie
python setup.py sdist bdist_wheel
twine check dist/*
# PyPI
twine upload --skip-existing dist/*
# Test PyPI
twine upload --skip-existing --repository-url https://test.pypi.org/legacy/ dist/*
"""