Skip to content

Commit

Permalink
Merge branch 'release/0.2.0' into develop
Browse files Browse the repository at this point in the history
* release/0.2.0:
  Bump version: 0.1.2 → 0.2.0
  preparing release 0.2.0
  • Loading branch information
javipalanca committed Sep 16, 2024
2 parents 9c83a0f + c091ed7 commit 7dea7c7
Show file tree
Hide file tree
Showing 7 changed files with 192 additions and 10 deletions.
146 changes: 146 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package

on:
push:
branches: [ master, develop ]
tags:
- "*"
pull_request:
branches:
- "*"

jobs:

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox virtualenv flake8
- name: Lint
run: "tox -e flake8"

test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name:
- "ubuntu-py38"
- "ubuntu-py39"
- "ubuntu-py310"

- "macos-py38"
- "macos-py39"
- "macos-py310"

- "windows-py38"
- "windows-py39"
- "windows-py310"

include:
- name: "ubuntu-py38"
python: "3.8"
os: ubuntu-latest
tox_env: "py38"
- name: "ubuntu-py39"
python: "3.9"
os: ubuntu-latest
tox_env: "py39"
- name: "ubuntu-py310"
python: "3.10"
os: ubuntu-latest
tox_env: "py310"

- name: "macos-py38"
python: "3.8"
os: macos-latest
tox_env: "py38"
- name: "macos-py39"
python: "3.9"
os: macos-latest
tox_env: "py39"
- name: "macos-py310"
python: "3.10"
os: macos-latest
tox_env: "py310"

- name: "windows-py38"
python: "3.8"
os: windows-latest
tox_env: "py38"
- name: "windows-py39"
python: "3.9"
os: windows-latest
tox_env: "py39"
- name: "windows-py310"
python: "3.10"
os: windows-latest
tox_env: "py310"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_dev.txt
python -m pip install -r requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 spade --count --ignore=E501 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 spade --count --exit-zero --max-complexity=10 --ignore=E501 --statistics
- name: Test with pytest
run: |
pytest
coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements_dev.txt
python -m pip install -r requirements.txt
- name: Run coverage
run: |
coverage erase
coverage run --source=spade -m py.test
- name: Coveralls
uses: javipalanca/coveralls-python-action@develop
with:
parallel: true
flag-name: Unit Test
- name: Send coverage report to codecov
uses: codecov/codecov-action@v1

coveralls_finish:
needs: coverage
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
History
=======

0.2.0 (2024-09-16)
------------------

* Added reader for CSV.
* Added reader for SQL.
* Added reader for MongoDB.
* Added reader for API.

0.1.2 (2023-04-12)
------------------

Expand Down
40 changes: 34 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,41 @@ spade-artifact


.. image:: https://img.shields.io/pypi/v/spade_artifact.svg
:target: https://pypi.python.org/pypi/spade_artifact
:target: https://pypi.python.org/pypi/spade_artifact

.. image:: https://img.shields.io/travis/javipalanca/spade_artifact.svg
:target: https://travis-ci.org/javipalanca/spade_artifact
.. image:: https://img.shields.io/pypi/pyversions/spade_artifact.svg
:target: https://pypi.python.org/pypi/spade_artifact

.. image:: https://readthedocs.org/projects/spade-artifact/badge/?version=latest
:target: https://spade-artifact.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://img.shields.io/github/languages/count/javipalanca/spade_artifact?label=languages
:alt: Languages
:target: https://pepy.tech/project/spade_artifact

.. image:: https://img.shields.io/github/languages/code-size/javipalanca/spade_artifact
:alt: Code Size
:target: https://pepy.tech/project/spade_artifact

.. image:: https://img.shields.io/pypi/l/spade_artifact
:target: https://opensource.org/licenses/MIT
:alt: MIT License

.. image:: https://pepy.tech/badge/spade_artifact
:target: https://pepy.tech/project/spade_artifact
:alt: Downloads

.. image:: https://github.com/javipalanca/spade_artifact/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/javipalanca/spade_artifact/actions/workflows/python-package.yml
:alt: Continuous Integration Status

.. image:: https://coveralls.io/repos/github/javipalanca/spade_artifact/badge.svg?branch=master
:target: https://coveralls.io/github/javipalanca/spade_artifact?branch=master
:alt: Code Coverage Status

.. image:: https://readthedocs.org/projects/spade_artifact/badge/?version=latest
:target: https://spade-artifact.readthedocs.io?badge=latest
:alt: Documentation Status

.. image:: https://img.shields.io/pypi/format/spade_artifact.svg
:target: https://pypi.python.org/pypi/spade_artifact

Plugin for SPADE 3 to develop artifacts.

Expand All @@ -30,6 +54,10 @@ Features
* Presence notifiaction support.
* Artifact class.
* ArtifactMixin for SPADE agents.
* CSVReader for artifacts.
* SQLReader for artifacts.
* APIReader for artifacts.
* MongoDBReader for artifacts.

Credits
-------
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ spade>=3.1.7
spade_pubsub>=0.1.3
loguru==0.5.3
pandas~=2.0.3
aiohttp~=3.8.4
aiohttp~=3.10.5
pymysql==1.1.0
psycopg2-binary~=2.9.9
pymongo~=4.6.3
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.2
current_version = 0.2.0
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ def parse_requirements(filename):
test_suite="tests",
tests_require=test_requirements,
url="https://github.com/javipalanca/spade_artifact",
version="0.1.2",
version="0.2.0",
zip_safe=False,
)
2 changes: 1 addition & 1 deletion spade_artifact/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

__author__ = """Javi Palanca"""
__email__ = "jpalanca@gmail.com"
__version__ = "0.1.2"
__version__ = "0.2.0"


from .artifact import Artifact
Expand Down

0 comments on commit 7dea7c7

Please sign in to comment.