Skip to content

Commit 4fe281a

Browse files
committed
packaging and versioning
1 parent 654324f commit 4fe281a

File tree

11 files changed

+62
-46
lines changed

11 files changed

+62
-46
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, windows-latest]
13+
os: [ubuntu-latest]
1414
python-version: [3.6, 3.7, 3.8]
15+
include:
16+
- os: [windows-latest, macos-latest]
17+
python-version: 3.8
18+
1519
steps:
1620
- uses: actions/checkout@v2
1721
- name: Set up Python ${{ matrix.python-version }}

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
FROM python:3.7.7-slim-stretch as builder
22

3-
# File Author / Maintainer
4-
# MAINTAINER
5-
63
# this will be user root regardless whether home/beakerx is not
74
COPY . /tmp/pypfopt
85

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<img src="https://img.shields.io/badge/python-v3-brightgreen.svg"
99
alt="python"></a> &nbsp;
1010
<a href="https://pypi.org/project/PyPortfolioOpt/">
11-
<img src="https://img.shields.io/badge/pypi-v1.3.1-brightgreen.svg"
11+
<img src="https://img.shields.io/badge/pypi-v1.4.0-brightgreen.svg"
1212
alt="pypi"></a> &nbsp;
1313
<a href="https://opensource.org/licenses/MIT">
1414
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg"
@@ -68,6 +68,8 @@ Head over to the [documentation on ReadTheDocs](https://pyportfolioopt.readthedo
6868
If you would like to play with PyPortfolioOpt interactively in your browser, you may launch Binder [here](https://mybinder.org/v2/gh/robertmartin8/pyportfolioopt/master). It takes a
6969
while to set up, but it lets you try out the cookbook recipes without having to deal with all of the requirements.
7070

71+
*Note: macOS users will need to install [Command Line Tools](https://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/).*
72+
7173
*Note: if you are on windows, you first need to installl C++. ([download](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16), [install instructions](https://drive.google.com/file/d/0B4GsMXCRaSSIOWpYQkstajlYZ0tPVkNQSElmTWh1dXFaYkJr/view))*
7274

7375
This project is available on PyPI, meaning that you can just:
@@ -395,9 +397,12 @@ Special shout-outs to:
395397
- Aditya Bhutra
396398
- Thomas Schmelzer
397399
- Rich Caputo
400+
- Nicolas Knudde
398401

399402
## Getting in touch
400403

401-
If you are having a problem with PyPortfolioOpt, please raise an issue.
404+
If you are having a problem with PyPortfolioOpt, please raise a GitHub issue. For anything else, you can reach me at:
402405

403-
For anything else, you can contact me via the [form](https://reasonabledeviations.com/about/) on my website.
406+
<center>
407+
<img src="https://github.com/robertmartin8/ReasonableDeviations/blob/gh-pages/assets/images/contact.png" style="width:75%;"/>
408+
</center>

docs/Roadmap.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ are interested in implementing one of these, raise an issue or send me an email
1313
discuss. If you have any other feature requests, please raise them using GitHub
1414
`issues <https://github.com/robertmartin8/PyPortfolioOpt/issues>`_
1515

16-
- Improved plotting
1716
- Open-source backtests using either `Backtrader <https://www.backtrader.com/>`_ or
1817
`Zipline <https://github.com/quantopian/zipline>`_.
1918
- Optimising for higher moments (i.e skew and kurtosis)
@@ -22,6 +21,17 @@ discuss. If you have any other feature requests, please raise them using GitHub
2221
- Monte Carlo optimisation with custom distributions
2322
- Further support for different risk/return models
2423

24+
1.4.0
25+
=====
26+
27+
- Finally implemented CVaR optimisation! This has been one of the most requested features. Many thanks
28+
to `Nicolas Knudde <https://github.com/nknudde>`_ for the initial draft.
29+
- Re-architected plotting so users can pass an ax, allowing for complex plots (see cookbook).
30+
- Helper method to compute the max-return portfolio (thanks to `Philipp Schiele <https://github.com/phschiele>`_)
31+
for the suggestion).
32+
- Several bug fixes and test improvements (thanks to `Carl Peasnell <https://github.com/SeaPea1>`_).
33+
34+
2535
1.3.0
2636
=====
2737

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
# built documents.
5757
#
5858
# The short X.Y version.
59-
version = "1.3"
59+
version = "1.4"
6060
# The full version, including alpha/beta/rc tags.
61-
release = "1.3.1"
61+
release = "1.4.0"
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<img src="https://img.shields.io/badge/python-v3-brightgreen.svg"
1616
alt="python"></a> &nbsp;
1717
<a href="https://pypi.org/project/PyPortfolioOpt/">
18-
<img src="https://img.shields.io/badge/pypi-v1.3.1-brightgreen.svg"
18+
<img src="https://img.shields.io/badge/pypi-v1.4.0-brightgreen.svg"
1919
alt="python"></a> &nbsp;
2020
<a href="https://opensource.org/licenses/MIT">
2121
<img src="https://img.shields.io/badge/license-MIT-brightgreen.svg"

pipfile

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ url = "https://pypi.org/project/pyportfolioopt/"
33
name = "pypi"
44

55
[packages]
6-
numpy = "^=1.17.3"
7-
scipy = "^=1.3.2"
8-
pandas = "^0.25.3"
9-
cvxpy = "^1.0.28"
6+
numpy = "==1.*,>=1.12.0"
7+
scipy = "==1.*,>=1.3.0"
8+
pandas = ">=0.19"
9+
cvxpy = "==1.*,>=1.1.10"
10+
cvxopt = "!=1.2.5.post1,==1.*,>=1.2.0"
11+
matplotlib = "==3.*,>=3.2.0"
12+
scikit-learn = "==0.*,>=0.19.0"
1013

1114
[dev-packages]
12-
pytest = "^4.6"
13-
14-
[requires]
15-
python_version = "^3.6"
15+
black = "==20.*,>=20.8.0.b1"
16+
flake8 = "==3.*,>=3.7.0"
17+
ipykernel = "==5.*,>=5.4.3"
18+
jedi = "==0.17.2"
19+
jupyter = "==1.*,>=1.0.0"
20+
pytest = "==4.*,>=4.6.0"

poetry.lock

Lines changed: 13 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pypfopt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .risk_models import CovarianceShrinkage
1111

1212

13-
__version__ = "1.3.1"
13+
__version__ = "1.4.0"
1414

1515
__all__ = [
1616
"market_implied_prior_returns",

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "PyPortfolioOpt"
3-
version = "1.3.1"
3+
version = "1.4.0"
44
description = "Financial portfolio optimisation in python"
55
license = "MIT"
66
authors = ["Robert Andrew Martin <[email protected]>"]
@@ -46,6 +46,7 @@ flake8 = "^3.7"
4646
jupyter = "^1.0.0"
4747
black = "^20.8b1"
4848
ipykernel = "^5.4.3"
49+
jedi = "0.17.2"
4950

5051
[tool.poetry.extras]
5152
optionals = ["scikit-learn", "matplotlib"]

0 commit comments

Comments
 (0)