-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare to release #3
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish Python distributions to PyPI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build-and-publish: | ||
name: Build and publish Python distribution to PyPI | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pypa/build | ||
run: | | ||
python3 -m pip install build --user | ||
|
||
- name: Build a binary wheel and a source tarball | ||
run: | | ||
python3 -m build --sdist --wheel --outdir dist/ . | ||
|
||
- name: Publish distribution to PyPI | ||
if: startsWith(github.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_TOKEN }} |
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,49 +1,3 @@ | ||
[project] | ||
name = "wxflow" | ||
version = "0.1.0" | ||
description = "Tools for Weather Workflows" | ||
readme = "README.md" | ||
requires-python = ">=3.6" | ||
license = {file = "LICENSE.md"} | ||
keywords = ["NWP", "Workflow"] | ||
authors = [ | ||
{name = "NOAA/NWS/NCEP/EMC", email = "First.Last@noaa.gov" } | ||
] | ||
maintainers = [ | ||
{name = "NOAA/NWS/NCEP/EMC", email = "First.Last@noaa.gov" } | ||
] | ||
|
||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU Lesser General Public License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3 :: Only", | ||
] | ||
|
||
dependencies = [ | ||
"numpy>=1.21.6", | ||
"PyYAML>=6.0", | ||
"Jinja2>=3.1.2" | ||
] | ||
|
||
[project.optional-dependencies] | ||
dev = ["check-manifest", "pytest>=7", "pytest-cov[all]"] | ||
test = ["pytest>=7", "pytest-cov[all]"] | ||
lint = ["pycodestyle"] | ||
|
||
[project.urls] | ||
"Homepage" = "https://github.com/NOAA-EMC/wxflow" | ||
"Bug Reports" = "https://github.com/NOAA-EMC/wxflow/issues" | ||
"Source" = "https://github.com/NOAA-EMC/wxflow/" | ||
|
||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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,63 @@ | ||
[metadata] | ||
name = wxflow | ||
version = attr: wxflow.__version__ | ||
description = Tools for Weather Workflows | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
author = NOAA/NWS/NCEP/EMC | ||
#author_email = first.last@domain.tld | ||
keywords = NOAA, NWS, NCEP, EMC | ||
home_page = https://github.com/noaa-emc/wxflow | ||
license = GNU Lesser General Public License v3 or later (LGPLv3+) | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: GNU Lesser General Public License | ||
Natural Language :: English | ||
Operating System :: OS Independent | ||
Programming Language :: Python | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Programming Language :: Python :: 3.10 | ||
Programming Language :: Python :: 3.11 | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Operating System :: OS Independent | ||
Typing :: Typed | ||
project_urls = | ||
Bug Tracker = https://github.com/noaa-emc/wxflow/issues | ||
CI = https://github.com/noaa-emc/wxflow/actions | ||
|
||
[options] | ||
zip_safe = False | ||
include_package_data = True | ||
package_dir = | ||
=src | ||
packages = find_namespace: | ||
python_requires = >= 3.6 | ||
setup_requires = | ||
setuptools | ||
install_requires = | ||
numpy>=1.21.6 | ||
PyYAML>=6.0 | ||
Jinja2>=3.1.2 | ||
tests_require = | ||
pytest | ||
|
||
[options.packages.find] | ||
where=src | ||
|
||
[options.package_data] | ||
* = *.txt, *.md | ||
|
||
[options.extras_require] | ||
dev = pytest>=7; pytest-cov>=3 | ||
|
||
[green] | ||
file-pattern = test_*.py | ||
verbose = 2 | ||
no-skip-report = true | ||
quiet-stdout = true | ||
run-coverage = true |
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,4 @@ | ||
''' Standard file for building the package with Distutils. ''' | ||
|
||
import setuptools | ||
setuptools.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
""" | ||
Commonly used toolset for the global applications and beyond. | ||
""" | ||
__docformat__ = "restructuredtext" | ||
|
||
import os | ||
|
||
from .yaml_file import YAMLFile, parse_yaml, parse_yamltmpl, parse_j2yaml, save_as_yaml, dump_as_yaml, vanilla_yaml | ||
from .timetools import * | ||
from .template import TemplateConstants, Template | ||
from .task import Task | ||
from .logger import Logger, logit | ||
from .jinja import Jinja | ||
from .fsutils import mkdir, mkdir_p, rmdir, chdir, rm_p, cp | ||
from .file_utils import FileHandler | ||
from .factory import Factory | ||
from .executable import Executable, which, CommandNotFoundError | ||
from .exceptions import WorkflowException, msg_except_handle | ||
from .configuration import Configuration, cast_strdict_as_dtypedict, cast_as_dtype | ||
from .attrdict import AttrDict | ||
|
||
__docformat__ = "restructuredtext" | ||
__version__ = "0.1.0" | ||
wxflow_directory = os.path.dirname(__file__) |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you specify
Python :: 3
here, why do you need to include 3.7 - 3.11? My understanding was that `Python :: 3`` should cover all Python version 3 releases. Is this just decorative?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the underlying code will not work w/ 3.6 or below because the dependencies have become deprecated.
I urge you to try and install this w/ e.g. 3.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you. I was just curious as to what your reasoning was here. I see you addressed this here and here. Maybe this is OK.