Skip to content

Commit

Permalink
initial commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
carlmontanari committed Sep 17, 2019
0 parents commit cc8f20b
Show file tree
Hide file tree
Showing 23 changed files with 2,474 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: setup test env
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install tox
- name: run tox
run: python -m tox --skip-missing-interpreters=true
47 changes: 47 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: re-test and publish to pypi

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v1
- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: setup test env
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install tox
- name: run tox
run: python -m tox --skip-missing-interpreters=true
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: setup publish env
run: |
python -m pip install --upgrade pip
python -m pip install setuptools
python -m pip install wheel
python -m pip install twine
- name: build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
python setup.py sdist bdist_wheel
python -m twine upload dist/*
75 changes: 75 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# 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

# 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
.hypothesis/
.pytest_cache/

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

# pycharm
.idea

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

# swap files
*.swp

# macos stuff
.DS_Store
*/.DS_Store
Loading

0 comments on commit cc8f20b

Please sign in to comment.