remove Git submodules; dependencies should be installed
This commit is contained in:
		
							
								
								
									
										18
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							| @@ -1,18 +0,0 @@ | ||||
| [submodule "PyCryptsy"] | ||||
| 	path = PyCryptsy | ||||
| 	url = https://github.com/salfter/PyCryptsy | ||||
| [submodule "python-bittrex"] | ||||
| 	path = python-bittrex | ||||
| 	url = https://github.com/ericsomdahl/python-bittrex | ||||
| [submodule "PyCCEX"] | ||||
| 	path = PyCCEX | ||||
| 	url = https://github.com/salfter/PyCCEX | ||||
| [submodule "PyCryptopia"] | ||||
| 	path = PyCryptopia | ||||
| 	url = https://github.com/salfter/PyCryptopia | ||||
| [submodule "poloniex"] | ||||
| 	path = poloniex | ||||
| 	url = https://github.com/salfter/poloniex | ||||
| [submodule "bleuBot"] | ||||
| 	path = bleuBot | ||||
| 	url = https://github.com/Durendal/bleuBot | ||||
|   | ||||
							
								
								
									
										10
									
								
								ProfitLib.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ProfitLib.py
									
									
									
									
									
								
							| @@ -27,17 +27,11 @@ import bitcoinrpc | ||||
| import jsonrpc | ||||
| import sys | ||||
| from decimal import * | ||||
| sys.path.insert(0, './PyCryptsy/') | ||||
| from PyCryptsy import PyCryptsy | ||||
| sys.path.insert(0, './python-bittrex/bittrex/') | ||||
| from bittrex import Bittrex | ||||
| sys.path.insert(0, './PyCCEX/') | ||||
| from bittrex import bittrex as Bittrex | ||||
| from PyCCEX import PyCCEX | ||||
| sys.path.insert(0, './PyCryptopia/') | ||||
| from PyCryptopia import PyCryptopia | ||||
| sys.path.insert(0, "./poloniex/") | ||||
| from poloniex import poloniex | ||||
| sys.path.insert(0, "./bleuBot/") | ||||
| from bleuBot import bleuBot | ||||
|  | ||||
| class ProfitLib: | ||||
| @@ -52,7 +46,7 @@ class ProfitLib: | ||||
|       if (exch=="cryptsy"): | ||||
|         self.api[exch]=PyCryptsy(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) | ||||
|       elif (exch=="bittrex"): | ||||
|         self.api[exch]=Bittrex(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) | ||||
|         self.api[exch]=Bittrex.Bittrex(str(credentials[exch]["pubkey"]), str(credentials[exch]["privkey"])) | ||||
|       elif (exch=="c-cex"): | ||||
|         self.api[exch]=PyCCEX(str(credentials[exch]["key"])) | ||||
|       elif (exch=="cryptopia"): | ||||
|   | ||||
							
								
								
									
										1
									
								
								PyCCEX
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								PyCCEX
									
									
									
									
									
								
							 Submodule PyCCEX deleted from cca2b918de
									
								
							 Submodule PyCryptopia deleted from 31c99325ee
									
								
							 Submodule PyCryptsy deleted from 384b9844dd
									
								
							| @@ -37,7 +37,6 @@ pl.GetMarketIDs() | ||||
| balances={} | ||||
| btcbal=Decimal(0) | ||||
| for i, coin in enumerate(daemons): | ||||
|   print coin | ||||
|   if (daemons[coin]["active"]==1): | ||||
|     url="http://"+daemons[coin]["username"]+":"+daemons[coin]["passwd"]+"@"+daemons[coin]["host"]+":"+str(daemons[coin]["port"]) | ||||
|     b=jsonrpc.ServiceProxy(url) | ||||
|   | ||||
							
								
								
									
										1
									
								
								bleuBot
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								bleuBot
									
									
									
									
									
								
							 Submodule bleuBot deleted from 5c1282777a
									
								
							
							
								
								
									
										1
									
								
								poloniex
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								poloniex
									
									
									
									
									
								
							 Submodule poloniex deleted from 99631825fe
									
								
							 Submodule python-bittrex deleted from b728f33ebb
									
								
							
							
								
								
									
										26
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| #!/usr/bin/env python | ||||
| from setuptools import setup, find_packages | ||||
| import os | ||||
|  | ||||
|  | ||||
| def read(fname): | ||||
|     return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||||
|  | ||||
|  | ||||
| setup( | ||||
|     name='ProfitLib', | ||||
|     version='0.1', | ||||
|     description='altcoin mining profitability calculator', | ||||
|     long_description=read('README.md'), | ||||
|     url='https://github.com/salfter/ProfitLib', | ||||
|     py_modules=['ProfitLib'], | ||||
|     zip_safe=False, | ||||
|     install_requires=["bitcoinrpc","jsonrpc","PyCryptsy","python-bittrex","PyCCEX","PyCryptopia","poloniex","bleuBot"], | ||||
|     classifiers=[ | ||||
|         'Development Status :: 2 - Pre-Alpha', | ||||
|         'Intended Audience :: Developers', | ||||
|         'Operating System :: OS Independent', | ||||
|         'Programming Language :: Python', | ||||
|         'Topic :: Software Development :: Libraries', | ||||
|     ], | ||||
| ) | ||||
		Reference in New Issue
	
	Block a user