-
-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
704a295
commit 2e67a67
Showing
1 changed file
with
63 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% set name = "requests-pelican" %} | ||
{% set version = "0.1.0" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/requests_pelican-{{ version }}.tar.gz | ||
sha256: 212f680e71f423ba0a2ebb79f4b4c196b00dc1c083ba09295c842a260abdc90b | ||
|
||
build: | ||
noarch: python | ||
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation | ||
number: 0 | ||
|
||
requirements: | ||
host: | ||
- python {{ python_min }} | ||
- setuptools >=61 | ||
- setuptools-scm >=3.4.3 | ||
- wheel | ||
- pip | ||
run: | ||
- cachetools | ||
- python >={{ python_min }} | ||
- requests | ||
- requests-cache | ||
- scitokens | ||
|
||
test: | ||
requires: | ||
- pip | ||
- pytest >=3.9.1 | ||
- pytest-remotedata | ||
- python {{ python_min }} | ||
- requests-mock | ||
commands: | ||
- python3 -m pip check | ||
- python3 -m pip show requests-pelican | ||
- python3 -m pytest --pyargs -ra --remote-data=none -v requests_pelican | ||
|
||
about: | ||
summary: A requests addon for Pelican data federations | ||
dev_url: https://git.ligo.org/computing/software/requests-pelican.git | ||
doc_url: https://requests-pelican.readthedocs.io | ||
home: https://git.ligo.org/computing/software/requests-pelican | ||
license: MIT | ||
license_file: LICENSE | ||
description: | | ||
This project provides [`requests`](https://github.com/psf/requests) addons | ||
to support HTTP requests to a [Pelican Federation](https://pelicanplatform.org/). | ||
The main component is a new `PelicanAdapter` class that handles translating | ||
Pelican URIs into HTTP URLs to enable standard `GET` requests, including | ||
looping over Pelican caches. | ||
This project also provides wrappers around `requests.get` (and friends) and | ||
`requests.Session` to simplify configuring support for Pelican URIs. | ||
extra: | ||
recipe-maintainers: | ||
- duncanmmacleod |