Skip to content

Commit

Permalink
Tox tests passing for python2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardoduarte committed May 20, 2021
1 parent bc6ed04 commit b8f957d
Show file tree
Hide file tree
Showing 11 changed files with 825 additions and 124 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# 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 ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 2.7
uses: actions/setup-python@v2
with:
python-version: 2.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install
- name: Test with tox
run: |
poetry run tox
138 changes: 129 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,132 @@
# Compiled python modules.
*.pyc
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Setuptools distribution folder.
/dist/
# C extensions
*.so

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
/*.egg
/*.eggs
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

/build/
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# PyCharm
.idea/
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Bernardo da Eira Duarte.
Copyright (c) 2020 Emailable. https://emailable.com

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Emailable Python Library
# Emailable Python Library Backport

[![Version](https://img.shields.io/pypi/v/emailable.svg)](https://pypi.org/project/emailable/)
[![Build Status](https://travis-ci.com/emailable/emailable-python.svg)](https://travis-ci.com/emailable/emailable-python)
[![Maintainability](https://api.codeclimate.com/v1/badges/dcb962c96795974051fc/maintainability)](https://codeclimate.com/github/emailable/emailable-python/maintainability)
![License](https://img.shields.io/pypi/l/emailable-backport)
![Python versions](https://img.shields.io/pypi/pyversions/emailable-backport)
![Version](https://img.shields.io/pypi/v/emailable-backport)

This is the official python wrapper for the Emailable API.
This is the backport to Python 2.7 of the [Emailable's](https://github.com/emailable) official [python wrapper](https://github.com/emailable/emailable-python) for the Emailable API.

## Documentation

Expand All @@ -13,7 +13,7 @@ See the [Python API docs](https://emailable.com/docs/api/?python).
## Installation

```shell
pip install emailable
pip install emailable-backport
```

## Usage
Expand Down Expand Up @@ -105,9 +105,9 @@ response.reason_counts
Tests can be run with the following command:

```shell
python setup.py test
poetry run tox
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/emailable/emailable-python.
Bug reports and pull requests are welcome on GitHub at https://github.com/bernardoduarte/emailable-python-backport.
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Loading

0 comments on commit b8f957d

Please sign in to comment.