Skip to content

Commit

Permalink
cherry-pick-v08: refactor: Add shortcuts for enums (#250)
Browse files Browse the repository at this point in the history
* cherry-pick: refactor: Add shortcuts for enums

* cherry-pick: chore: Add branch V0.8 to trigger workflows

* cherry-pick: chore: update packages

+semver: patch
  • Loading branch information
LeeDongGeon1996 authored Aug 15, 2022
1 parent b706d00 commit edcaf4f
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 108 deletions.
61 changes: 2 additions & 59 deletions .github/build.main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

trigger:
- main
- V0.8

pr:
- main
- V0.8

jobs:
- job: Build
Expand All @@ -21,36 +23,6 @@ jobs:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(PythonVersion)"

- task: DownloadPipelineArtifact@2
displayName: "Fetch DLL"
inputs:
source: specific
project: 5123ca47-74f2-4d67-a5d4-c4d90b8d670a
pipeline: 21
runVersion: latestFromBranch
runBranch: refs/heads/main
tags: released
artifact: packages
patterns: "*.nupkg"

- task: ExtractFiles@1
displayName: "Extract DLL from NuGet"
inputs:
archiveFilePatterns: "$(Pipeline.Workspace)/*.nupkg"
destinationFolder: "$(Build.SourcesDirectory)/unpacked"
cleanDestinationFolder: true
overwriteExistingFiles: true

- task: CopyFiles@2
displayName: "Replace DLL"
inputs:
SourceFolder: "$(Build.SourcesDirectory)/unpacked/lib/$(DotNetVersion)"
Contents: "*.dll"
TargetFolder: "$(Build.SourcesDirectory)/stock_indicators/_cslib/lib"
CleanTargetFolder: true
OverWrite: true
flattenFolders: true

- task: gitversion/setup@0
displayName: Use GitVersion
Expand Down Expand Up @@ -129,35 +101,6 @@ jobs:
inputs:
versionSpec: "$(python.version)"

- task: DownloadPipelineArtifact@2
displayName: "Fetch NuGet DLL"
inputs:
source: specific
project: 5123ca47-74f2-4d67-a5d4-c4d90b8d670a
pipeline: 21
runVersion: latestFromBranch
runBranch: refs/heads/main
artifact: packages
patterns: "*.nupkg"

- task: ExtractFiles@1
displayName: "Extract Nuget DLL"
inputs:
archiveFilePatterns: "$(Pipeline.Workspace)/*.nupkg"
destinationFolder: "$(Build.SourcesDirectory)/unpacked"
cleanDestinationFolder: true
overwriteExistingFiles: true

- task: CopyFiles@2
displayName: "Replace DLL"
inputs:
SourceFolder: "$(Build.SourcesDirectory)/unpacked/lib/$(DotNetVersion)"
Contents: "*.dll"
TargetFolder: "$(Build.SourcesDirectory)/stock_indicators/_cslib/lib"
CleanTargetFolder: true
OverWrite: true
flattenFolders: true

- bash: |
# echo $(Agent.OS)
# if [ '$(Agent.OS)' = 'Darwin' ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
BUNDLE_GEMFILE="${{github.workspace}}/docs/GemFile" bundle exec htmlproofer \
--assume-extension \
--http-status-ignore "403,429,999" \
--http-status-ignore "403,429,503,999" \
--url-swap "https\://daveskender.github.io/Stock.Indicators.Python:http\://127.0.0.1:4000" \
_site
Expand Down
76 changes: 29 additions & 47 deletions docs/GemFile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.4.7)
activesupport (6.0.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
Expand All @@ -14,7 +14,7 @@ GEM
execjs
coffee-script-source (1.11.1)
colorator (1.1.0)
commonmarker (0.23.4)
commonmarker (0.23.5)
concurrent-ruby (1.1.10)
dnsruby (1.61.9)
simpleidn (~> 0.1)
Expand All @@ -26,36 +26,17 @@ GEM
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
execjs (2.8.1)
faraday (1.10.0)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0)
faraday-multipart (~> 1.0)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.0)
faraday-patron (~> 1.0)
faraday-rack (~> 1.0)
faraday-retry (~> 1.0)
faraday (2.3.0)
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday-net_http (2.0.3)
ffi (1.15.5)
ffi (1.15.5-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (225)
github-pages (226)
github-pages-health-check (= 1.17.9)
jekyll (= 3.9.0)
jekyll (= 3.9.2)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.2.0)
Expand Down Expand Up @@ -90,12 +71,12 @@ GEM
jekyll-theme-time-machine (= 0.2.0)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.12.0)
kramdown (= 2.3.1)
kramdown (= 2.3.2)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.3)
mercenary (~> 0.3)
minima (= 2.5.1)
nokogiri (>= 1.12.5, < 2.0)
nokogiri (>= 1.13.4, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.17.9)
Expand All @@ -104,21 +85,21 @@ GEM
octokit (~> 4.0)
public_suffix (>= 3.0, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.1)
html-pipeline (2.14.2)
activesupport (>= 2)
nokogiri (>= 1.4)
html-proofer (3.19.3)
html-proofer (3.19.4)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogiri (~> 1.12)
parallel (~> 1.3)
nokogiri (~> 1.13)
parallel (~> 1.10)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.8.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.9.0)
jekyll (3.9.2)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand Down Expand Up @@ -229,7 +210,7 @@ GEM
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.1)
kramdown (2.3.2)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
Expand All @@ -242,17 +223,16 @@ GEM
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.15.0)
multipart-post (2.1.1)
nokogiri (1.13.4-arm64-darwin)
minitest (5.16.2)
nokogiri (1.13.6-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.4-x64-mingw32)
nokogiri (1.13.6-x64-mingw32)
racc (~> 1.4)
nokogiri (1.13.4-x86_64-darwin)
nokogiri (1.13.6-x86_64-darwin)
racc (~> 1.4)
octokit (4.22.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
parallel (1.22.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
Expand All @@ -273,9 +253,9 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.2)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (> 0.8, < 2.0)
faraday (>= 0.17.3, < 3)
simpleidn (0.2.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
Expand All @@ -287,11 +267,12 @@ GEM
thread_safe (~> 0.1)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.1)
unf_ext (0.0.8.1-x64-mingw32)
unf_ext (0.0.8.2)
unf_ext (0.0.8.2-x64-mingw32)
unicode-display_width (1.8.0)
wdm (0.1.1)
yell (2.2.2)
zeitwerk (2.5.4)
zeitwerk (2.6.0)

PLATFORMS
universal-darwin-21
Expand All @@ -305,6 +286,7 @@ DEPENDENCIES
jekyll-remote-theme
jekyll-sitemap
jemoji
wdm (>= 0.1.1)

BUNDLED WITH
2.2.31
2 changes: 1 addition & 1 deletion stock_indicators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"""

from stock_indicators import indicators
from stock_indicators.indicators.common.quote import Quote
from stock_indicators.indicators.common import *
11 changes: 11 additions & 0 deletions stock_indicators/indicators/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@
ResultBase,
IndicatorResults
)
from .enums import (
BetaType,
ChandelierType,
CandlePart,
EndType,
MAType,
PeriodSize,
PivotPointType,
PivotTrend,
Match
)

0 comments on commit edcaf4f

Please sign in to comment.