Skip to content

Commit

Permalink
Merge pull request #14 from ilex/release/0.2.2
Browse files Browse the repository at this point in the history
Release/0.2.2
  • Loading branch information
ilex authored Mar 25, 2023
2 parents b1701a2 + 010f5a1 commit 3e91865
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 6 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on:
pull_request:
branches:
- master
- develop

jobs:
tests:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: supercharge/[email protected]
with:
mongodb-replica-set: test-rs
mongodb-port: 27017
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- run: pip install -r requirements-dev.txt
- run: pytest -v -x tests
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Changelog
=========

0.2.2 (2020-12-14)
------------------

Bump version of motor for python 3.11 compatibility.

Add tests workflow for GitHub Actions CI.

0.2.1 (2020-12-14)
------------------

Expand Down
2 changes: 1 addition & 1 deletion aiomongodel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from aiomongodel.fields import *
from aiomongodel.errors import *

__version__ = '0.2.1'
__version__ = '0.2.2'
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
motor>=2.0,<3.0
motor>=2.0,<4.0
pytest
pytest-cov
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
motor>=2.0,<3.0
motor>=2.0,<4.0
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from setuptools import setup, find_packages


install_requires = ['motor>=2.0,<3.0']
install_requires = ['motor>=2.0,<4.0']


tests_require = ['pytest']
Expand Down Expand Up @@ -48,6 +48,10 @@ def version():
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py35,py36,py37
envlist = py{35,36,37,38,39,310,311}
skip_missing_interpreters = True
[testenv]
deps=
Expand Down

0 comments on commit 3e91865

Please sign in to comment.