Skip to content
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

adding business duration receipe #20681

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
39 changes: 39 additions & 0 deletions recipes/business-duration/meta.yaml
@@ -0,0 +1,39 @@
{% set name = "business-duration" %}
{% set version = "0.66" %}

package:
name: "{{ name|lower }}"
version: "{{ version }}"

source:
url: "https://files.pythonhosted.org/packages/e5/1d/12b3bb612a19d20ca2d9fe7ebfc80ab6b9e1d5d575c6a3dcd121c7cbfed4/business_duration-0.66.tar.gz"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL should be templated with the version number.

sha256: "2fbecabe8059a259623c357b1c4f4274408498bfca52647e39ec10326182d74b"

build:
number: 0
noarch: python
script: "{{ PYTHON }} -m pip install . --no-deps --ignore-installed -vv "

requirements:
host:
- pip
- python >=3.6
run:
- python >=3.6

test:
imports:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a call to pip check here

- business_duration

about:
home: "https://github.com/gnaneshwar441/Business_Duration"
license: "MIT"
license_family: "MIT"
license_file: "PKG-INFO"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't sound like a typical license file.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not, it's only the license metadata from packaging, no actual text with language of the license.

summary: "Calculates business duration in days, hours, minutes and seconds by excluding weekends, public holidays and non-business hours"
doc_url: "https://pypi.org/project/business-duration/"
dev_url: "https://github.com/gnaneshwar441/Business_Duration"

extra:
recipe-maintainers:
- frankzhu93