Anaconda workflow (#148)

* fix : anaconda workflow added #137

* fix : version_check script updated #137

* fix : publish.yaml renamed to publish_pypi.yaml #137

* doc : anaconda badge added to README.md #137

* doc : CHANGELOG updated

* fix : meta.yaml version fixed

* fix : autopep8

* fix : autopep8 E721 ignored
pull/149/head
Sepand Haghighi 2022-09-09 22:04:56 +04:30 zatwierdzone przez GitHub
rodzic 750d126bd6
commit d9224cd6fc
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
8 zmienionych plików z 69 dodań i 6 usunięć

Wyświetl plik

@ -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: 'otherfiles'
AnacondaToken: ${{ secrets.ANACONDA_TOKEN }}

Wyświetl plik

@ -5,9 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Addded
- `Point Color` section to `demo.ipynb`
- `Point Color` section to `README.md`
### Added
- Anaconda workflow
### Changed
- `README.md` updated
- `demo.ipynb` updated

Wyświetl plik

@ -8,6 +8,7 @@
<img src="https://codecov.io/gh/sepandhaghighi/samila/branch/master/graph/badge.svg" />
</a>
<a href="https://badge.fury.io/py/samila"><img src="https://badge.fury.io/py/samila.svg" alt="PyPI version" height="18"></a>
<a href="https://anaconda.org/sepandhaghighi/samila"><img src="https://anaconda.org/sepandhaghighi/samila/badges/version.svg"></a>
<a href="https://colab.research.google.com/github/sepandhaghighi/samila/blob/master">
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Samila-Colab"/>
</a>
@ -102,6 +103,11 @@ Samila is a generative art generator written in Python, Samila let's you create
- Run `easy_install --upgrade samila` (Need root access)
### Conda
- Check [Conda Managing Package](https://conda.io)
- `conda install -c sepandhaghighi samila` (Need root access)
## Usage

Wyświetl plik

@ -1,2 +1,2 @@
python -m autopep8 samila --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose
python -m autopep8 samila --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose --ignore=E721
python -m autopep8 setup.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose

Wyświetl plik

@ -1,3 +1,3 @@
#!/bin/sh
python -m autopep8 samila --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose
python -m autopep8 samila --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose --ignore=E721
python -m autopep8 setup.py --recursive --aggressive --aggressive --in-place --pep8-passes 2000 --verbose

Wyświetl plik

@ -0,0 +1,37 @@
{% set name = "samila" %}
{% set version = "0.8" %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
git_url: https://github.com/sepandhaghighi/samila
git_rev: v{{ version }}
build:
noarch: python
number: 0
script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- pip
- setuptools
- python >=3.5
run:
- art >=1.8
- matplotlib >=3.0.0
- requests >=2.20.0
- python >=3.5
about:
home: https://github.com/sepandhaghighi/samila
license: MIT
license_family: MIT
summary: Generative Art Generator
description: |
Samila is a generative art generator written in Python, Samila let's you create arts based on many thousand points. The position of every single point is calculated by a formula, which has random parameters. Because of the random numbers, every image looks different.
Website: https://www.samila.site
Repo: https://github.com/sepandhaghighi/samila
extra:
recipe-maintainers:
- sepandhaghighi

Wyświetl plik

@ -19,9 +19,12 @@ CHANGELOG_ITEMS = [
"https://github.com/sepandhaghighi/samila/compare/v{0}...dev",
"[{0}]:"]
PARAMS_ITEMS = ['SAMILA_VERSION = "{0}"']
META_ITEMS = ['% set version = "{0}" %']
FILES = {
"setup.py": SETUP_ITEMS, "README.md": README_ITEMS, "CHANGELOG.md": CHANGELOG_ITEMS, os.path.join(
"samila", "params.py"): PARAMS_ITEMS}
"samila", "params.py"): PARAMS_ITEMS, os.path.join("otherfiles", "meta.yaml"): META_ITEMS}
TEST_NUMBER = len(FILES.keys())