From 0e2fc5734b0438e7595719a32f856570a7efb78f Mon Sep 17 00:00:00 2001 From: Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> Date: Thu, 25 Nov 2021 13:37:19 +0100 Subject: [PATCH] Add recipe for fprettify --- recipes/fprettify/find_package.patch | 20 ++++++++++++ recipes/fprettify/meta.yaml | 49 ++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 recipes/fprettify/find_package.patch create mode 100644 recipes/fprettify/meta.yaml diff --git a/recipes/fprettify/find_package.patch b/recipes/fprettify/find_package.patch new file mode 100644 index 0000000000000..16fe38aa8d48c --- /dev/null +++ b/recipes/fprettify/find_package.patch @@ -0,0 +1,20 @@ +diff --git a/setup.py b/setup.py +index f0b2cdd..8cbb12e 100755 +--- a/setup.py ++++ b/setup.py +@@ -1,5 +1,5 @@ + #!/usr/bin/env python +-from setuptools import setup ++from setuptools import setup, find_packages + from codecs import open + from os import path + +@@ -16,7 +16,7 @@ setup(name='fprettify', + author_email='patrick.seewald@gmail.com', + license='GPLv3', + entry_points={'console_scripts': ['fprettify = fprettify:run']}, +- packages=['fprettify'], ++ packages=find_packages(), + install_requires=[ + 'configargparse', + ], diff --git a/recipes/fprettify/meta.yaml b/recipes/fprettify/meta.yaml new file mode 100644 index 0000000000000..f6c88ea4beb2f --- /dev/null +++ b/recipes/fprettify/meta.yaml @@ -0,0 +1,49 @@ +{% set name = "fprettify" %} +{% set version = "0.3.7" %} + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://github.com/pseewald/{{ name }}/archive/v{{ version }}.tar.gz + sha256: 052da19a9080a6641d3202e10572cf3d978e6bcc0e7db29c1eb8ba724e89adc7 + patches: + - find_package.patch + +build: + number: 0 + script: + - {{ PYTHON }} -m pip install . -vv + noarch: python + entry_points: + - {{ name }} = {{ name }}:run + +requirements: + host: + - python >=3.5 + - pip + run: + - python >=3.5 + - configargparse + +test: + source_files: + - fortran_tests/ + - run_tests.py + imports: + - {{ name }} + commands: + - {{ name }} --version + - python run_tests.py + +about: + license: GPL-3.0-or-later + license_family: GPL + license_file: LICENSE + summary: Auto-formatter for modern fortran source code + home: https://github.com/pseewald/fprettify/ + +extra: + recipe-maintainers: + - awvwgk