Skip to content

Commit

Permalink
Update infrastructure
Browse files Browse the repository at this point in the history
- Use Pipenv
	- remove .env
	- remove .python-version
	- remove multi requirement files
- Hook up Travis
- Hook up Coveralls
- Deploy via tarball egg
	- tox to test package
- Added tests
- Updated .gitignore
- Add LICENSE
- README.rst with badges
  • Loading branch information
c17r committed Oct 9, 2017
1 parent ce62fb3 commit adbdb85
Show file tree
Hide file tree
Showing 31 changed files with 1,483 additions and 238 deletions.
159 changes: 138 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,156 @@
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
lib
lib64
__pycache__
*.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/
.coverage
.tox
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
.static_storage/
.media/
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# 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

# Mr Developer
.mr.developer.cfg
.project
.pydevproject
# mypy
.mypy_cache/

# pyCharm
.idea
local/
11 changes: 11 additions & 0 deletions .idea/catalyst.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: python

python:
- "3.4"
- "3.5"
- "3.6"
- "3.6-dev"
- "nightly"

install:
- make
- pip install coveralls

script:
- make coverage

after_success:
- coveralls
7 changes: 7 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
graft src
graft scripts

include README.rst
include LICENSE

global-exclude *.py[cod] __pycache__ *.so *.dylib
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

init:
@pip install -U pipenv
@pipenv install --dev

update:
@pipenv update --dev

flake:
@pipenv run flake8

test: flake
@pipenv run py.test -v

coverage: flake
@pipenv run py.test -v --cov-report term-missing:skip-covered --cov=.

tox:
@pipenv run tox --workdir ~/.cache/tox

readme:
@pipenv run python -c 'from setup import REPO_USERNAME, NAME; from scripts.utils import make_readme; make_readme(REPO_USERNAME, NAME)'

upload: readme
@pipenv run ./setup.py upload

test-upload: readme
@pipenv run ./setup.py test_upload

clean:
@find -E . -regex ".*\.py[cod]" -delete
@find -E . -type d -name "__pycache__" -delete
@find -E . -path "*.egg-info*" -delete
@[ -d dist ] && rm -r dist/ || true
@[ -f README.rst ] && rm README.rst || true
@[ -f .coverage ] && rm .coverage || true
22 changes: 22 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
requests = "*"







[dev-packages]

"fabric3" = "*"
pytest = "*"
"pytest-cov" = "*"
"pytest-pythonpath" = "*"
"tox-pyenv" = "*"
twine = "*"
Loading

0 comments on commit adbdb85

Please sign in to comment.