forked from BittyTax/BittyTax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (84 loc) · 3.14 KB
/
setup.py
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import os
import re
import io
from setuptools import setup
BITTYTAX_PATH = os.path.expanduser('~/.bittytax')
VERSION_FILE = 'bittytax/version.py'
GITHUB_REPO = 'https://github.com/BittyTax/BittyTax'
def get_version():
line = open(VERSION_FILE, 'rt').read()
version = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', line, re.MULTILINE)
if version:
return version.group(1)
raise RuntimeError('Unable to find version string in ' + VERSION_FILE)
def get_long_description():
with io.open('README.md', encoding='utf8') as ld:
return ld.read()
setup(
name='BittyTax',
version=get_version(),
description='Crypto-currency tax calculator for UK tax rules. '
'Produces a PDF report of your capital gains and income. '
'Import your data from popular wallets and exchanges '
'(i.e. Coinbase, Binance, etc).',
long_description=get_long_description(),
long_description_content_type='text/markdown',
url=GITHUB_REPO,
download_url=GITHUB_REPO + '/archive/v{}.zip'.format(get_version()),
author='Scott Green/Nano Nano Ltd',
author_email='[email protected]',
license='AGPLv3',
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Topic :: Office/Business :: Financial :: Accounting',
'License :: OSI Approved :: GNU Affero General Public License v3',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
],
keywords='bittytax cryptoasset cryptocurrency crypto tax',
packages=['bittytax',
'bittytax.conv',
'bittytax.conv.parsers',
'bittytax.conv.mergers',
'bittytax.price'],
package_data={'bittytax': ['templates/*.html']},
install_requires=[
'python-dateutil>=2.7.0',
'requests',
'pyyaml',
'xlrd<=1.2.0',
'xlsxwriter',
'jinja2',
'xhtml2pdf',
'reportlab<=3.6.6',
'colorama',
'tqdm',
],
entry_points={
'console_scripts': [
'bittytax = bittytax.bittytax:main',
'bittytax_conv = bittytax.conv.bittytax_conv:main',
'bittytax_price = bittytax.price.bittytax_price:main',
],
},
project_urls={
'Donate': 'https://www.paypal.com/donate?hosted_button_id=HVBQW8TBEHXLC',
'Twitter': 'https://twitter.com/bitty_tax',
'Discord': 'https://discord.com/invite/NHE3QFt',
'Changes': 'https://github.com/BittyTax/BittyTax/blob/master/CHANGELOG.md',
'Source': 'https://github.com/BittyTax/BittyTax',
'Tracker': 'https://github.com/BittyTax/BittyTax/issues',
},
include_package_data=True,
zip_safe=False,
)