Debian Codegraph @

setup.py

raw symbols SCIP
1 #!/usr/bin/env python3
2 """Install script for beanprice."""
3
4 __copyright__ = "Copyright (C) 2008-2020 Martin Blais"
5 __license__ = "GNU GPLv2"
6
7 from setuptools import setup, find_packages
8
9
10 setup(
11 name="beanprice",
12 version="2.0.0",
13 description="Price quotes fetcher for Beancount",
14 long_description="""
15 A script to fetch market data prices from various sources on the internet
16 and render them for plain text accounting price syntax (and Beancount).
17 """,
18 license="GNU GPLv2 only",
19 author="Martin Blais",
20 author_email="[email protected]",
21 url="http://github.com/beancount/beanprice",
22 download_url="https://github.com/beancount/beanprice",
23 packages=find_packages(),
24 install_requires=[
25 # Beancount library itself.
26 "beancount>=3.0.0",
27 # Testing support now uses the pytest module.
28 "pytest",
29 # This is required to parse dates from command-line options in a
30 # loose, accepting format. Note that we use dateutil for timezone
31 # database definitions as well, although it is inferior to pytz, but
32 # because it can use the OS timezone database in the Windows
33 # registry. See this article for context:
34 # https://www.assert.cc/2014/05/25/which-python-time-zone-library.html
35 # However, for creating offset timezones, we use the datetime.timezone
36 # helper class because it is built-in.
37 # Where this matters is for price source fetchers.
38 # (Note: If pytz supported the Windows registry timezone information,
39 # I would switch to that.)
40 "python-dateutil",
41 # This library is needed to make requests for price sources.
42 "requests",
43 ],
44 entry_points={
45 "console_scripts": [
46 "bean-price = beanprice.price:main",
47 ]
48 },
49 python_requires=">=3.9",
50 )