From 462805eb2136e68b67d53a1beda9594254225822 Mon Sep 17 00:00:00 2001 From: blais Date: Sun, 16 Jun 2024 16:11:41 -0400 Subject: [PATCH] Release 1.2.1 to fix invalid script name. --- pyproject.toml | 4 +-- setup.py | 84 +++++++++++++++++++++++--------------------------- 2 files changed, 41 insertions(+), 47 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 881543c..9f411db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = 'setuptools.build_meta' [project] name = 'beanprice' -version = '1.2.0' +version = '1.2.1' description = 'Price quotes fetcher for Beancount' license = { file = 'COPYING' } readme = 'README.md' @@ -37,7 +37,7 @@ dependencies = [ ] [project.scripts] -bean-query = 'beanprice.price:main' +bean-price = 'beanprice.price:main' [project.urls] homepage = 'https://github.com/beancount/beanprice' diff --git a/setup.py b/setup.py index 5940e49..b118680 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -""" Install script for beanprice. """ +"""Install script for beanprice.""" __copyright__ = "Copyright (C) 2008-2020 Martin Blais" __license__ = "GNU GPLv2" @@ -7,50 +7,44 @@ from setuptools import setup, find_packages -setup(name="beanprice", - version='1.2.0', - description="Price quotes fetcher for Beancount", - long_description= - """ +setup( + name="beanprice", + version="1.2.1", + description="Price quotes fetcher for Beancount", + long_description=""" A script to fetch market data prices from various sources on the internet and render them for plain text accounting price syntax (and Beancount). """, - - license="GNU GPLv2 only", - author="Martin Blais", - author_email="blais@furius.ca", - url="http://github.com/beancount/beanprice", - download_url="https://github.com/beancount/beanprice", - packages=find_packages(), - - install_requires=[ - # Beancount library itself. - 'beancount>=2.3.4', - - # Testing support now uses the pytest module. - 'pytest', - - # This is required to parse dates from command-line options in a - # loose, accepting format. Note that we use dateutil for timezone - # database definitions as well, although it is inferior to pytz, but - # because it can use the OS timezone database in the Windows - # registry. See this article for context: - # https://www.assert.cc/2014/05/25/which-python-time-zone-library.html - # However, for creating offset timezones, we use the datetime.timezone - # helper class because it is built-in. - # Where this matters is for price source fetchers. - # (Note: If pytz supported the Windows registry timezone information, - # I would switch to that.) - 'python-dateutil', - - # This library is needed to make requests for price sources. - 'requests', - ], - - entry_points={ - 'console_scripts': [ - 'bean-price = beanprice.price:main', - ] - }, - - python_requires='>=3.5') + license="GNU GPLv2 only", + author="Martin Blais", + author_email="blais@furius.ca", + url="http://github.com/beancount/beanprice", + download_url="https://github.com/beancount/beanprice", + packages=find_packages(), + install_requires=[ + # Beancount library itself. + "beancount>=2.3.4", + # Testing support now uses the pytest module. + "pytest", + # This is required to parse dates from command-line options in a + # loose, accepting format. Note that we use dateutil for timezone + # database definitions as well, although it is inferior to pytz, but + # because it can use the OS timezone database in the Windows + # registry. See this article for context: + # https://www.assert.cc/2014/05/25/which-python-time-zone-library.html + # However, for creating offset timezones, we use the datetime.timezone + # helper class because it is built-in. + # Where this matters is for price source fetchers. + # (Note: If pytz supported the Windows registry timezone information, + # I would switch to that.) + "python-dateutil", + # This library is needed to make requests for price sources. + "requests", + ], + entry_points={ + "console_scripts": [ + "bean-price = beanprice.price:main", + ] + }, + python_requires=">=3.5", +)