Merge pull request #27 from frdwrd/master

Create requirements.txt
This commit is contained in:
arcalinea 2017-09-25 12:31:59 -07:00 committed by GitHub
commit 27664e457a
5 changed files with 16 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.pyc *.pyc
xcat.egg-info/ xcat.egg-info/
.tmp/ .tmp/
venv/

View File

@ -24,11 +24,12 @@ git clone https://github.com/zcash/zbxcat.git
pip install zbxcat pip install zbxcat
``` ```
To install python-zcashlib from github: Install the dependencies. Note that this package depends on the experimental [python-zcashlib package](https://github.com/arcalinea/python-zcashlib).
``` ```
easy_install http://github.com/arcalinea/python-zcashlib/tarball/master pip install -r requirements.txt
``` ```
Run Zcash and Bitcoin daemons locally, on whichever network you want to trade on (recommended: testnet, regtest). Run Zcash and Bitcoin daemons locally, on whichever network you want to trade on (recommended: testnet, regtest).
Make sure the rpcuser and rpcpassword values are set in your zcash.conf or bitcoin.conf files. Make sure the rpcuser and rpcpassword values are set in your zcash.conf or bitcoin.conf files.

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
git+https://github.com/arcalinea/python-zcashlib.git#egg=zcash
python-bitcoinlib

View File

@ -5,15 +5,18 @@ from xcat import version
setup( setup(
name="xcat", name="xcat",
version=version, version=version,
entry_points = { entry_points={
"console_scripts": ['xcat = xcat.cli:main'] "console_scripts": ['xcat = xcat.cli:main']
}, },
description="Xcat is a package that creates cross-chain atomic transactions.", description=("Xcat is a package that "
"creates cross-chain atomic transactions."),
author="arcalinea and arielgabizon", author="arcalinea and arielgabizon",
author_email="info@z.cash", author_email="info@z.cash",
license="MIT", license="MIT",
url="http://github.com/zcash/xcat", url="http://github.com/zcash/xcat",
install_requires=['python-bitcoinlib', 'plyvel'], install_requires=['python-bitcoinlib', 'plyvel'],
dependency_links=['http://github.com/arcalinea/python-zcashlib/tarball/master'], dependency_links=[
'http://github.com/arcalinea/python-zcashlib/tarball/master'
],
packages=find_packages() packages=find_packages()
) )

View File

@ -4,6 +4,7 @@ import xcat.db as db
from xcat.tests.utils import mktrade from xcat.tests.utils import mktrade
from xcat.trades import Trade, Contract from xcat.trades import Trade, Contract
class SimpleTestCase(unittest.TestCase): class SimpleTestCase(unittest.TestCase):
def setUp(self): def setUp(self):
self.trade = mktrade() self.trade = mktrade()
@ -15,6 +16,7 @@ class SimpleTestCase(unittest.TestCase):
def test_importtrade(self): def test_importtrade(self):
trade = cli.importtrade('test', self.__class__.hexstr) trade = cli.importtrade('test', self.__class__.hexstr)
class CliTest(SimpleTestCase): class CliTest(SimpleTestCase):
def test_findtrade(self): def test_findtrade(self):
trade = cli.findtrade('test') trade = cli.findtrade('test')
@ -47,5 +49,6 @@ class CliTest(SimpleTestCase):
# status = cli.buyer_check_status(trade) # status = cli.buyer_check_status(trade)
# self.assertEqual(status, 'sellerFunded') # self.assertEqual(status, 'sellerFunded')
if __name__ == '__main__': if __name__ == '__main__':
unittest.main() unittest.main()