From 15875ef0d160a726a41ee38f551e9551bf0a5d66 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 15:03:47 +0330 Subject: [PATCH 1/7] fix : anaconda workflow added --- .github/workflows/publish_conda.yaml | 19 ++++++++++ .../{publish.yml => publish_pypi.yml} | 0 otherfile/meta.yaml | 37 +++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .github/workflows/publish_conda.yaml rename .github/workflows/{publish.yml => publish_pypi.yml} (100%) create mode 100644 otherfile/meta.yaml diff --git a/.github/workflows/publish_conda.yaml b/.github/workflows/publish_conda.yaml new file mode 100644 index 00000000..cc7d11bd --- /dev/null +++ b/.github/workflows/publish_conda.yaml @@ -0,0 +1,19 @@ +name: publish_conda + +on: + push: + # Sequence of patterns matched against refs/tags + tags: + - '*' # Push events to matching v*, i.e. v1.0, v20.15.10 + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: publish-to-conda + uses: sepandhaghighi/conda-package-publish-action@v1.2 + with: + subDir: 'otherfile' + AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} + platforms: 'noarch' \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish_pypi.yml similarity index 100% rename from .github/workflows/publish.yml rename to .github/workflows/publish_pypi.yml diff --git a/otherfile/meta.yaml b/otherfile/meta.yaml new file mode 100644 index 00000000..8a84bec0 --- /dev/null +++ b/otherfile/meta.yaml @@ -0,0 +1,37 @@ +{% set name = "art" %} +{% set version = "5.4" %} + +package: + name: {{ name|lower }} + version: {{ version }} +source: + git_url: https://github.com/sepandhaghighi/art + git_rev: v{{ version }} +build: + noarch: python + number: 0 + script: {{ PYTHON }} -m pip install . -vv +requirements: + host: + - pip + - setuptools + - python >=3.5 + run: + - python >=3.5 +about: + home: https://github.com/sepandhaghighi/art + license: MIT + license_family: MIT + summary: ASCII art library for Python + description: | + ASCII art is also known as "computer text art". + It involves the smart placement of typed special characters or + letters to make a visual shape that is spread over multiple lines of text. + ART is a Python lib for text converting to ASCII art fancy. + + Website: https://www.4r7.ir + + Repo: https://github.com/sepandhaghighi/art +extra: + recipe-maintainers: + - sepandhaghighi From 7c17bff75dd4fa201e46f4ee01d0755e466c656c Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 15:05:22 +0330 Subject: [PATCH 2/7] doc : CHANGELOG updated --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d14a143..53631905 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. 3. fancy138 4. fancy139 5. fancy140 +- Anaconda workflow ### Changed - `__word2art` function modified - `font_wizard.py` modified From 083bde8aeb4679f50019341e8b3dc709d8d5e7d6 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 15:22:33 +0330 Subject: [PATCH 3/7] fix : minor edit in publish_conda.yaml --- .github/workflows/publish_conda.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/publish_conda.yaml b/.github/workflows/publish_conda.yaml index cc7d11bd..f5735a74 100644 --- a/.github/workflows/publish_conda.yaml +++ b/.github/workflows/publish_conda.yaml @@ -15,5 +15,4 @@ jobs: uses: sepandhaghighi/conda-package-publish-action@v1.2 with: subDir: 'otherfile' - AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} - platforms: 'noarch' \ No newline at end of file + AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} \ No newline at end of file From 968b8ed8c305984be7d6c990474256c144291121 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 15:37:44 +0330 Subject: [PATCH 4/7] fix : version_check.py updated --- otherfile/version_check.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/otherfile/version_check.py b/otherfile/version_check.py index 4b8af4c9..53a16efb 100644 --- a/otherfile/version_check.py +++ b/otherfile/version_check.py @@ -29,6 +29,8 @@ ART_LIST_ITEMS = ["### Version : {0}"] FONT_LIST_ITEMS = ["### Version : {0}"] PARAMS_ITEMS = ['ART_VERSION = "{0}"'] +META_ITEMS = ['% set version = "{0}" %'] + FILES = { "setup.py": SETUP_ITEMS, "INSTALL.md": INSTALL_ITEMS, @@ -37,7 +39,8 @@ "ArtList.ipynb": ART_LIST_ITEMS, os.path.join( "art", - "art_param.py"): PARAMS_ITEMS} + "art_param.py"): PARAMS_ITEMS, + os.path.join("otherfile", "meta.yaml"): META_ITEMS} TEST_NUMBER = len(FILES.keys()) + 1 From 577489cb63261376bb13047de052ebcbd579d4bf Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 15:47:43 +0330 Subject: [PATCH 5/7] fix : meta.yaml trailing spaces bug fixed --- otherfile/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otherfile/meta.yaml b/otherfile/meta.yaml index 8a84bec0..bc88f523 100644 --- a/otherfile/meta.yaml +++ b/otherfile/meta.yaml @@ -28,9 +28,9 @@ about: It involves the smart placement of typed special characters or letters to make a visual shape that is spread over multiple lines of text. ART is a Python lib for text converting to ASCII art fancy. - + Website: https://www.4r7.ir - + Repo: https://github.com/sepandhaghighi/art extra: recipe-maintainers: From ddf4ca13981ff27acbab03f34430124621508d04 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 16:03:54 +0330 Subject: [PATCH 6/7] fix : publish_conda.yaml new line bug fixed --- .github/workflows/publish_conda.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_conda.yaml b/.github/workflows/publish_conda.yaml index f5735a74..b3b45718 100644 --- a/.github/workflows/publish_conda.yaml +++ b/.github/workflows/publish_conda.yaml @@ -15,4 +15,5 @@ jobs: uses: sepandhaghighi/conda-package-publish-action@v1.2 with: subDir: 'otherfile' - AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} \ No newline at end of file + AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} + \ No newline at end of file From d9e3d9c72967f9015d96d932732fa24b15da6e96 Mon Sep 17 00:00:00 2001 From: sepandhaghighi Date: Sat, 26 Feb 2022 16:04:47 +0330 Subject: [PATCH 7/7] fix : publish_conda.yaml new line bug fixed --- .github/workflows/publish_conda.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish_conda.yaml b/.github/workflows/publish_conda.yaml index b3b45718..2d2b5364 100644 --- a/.github/workflows/publish_conda.yaml +++ b/.github/workflows/publish_conda.yaml @@ -16,4 +16,3 @@ jobs: with: subDir: 'otherfile' AnacondaToken: ${{ secrets.ANACONDA_TOKEN }} - \ No newline at end of file