forked from vyperlang/vyper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
86 lines (79 loc) · 2.2 KB
/
Copy pathsetup.py
File metadata and controls
86 lines (79 loc) · 2.2 KB
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
# -*- coding: utf-8 -*-
import os
from setuptools import (
find_packages,
setup,
)
import subprocess
test_deps = [
'pytest>=3.6',
'pytest-cov==2.4.0',
'coveralls[yaml]==1.6.0',
'pytest-xdist==1.18.1',
'py-evm==0.2.0a42',
'eth-tester==0.1.0b39',
'eth-abi==2.0.0b9',
'web3==5.0.0b2',
'tox>=3.7,<4',
'hypothesis==4.11.7'
]
lint_deps = [
'flake8>=3.7,<4',
'flake8-bugbear==18.8.0',
'isort>=4.2.15,<5',
'mypy==0.701',
]
extras = {
'test': test_deps,
'lint': lint_deps,
}
hash_file_rel_path = os.path.join('vyper', 'vyper_git_version.txt')
hashfile = os.path.relpath(hash_file_rel_path)
try:
commithash = subprocess.check_output("git rev-parse HEAD".split())
commithash = commithash.decode('utf-8').strip()
with open(hashfile, 'w') as fh:
fh.write(commithash)
except subprocess.CalledProcessError:
pass
setup(
name='vyper',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
version='0.1.0-beta.12',
description='Vyper Programming Language for Ethereum',
long_description_markdown_filename='README.md',
long_description_content_type='text/markdown',
author='Vitalik Buterin',
author_email='',
url='https://github.com/ethereum/vyper',
license="MIT",
keywords='ethereum',
include_package_data=True,
packages=find_packages(exclude=('tests', 'docs')),
python_requires='>=3.6',
py_modules=['vyper'],
install_requires=[
'asttokens==1.1.13',
'pycryptodome>=3.5.1,<4',
],
setup_requires=[
'pytest-runner',
'setuptools-markdown'
],
tests_require=test_deps,
extras_require=extras,
entry_points={
'console_scripts': [
"vyper=vyper.cli.vyper_compile:_parse_cli_args",
"vyper-serve=vyper.cli.vyper_serve:_parse_cli_args",
"vyper-lll=vyper.cli.vyper_lll:_parse_cli_args",
"vyper-json=vyper.cli.vyper_json:_parse_cli_args",
]
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.6',
],
data_files=[('', [hash_file_rel_path])],
)