Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Dec 1, 2018
1 parent 231e7c9 commit 53456fe
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .gitignore
@@ -0,0 +1,35 @@
*#
*.DS_Store
*.egg
*.eggs
*.egg-info
*.egg-info/
*.iml
*.log
*.pyc
*.sass-cache
*.sqlite
*build/
*dat
*npy
*pyc
*~
.env
.cache/
.pytest_cache/
.coverage
.idea/
.vscode/
.ipynb_checkpoints
.ruby-version
.tox
bower_components/
build/
build/lib/
dist/
docs/_build
jnk/
logs/
profile.*
server/
tmp/
33 changes: 33 additions & 0 deletions .travis.yml
@@ -0,0 +1,33 @@
language: python
sudo: required
cache:
directories:
- "$HOME/.cache/pip"
python:
- "2.7"
- '3.5'
- '3.6'
install:
- pip install -r requirements_dev.txt
- pip install -e .
- pip list
script:
- py.test --pep8 -m pep8
- travis_wait py.test tests --cov questionary -v
after_success:
- coveralls
jobs:
include:
- stage: deploy
python: 3.6
install: skip
script: skip
deploy:
provider: pypi
user: tmbo
distributions: "sdist bdist_wheel"
on:
branch: master
tags: true
password:
secure: ""
19 changes: 19 additions & 0 deletions LICENSE
@@ -0,0 +1,19 @@
Copyright 2018 Tom Bocklisch and contributors

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.
1 change: 1 addition & 0 deletions MANIFEST.in
@@ -0,0 +1 @@
include LICENSE README.md requirements.txt
27 changes: 27 additions & 0 deletions NOTICE
@@ -0,0 +1,27 @@
Tom Bocklisch
Copyright 2018 Tom Bocklisch

----

This product includes software from PyInquirer (https://github.com/CITGuru/PyInquirer),
under the MIT License.

Copyright 2018 Oyetoke Toby and contributors

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.
Empty file added examples/__init__.py
Empty file.
Empty file added questionary/__init__.py
Empty file.
6 changes: 6 additions & 0 deletions questionary/version.py
@@ -0,0 +1,6 @@
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import

__version__ = '1.0.0a1'
1 change: 1 addition & 0 deletions requirements.txt
@@ -0,0 +1 @@
prompt_toolkit==2.0.7
5 changes: 5 additions & 0 deletions requirements_dev.txt
@@ -0,0 +1,5 @@
-r requirements.txt

pytest>=3.0.7
pytest-cov>=2.4.0
coveralls==1.3.0
17 changes: 17 additions & 0 deletions setup.cfg
@@ -0,0 +1,17 @@
# pytest PEP8 configuration
[tool:pytest]
pep8maxlinelength = 80
pep8ignore =
*.py W503
*.py E126

# ignoring W503: line break occurred before a binary operator
# ignoring E126: continuation line over-indented for hanging indent

[metadata]
description-file = README.md
license_file = LICENSE

[bdist_wheel]
# this will create a universal wheel for all distributions and py2 & py3
universal=1
64 changes: 64 additions & 0 deletions setup.py
@@ -0,0 +1,64 @@
from setuptools import setup, find_packages
import io
import os

here = os.path.abspath(os.path.dirname(__file__))

# Avoids IDE errors, but actual version is read from version.py
__version__ = None
exec(open("questionary/version.py").read())

# Get the long description from the README file
with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f:
long_description = f.read()

tests_requires = [
"pytest~=3.0",
"pytest-pep8~=1.0",
"pytest-cov~=2.0",
]

install_requires = [
"prompt_toolkit~=2.0"
]

extras_requires = {
"test": tests_requires
}

setup(
name="questionary",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
# supported python versions
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Libraries",
],
packages=find_packages(exclude=["tests", "tools"]),
version=__version__,
install_requires=install_requires,
tests_require=tests_requires,
extras_require=extras_requires,
include_package_data=True,
description="Python library to build pretty command line user prompts ⭐️",
long_description=long_description,
long_description_content_type="text/markdown",
author="Tom Bocklisch",
author_email="tombocklisch@gmail.com",
maintainer="Tom Bocklisch",
maintainer_email="tombocklisch@gmail.com",
license="Apache 2.0",
keywords="cli ui inquirer questions prompt",
url="https://github/tmbo/questionary",
download_url="https://github/tmbo/questionary/archive/{}.tar.gz"
"".format(__version__),
project_urls={
"Bug Reports": "https://github/tmbo/questionary/issues",
"Source": "https://github/tmbo/questionary",
},
)
Empty file added tests/__init__.py
Empty file.

0 comments on commit 53456fe

Please sign in to comment.