Skip to content

Commit

Permalink
Merge pull request quantopian#2353 from quantopian/update_requests
Browse files Browse the repository at this point in the history
Upgrade to current version of requests package
  • Loading branch information
jikquantopian authored Nov 30, 2018
2 parents 187e909 + 7743e1a commit 3e8cc02
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 9 deletions.
27 changes: 19 additions & 8 deletions conda/README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,38 @@
conda build files
conda recipes
=================

[conda](http://docs.continuum.io/conda/intro.html) is a
Python package management system by Continuum that provides
[conda](https://conda.io/docs/user-guide/overview.html) is a
Python package management system by Anaconda that provides
easy installation of binary packages.

The files in this directory provide instructions for how
to create these binary packages. After installing conda and
conda-build you should be able to:

```
```bash
conda build ta-lib
conda build logbook
conda build cyordereddict
conda build zipline
```

You can then upload these binary packages to your own
channel at [binstar](https://binstar.org).
channel at [anaconda.org](https://anaconda.org).

You can add new recipes for packages that exist on PyPI with
[conda skeleton](https://conda.io/docs/user-guide/tutorials/build-pkgs-skeleton.html#building-a-simple-package-with-conda-skeleton-pypi):

```bash
conda skeleton pypi <package_name> --version <version>
```

From the zipline root directory, I might add a recipe for `requests==2.20.1` with:

```bash
$ conda skeleton pypi requests --version 2.20.1 --output-dir ./conda
```

Windows
-------

Building ta-lib on Windows requires Visual Studio (Express) and
the [compiled ta-lib](ta-lib-0.4.0-msvc.zip) which you have to
unzip to C:\ta-lib.
Building ta-lib on Windows requires Visual Studio (Express).
57 changes: 57 additions & 0 deletions conda/requests/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{% set name = "requests" %}
{% set version = "2.20.1" %}
{% set file_ext = "tar.gz" %}
{% set hash_type = "sha256" %}
{% set hash_value = "ea881206e59f41dbd0bd445437d792e43906703fff75ca8ff43ccdb11f33f263" %}

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

source:
fn: '{{ name }}-{{ version }}.{{ file_ext }}'
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.{{ file_ext }}
'{{ hash_type }}': '{{ hash_value }}'

build:
number: 0
script: python setup.py install --single-version-externally-managed --record=record.txt

requirements:
build:
- python
- setuptools
- chardet >=3.0.2,<3.1.0
- idna >=2.5,<2.8
- urllib3 >=1.21.1,<1.25
- certifi >=2017.4.17
run:
- python
- chardet >=3.0.2,<3.1.0
- idna >=2.5,<2.8
- urllib3 >=1.21.1,<1.25
- certifi >=2017.4.17

test:
imports:
- requests
# requires:
# - pysocks >=1.5.6,!=1.5.7
# - pytest >=2.8.0
# - pytest-cov
# - pytest-httpbin ==0.0.7
# - pytest-mock
# - pytest-xdist

about:
home: http://python-requests.org
license: Apache Software License
license_family: APACHE
license_file: ''
summary: Python HTTP for Humans.
description: "Requests: HTTP for Humans"
doc_url: ''
dev_url: ''

extra:
recipe-maintainers: ''
2 changes: 1 addition & 1 deletion etc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ python-dateutil==2.4.2
six==1.10.0

# For fetching remote data
requests==2.9.1
requests==2.20.1

Cython==0.25.2

Expand Down

0 comments on commit 3e8cc02

Please sign in to comment.