Skip to content

Commit

Permalink
Merge pull request #17075 from awvwgk/fprettify
Browse files Browse the repository at this point in the history
Add recipe for fprettify
  • Loading branch information
ocefpaf authored Nov 25, 2021
2 parents e971582 + 0e2fc57 commit 64827f8
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
20 changes: 20 additions & 0 deletions recipes/fprettify/find_package.patch
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
license='GPLv3',
entry_points={'console_scripts': ['fprettify = fprettify:run']},
- packages=['fprettify'],
+ packages=find_packages(),
install_requires=[
'configargparse',
],
49 changes: 49 additions & 0 deletions recipes/fprettify/meta.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 64827f8

Please sign in to comment.