File: setup.py

package info (click to toggle)
beanprice 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: python: 3,142; makefile: 3; sh: 2
file content (50 lines) | stat: -rwxr-xr-x 1,865 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
"""Install script for beanprice."""

__copyright__ = "Copyright (C) 2008-2020  Martin Blais"
__license__ = "GNU GPLv2"

from setuptools import setup, find_packages


setup(
    name="beanprice",
    version="2.0.0",
    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>=3.0.0",
        # 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.9",
)