Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Jun 11, 2019
0 parents commit 51879a2
Show file tree
Hide file tree
Showing 24 changed files with 883 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
; http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = tab
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true

[*.py]
indent_style = space
indent_size = 4

line_length = 96
multi_line_output = 4
lines_after_imports = 2

[*.rst]
indent_style = space
indent_size = 4
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.py[cod]
*.egg
*.egg-info
.DS_Store
.coverage
.cache
.pytest_cache
htmlcov/
dist/
build/
docs/_build/
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: python

python:
- "3.6"

install:
- pip install pipenv codecov
- pipenv install --dev
- pipenv run pip install -e .

script: pipenv run py.test --cov

after_success:
- codecov
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Changelog
=========

0.0.1 (TBD)
-----------

* Initial release of `python-papierkram`
19 changes: 19 additions & 0 deletions LICENSE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2018-present Stephan Jaekel

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include LICENSE.rst
recursive-exclude * .DS_Store
recursive-exclude tests *
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.PHONY: clean tests cov docs release

VERSION = $(shell pipenv run python -c "print(__import__('papierkram').__version__)")

clean:
rm -fr docs/_build build/ dist/
pipenv run make -C docs clean

tests:
pipenv run py.test --cov

cov: tests
pipenv run coverage html
@echo open htmlcov/index.html

apidoc:
pipenv run make -C docs apidoc

docs:
pipenv run make -C docs html
@echo open docs/_build/html/index.html

release:
@echo About to release ${VERSION}; read
pipenv run python setup.py sdist upload
pipenv run python setup.py bdist_wheel upload
git tag -a "${VERSION}" -m "Version ${VERSION}" && git push --follow-tags
19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]
pytest = "*"
pytest-flakes = "*"
pytest-isort = "*"
pytest-cov = "*"
pytest-pycodestyle = "*"
sphinx = "*"
sphinx-rtd-theme = "*"

[packages]
requests = ">=2.22"

[requires]
python_version = "3.6"
Loading

0 comments on commit 51879a2

Please sign in to comment.