Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
version: 2

jobs:
test:
docker:
- image: themattrix/tox

steps:
- run:
name: Install Git
command: apt-get update; apt-get install -y git ssh

- checkout

- run:
name: Run tox
command: tox

publish:
docker:
- image: circleci/python:3.6

steps:
- checkout

- restore_cache:
key: v1-dependency-cache-{{ checksum "setup.py" }}-{{ checksum "requirements.txt" }}

- run:
name: Install requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt

- save_cache:
key: v1-dependency-cache-{{ checksum "setup.py" }}-{{ checksum "requirements.txt" }}
paths:
- "venv"

- run:
name: Verify git tag vs. version
command: |
python3 -m venv venv
. venv/bin/activate
python setup.py verify

- run:
name: Init .pypirc
command: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = $PYPI_USERNAME" >> ~/.pypirc
echo -e "password = $PYPI_PASSWORD" >> ~/.pypirc

- run:
name: Create packages
command: |
python setup.py sdist
python setup.py bdist_wheel

- run:
name: Upload to pypi
command: |
. venv/bin/activate
twine upload dist/*


workflows:
version: 2

cli_cd:
jobs:
- test:
filters: # required since `publish` has tag filters AND requires `test`
tags:
only: /.*/
- publish:
context: pypi
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
requires:
- test
21 changes: 0 additions & 21 deletions .editorconfig.bak

This file was deleted.

15 changes: 0 additions & 15 deletions .github/ISSUE_TEMPLATE.md.bak

This file was deleted.

152 changes: 148 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
# Custom Rules

# Emacs Buffers
\#*


# Created by https://www.gitignore.io/api/linux,macos,python,windows
# Edit at https://www.gitignore.io/?templates=linux,macos,python,windows

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand All @@ -8,7 +61,6 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand All @@ -20,9 +72,11 @@ lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -37,29 +91,119 @@ pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

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

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# pyenv python configuration file
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

\#*
# 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/

### Python Patch ###
.venv/

### Python.VirtualEnv Stack ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json

### Windows ###
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/linux,macos,python,windows
62 changes: 0 additions & 62 deletions .gitignore.bak

This file was deleted.

Loading