diff --git a/README.md b/README.md index 3d6eac0..c50383e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ Current release info | Name | Downloads | Version | Platforms | | --- | --- | --- | --- | | [![Conda Recipe](https://img.shields.io/badge/recipe-jsf-green.svg)](https://anaconda.org/conda-forge/jsf) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/jsf.svg)](https://anaconda.org/conda-forge/jsf) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jsf.svg)](https://anaconda.org/conda-forge/jsf) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/jsf.svg)](https://anaconda.org/conda-forge/jsf) | +| [![Conda Recipe](https://img.shields.io/badge/recipe-jsf--with--cli-green.svg)](https://anaconda.org/conda-forge/jsf-with-cli) | [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/jsf-with-cli.svg)](https://anaconda.org/conda-forge/jsf-with-cli) | [![Conda Version](https://img.shields.io/conda/vn/conda-forge/jsf-with-cli.svg)](https://anaconda.org/conda-forge/jsf-with-cli) | [![Conda Platforms](https://img.shields.io/conda/pn/conda-forge/jsf-with-cli.svg)](https://anaconda.org/conda-forge/jsf-with-cli) | Installing jsf ============== @@ -39,16 +40,16 @@ conda config --add channels conda-forge conda config --set channel_priority strict ``` -Once the `conda-forge` channel has been enabled, `jsf` can be installed with `conda`: +Once the `conda-forge` channel has been enabled, `jsf, jsf-with-cli` can be installed with `conda`: ``` -conda install jsf +conda install jsf jsf-with-cli ``` or with `mamba`: ``` -mamba install jsf +mamba install jsf jsf-with-cli ``` It is possible to list all of the versions of `jsf` available on your platform with `conda`: diff --git a/recipe/0000-setup-py-utf8.patch b/recipe/0000-setup-py-utf8.patch deleted file mode 100644 index 14a05c3..0000000 --- a/recipe/0000-setup-py-utf8.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- setup.py 2022-10-25 14:02:43.225225866 -0500 -+++ setup.py 2022-10-25 14:02:56.967253279 -0500 -@@ -1,6 +1,6 @@ - import setuptools - --with open("README.md", "r") as fh: -+with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - - setuptools.setup( diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 47cfd0b..9c782f5 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,52 +1,78 @@ -{% set version = "0.5.2" %} +{% set version = "0.7.0" %} +{% set pytest_args = '--cov-fail-under=99' %} package: name: jsf version: {{ version }} source: - - fn: LICENSE-MIT-jsf-{{ version }} - url: https://raw.githubusercontent.com/ghandic/jsf/{{ version }}/LICENSE - sha256: 1f6a5ddfa2a8cebb59c225edf45b729b90e26bf933b351380ead90aea42ad804 - - url: https://pypi.io/packages/source/j/jsf/jsf-{{ version }}.tar.gz - sha256: ab07fa4bcce59bc425f37c54e8e9d105d03bd138421d17b177575c1ad77ff48b + url: https://pypi.io/packages/source/j/jsf/jsf-{{ version }}.tar.gz + sha256: 5001c270a641369baa66976d8d050a1cd0d2b352efc0d03d5ae7719efaa6dbc2 build: - entry_points: - - jsf=jsf.cli:app noarch: python - script: {{ PYTHON }} -m pip install . -vv number: 0 requirements: host: - - pip - python >=3.7 run: - - faker - - jsonschema - - pydantic - python >=3.7 - - rstr - - smart_open - - typer - -test: - imports: - - jsf - commands: - - pip check - - jsf --help - requires: - - pip + +outputs: + - name: jsf + build: + entry_points: + - jsf = jsf.cli:app + noarch: python + script: {{ PYTHON }} -m pip install . -vv --no-deps --ignore-installed + requirements: + host: + - pip + - python >=3.7 + run: + - faker + - jsonschema >=4.17.3 + - pydantic >=1.10.4 + - python >=3.7 + - rstr >=3.2.0 + - smart-open-with-http >=6.3.0 + test: + imports: + - jsf + commands: + - pip check + requires: + - pip + + - name: jsf-with-cli + build: + noarch: python + requirements: + host: + - python >=3.7 + run: + - python >=3.7 + - {{ pin_subpackage('jsf', exact=True) }} + - typer >=0.7.0 + test: + requires: + - pip + - pytest-cov + - pyjwt + commands: + - pip check + - jsf --help + - pytest -vv --pyargs jsf --cov=jsf --cov-report=term-missing:skip-covered --no-cov-on-fail {{ pytest_args }} about: home: https://github.com/ghandic/jsf summary: Creates fake JSON files from a JSON schema license: MIT license_file: - - LICENSE-MIT-jsf-{{ version }} + - jsf/LICENSE extra: + feedstock-name: jsf recipe-maintainers: - bollwyvl