From ab77e22e592c8e3ec388f1df690e09650b849230 Mon Sep 17 00:00:00 2001 From: wilsonfreitas Date: Mon, 27 Dec 2021 20:35:24 -0300 Subject: [PATCH] Implementing packing - Replaced setup.py with setup.cfg - created pyproject.toml - updated changelog --- CHANGELOG.md | 3 +++ pyproject.toml | 9 +++++++++ setup.cfg | 19 +++++++++++++++++++ setup.py | 27 --------------------------- 4 files changed, 31 insertions(+), 27 deletions(-) create mode 100644 pyproject.toml create mode 100644 setup.cfg delete mode 100644 setup.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d1baec..c631f32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ## [0.1.4] - 2021-12-27 - Changed arguments start_date and end_date to start and end to bring conformity with commom python data libraries like Quandl and pandas-datareader, for example. +- bcb.currency.get multi argument, which refers to multivariate time series returned (defaults to True) +- bcb.sgs.get groupby argument +- Sphinx docs implemented ## [0.1.3] - 2021-04-14 - BUG fix in get_valid_currency_list: recurrent ConnectionError diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..871107b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,9 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel", + "lxml", + "pandas", + "numpy" +] +build-backend = "setuptools.build_meta" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..19b4428 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,19 @@ +[metadata] +name = python-bcb +version = 0.1.4 +author = Wilson Freitas +author_email = wilsonfreitas@gmail.com +description = Python interface to Brazilian Central Bank web services +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/wilsonfreitas/python-bcb +project_urls = + Bug Tracker = https://github.com/wilsonfreitas/python-bcb/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +packages = find: +python_requires = >=3.6 diff --git a/setup.py b/setup.py deleted file mode 100644 index af2334d..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ - -import setuptools - -with open('README.md', 'r') as fh: - long_description = fh.read() - -setuptools.setup( - name='python-bcb', - version='0.1.3', - packages=setuptools.find_packages(), - author='Wilson Freitas', - author_email='wilson.freitas@gmail.com', - description='Python interface to Brazilian Central Bank web services', - url='https://github.com/wilsonfreitas/python-bcb', - keywords='brazilian central bank, finance, central bank, banking', - long_description=long_description, - long_description_content_type='text/markdown', - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Topic :: Utilities', - 'Programming Language :: Python :: 3', - 'Operating System :: OS Independent' - ], - python_requires='>=3' -)