Skip to content

Commit

Permalink
Anaconda workflow (#195)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sepandhaghighi committed Feb 26, 2022
1 parent 1c6095b commit 4d7a9ba
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .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 }}
File renamed without changes.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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
Expand Down
37 changes: 37 additions & 0 deletions 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
5 changes: 4 additions & 1 deletion otherfile/version_check.py
Expand Up @@ -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,
Expand All @@ -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

Expand Down

0 comments on commit 4d7a9ba

Please sign in to comment.