Skip to content

Commit

Permalink
Add requests-pelican
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Nov 21, 2024
1 parent 704a295 commit 2e67a67
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions recipes/requests-pelican/meta.yaml
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

0 comments on commit 2e67a67

Please sign in to comment.