Skip to content

Commit c878bd9

Browse files
authored
Getting ready for release 1.5.0 (#100)
* Start to prepare release 1.5.0 * Start switch to Github actions * Nit: remove unused imports * Nit: update github action script * Nit: update github action script * Nit: update readme with link to github action
1 parent 5d69a04 commit c878bd9

8 files changed

Lines changed: 70 additions & 15 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for Python Deps
4+
- package-ecosystem: "pip"
5+
directory: "/"
6+
# Check for updates once a week
7+
schedule:
8+
interval: "weekly"
9+
# Maintain dependencies for GitHub Actions
10+
- package-ecosystem: "github-actions"
11+
directory: "/"
12+
schedule:
13+
interval: "weekly"

.github/workflows/code-quality.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Code Quality
2+
on: [pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- uses: actions/setup-python@v3
10+
with:
11+
python-version: 3.x
12+
- run: pip install --upgrade pip
13+
- run: pip install pylint
14+
- run: pylint --disable=all --enable=unused-import phe

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Unit Test
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
build:
13+
runs-on: "ubuntu-latest"
14+
strategy:
15+
matrix:
16+
python-version: ["3.8", "3.9", "3.10"]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v3
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install Dependencies
25+
shell: bash
26+
run: python -m pip install -r requirements.txt
27+
- name: Unit Test
28+
run: python setup.py test

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 1.5.0
2+
=============
3+
4+
- `mulmod` now available with gmpy2 acceleration.
5+
16
Version 1.4.1
27
=============
38

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ python-paillier |release|
22
==========================
33

44
+---------------------+
5-
| |travisM| |
5+
| |ciTest| |
66
+---------------------+
77
| |rtdM| |
88
+---------------------+
@@ -69,9 +69,9 @@ https://code.google.com/p/encrypted-bigquery-client/
6969
:target: https://pypi.python.org/pypi/phe/
7070
:alt: Latest released version on PyPi
7171

72-
.. |travisM| image:: https://travis-ci.org/data61/python-paillier.svg?branch=master
73-
:target: https://travis-ci.org/data61/python-paillier
74-
:alt: CI status of Master
72+
.. |ciTest| image:: https://github.com/data61/python-paillier/actions/workflows/test.yml/badge.svg
73+
:target: https://github.com/data61/python-paillier/actions/workflows/test.yml
74+
:alt: CI Status
7575

7676
.. |reqM| image:: https://requires.io/github/data61/python-paillier/requirements.svg?branch=master
7777
:target: https://requires.io/github/data61/python-paillier/requirements/?branch=master

phe/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__uri__ = "https://github.com/data61/python-paillier"
1111

1212
# We use semantic versioning - semver.org
13-
__version__ = "1.4.1-dev0"
13+
__version__ = "1.5.0"
1414

1515
__author__ = "CSIRO's Data61"
1616
__email__ = "confidential-computing@data61.csiro.au"

phe/tests/cli_test.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import json
22
import random
3-
import unittest
43
from unittest import TestCase
54
import tempfile
65

7-
import io
8-
9-
import sys
10-
import click
116
from click.testing import CliRunner
127

13-
import phe.command_line
148
from phe.command_line import cli
159

1610

setup.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@
4242
'Topic :: Security :: Cryptography',
4343
'Intended Audience :: Science/Research',
4444
'Programming Language :: Python :: 3',
45-
'Programming Language :: Python :: 3.4',
46-
'Programming Language :: Python :: 3.5',
47-
'Programming Language :: Python :: 3.6',
48-
'Programming Language :: Python :: 3.7'
45+
'Programming Language :: Python :: 3.7',
46+
'Programming Language :: Python :: 3.8',
47+
'Programming Language :: Python :: 3.9',
48+
'Programming Language :: Python :: 3.10',
49+
'Programming Language :: Python :: 3.11',
4950
],
5051
keywords="cryptography encryption homomorphic",
5152
packages=find_packages(exclude=['tests*']),

0 commit comments

Comments
 (0)