Date: Mon, 26 Dec 2022 02:35:07 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 4a8fb590ff26 - main - finance/py-pandas-market-calendars: New port: Market and exchange trading calendars for pandas Message-ID: <202212260235.2BQ2Z7Z1084728@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=4a8fb590ff26e8247fe52869a8fb709257f33adb commit 4a8fb590ff26e8247fe52869a8fb709257f33adb Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2022-12-26 02:27:05 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2022-12-26 02:34:59 +0000 finance/py-pandas-market-calendars: New port: Market and exchange trading calendars for pandas --- finance/Makefile | 1 + finance/py-pandas-market-calendars/Makefile | 32 ++++++++++++++++++++++++++++ finance/py-pandas-market-calendars/distinfo | 3 +++ finance/py-pandas-market-calendars/pkg-descr | 13 +++++++++++ 4 files changed, 49 insertions(+) diff --git a/finance/Makefile b/finance/Makefile index 56b715c4819c..6935f53bd964 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -109,6 +109,7 @@ SUBDIR += py-investpy SUBDIR += py-mplfinance SUBDIR += py-ofxparse + SUBDIR += py-pandas-market-calendars SUBDIR += py-pycoin SUBDIR += py-python-bitcoinlib SUBDIR += py-python-obelisk diff --git a/finance/py-pandas-market-calendars/Makefile b/finance/py-pandas-market-calendars/Makefile new file mode 100644 index 000000000000..61fddca5fff7 --- /dev/null +++ b/finance/py-pandas-market-calendars/Makefile @@ -0,0 +1,32 @@ +PORTNAME= pandas-market-calendars +DISTVERSIONPREFIX= v +DISTVERSION= 4.1.2 +CATEGORIES= finance python +#MASTER_SITES= CHEESESHOP # no tests +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/g}-${PORTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Market and exchange trading calendars for pandas +WWW= https://github.com/rsheftel/pandas_market_calendars + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}exchange-calendars>=3.3:finance/py-exchange-calendars@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pandas>=1.1:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} +BUILD_DEPENDS= ${PY_DEPENDS} +RUN_DEPENDS= ${PY_DEPENDS} + +USES= python:3.8+ +USE_PYTHON= distutils autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= rsheftel +GH_PROJECT= ${PORTNAME:S/-/_/g} + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/finance/py-pandas-market-calendars/distinfo b/finance/py-pandas-market-calendars/distinfo new file mode 100644 index 000000000000..6859adc19b45 --- /dev/null +++ b/finance/py-pandas-market-calendars/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1672016958 +SHA256 (rsheftel-pandas_market_calendars-v4.1.2_GH0.tar.gz) = f83ba62c8839130b103cad34e5de03074f8c1518afa944eebe9fbe755122d6bc +SIZE (rsheftel-pandas_market_calendars-v4.1.2_GH0.tar.gz) = 209465 diff --git a/finance/py-pandas-market-calendars/pkg-descr b/finance/py-pandas-market-calendars/pkg-descr new file mode 100644 index 000000000000..ec58edf5ca93 --- /dev/null +++ b/finance/py-pandas-market-calendars/pkg-descr @@ -0,0 +1,13 @@ +The Pandas package is widely used in finance and specifically for time series +analysis. It includes excellent functionality for generating sequences of dates +and capabilities for custom holiday calendars, but as an explicit design choice +it does not include the actual holiday calendars for specific exchanges or OTC +markets. + +The pandas_market_calendars package looks to fill that role with the holiday, +late open and early close calendars for specific exchanges and OTC conventions. +pandas_market_calendars also adds several functions to manipulate the market +calendars and includes a date_range function to create a pandas DatetimeIndex +including only the datetimes when the markets are open. Additionally the package +contains product specific calendars for future exchanges which have different +market open, closes, breaks and holidays based on product type.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212260235.2BQ2Z7Z1084728>