Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. + src
  2.  
  3. + Indicators
  4. - Moving_averages.py
  5. - Stochastics.py
  6. + Strategies
  7. - Moving_averages_cross.py
  8. - example.py
  9.  
  10. from Indicators.Stochastics import *
  11.  
  12. from Indicators import Stochastics
  13.  
  14. some/
  15. __init__.py
  16. foofoo.py
  17. thing/
  18. __init__.py
  19. barbar.py
  20.  
  21. import some
  22.  
  23. some.dothis() # dothis is defined in 'some/__init__.py'
  24.  
  25. import some.foofoo # <- module
  26. import some.thing # <- package
  27.  
  28. .
  29. |-- bin
  30. | `-- my_program
  31. |-- docs
  32. | `-- doc.txt
  33. |-- my_program
  34. | |-- data
  35. | | `-- some_data.html
  36. | |-- __init__.py
  37. | |-- submodule
  38. | | `-- __init__.py
  39. | |-- helpers.py
  40. |-- tests
  41. | |-- __init__.py
  42. | |-- test_helpers.py
  43. |-- Makefile
  44. |-- CHANGES.txt
  45. |-- LICENSE.txt
  46. |-- README.md
  47. |-- requirements-dev.txt
  48. |-- requirements.txt
  49. `-- setup.py
  50.  
  51. PYTHON=`which python`
  52. NAME=`python setup.py --name`
  53.  
  54.  
  55. all: check test source deb
  56.  
  57. init:
  58. pip install -r requirements.txt --use-mirrors
  59.  
  60. dist: source deb
  61.  
  62. source:
  63. $(PYTHON) setup.py sdist
  64.  
  65. deb:
  66. $(PYTHON) setup.py --command-packages=stdeb.command bdist_deb
  67.  
  68. rpm:
  69. $(PYTHON) setup.py bdist_rpm --post-install=rpm/postinstall --pre-uninstall=rpm/preuninstall
  70.  
  71. test:
  72. unit2 discover -s tests -t .
  73. python -mpytest weasyprint
  74.  
  75. check:
  76. find . -name *.py | grep -v "^test_" | xargs pylint --errors-only --reports=n
  77. # pep8
  78. # pyntch
  79. # pyflakes
  80. # pychecker
  81. # pymetrics
  82.  
  83. clean:
  84. $(PYTHON) setup.py clean
  85. rm -rf build/ MANIFEST dist build my_program.egg-info deb_dist
  86. find . -name '*.pyc' -delete
  87.  
  88. botondstats/
  89. indicators/
  90. moving_averages.py
  91. stochastics.py
  92. strategies/
  93. moving_averages_cross.py
  94. example.py
  95.  
  96. from botondstats.indicators.stochastics.Stochastics
  97.  
  98. BotondStatistics/
  99. docs/
  100. botonstats/ # the above structure
  101. setup.py # Distutils/distribute configuration for packaging.
  102.  
  103. ./bin/python setup.py tests
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement