forked from quantopian/zipline
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request quantopian#2353 from quantopian/update_requests
Upgrade to current version of requests package
- Loading branch information
Showing
3 changed files
with
77 additions
and
9 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 |
---|---|---|
@@ -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). |
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,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: '' |
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