From 4d7a9ba6ffeaa563ff7bec1308da83f500c1e59e Mon Sep 17 00:00:00 2001 From: Sepand Haghighi Date: Sat, 26 Feb 2022 21:11:04 +0330 Subject: [PATCH] Anaconda workflow (#195) * fix : anaconda workflow added * doc : CHANGELOG updated * fix : minor edit in publish_conda.yaml * fix : version_check.py updated * fix : meta.yaml trailing spaces bug fixed * fix : publish_conda.yaml new line bug fixed * fix : publish_conda.yaml new line bug fixed --- .github/workflows/publish_conda.yaml | 18 +++++++++ .../{publish.yml => publish_pypi.yml} | 0 CHANGELOG.md | 1 + otherfile/meta.yaml | 37 +++++++++++++++++++ otherfile/version_check.py | 5 ++- 5 files changed, 60 insertions(+), 1 deletion(-) 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..2d2b5364 --- /dev/null +++ b/.github/workflows/publish_conda.yaml @@ -0,0 +1,18 @@ +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 }} 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/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 diff --git a/otherfile/meta.yaml b/otherfile/meta.yaml new file mode 100644 index 00000000..bc88f523 --- /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 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