From 6512713838c22befbf5bad3fa59d57f57151161f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 24 Dec 2019 13:34:00 +0100 Subject: [PATCH] :wrench: Add main config files --- .env | 1 + .gitignore | 3 +++ .travis.yml | 32 ++++++++++++++++++++++++++++++++ mypy.ini | 2 ++ pyproject.toml | 43 ++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .env create mode 100644 .travis.yml create mode 100644 mypy.ini diff --git a/.env b/.env new file mode 100644 index 0000000..8a0bc75 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +PYTHONPATH=./docs/src diff --git a/.gitignore b/.gitignore index 2c8faaa..42ac371 100644 --- a/.gitignore +++ b/.gitignore @@ -2,5 +2,8 @@ *.pyc __pycache__ env3.7 +env3.6 dist .mypy_cache +.idea +site diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..5bc279c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +dist: xenial + +language: python + +cache: pip + +python: + - "3.6" + - "3.7" + - "3.8" + - "nightly" + +matrix: + allow_failures: + - python: "nightly" + +install: + - pip install flit + - flit install --symlink + +script: + - bash scripts/test.sh + +after_script: + - bash <(curl -s https://codecov.io/bash) + +deploy: + provider: script + script: bash scripts/deploy.sh + on: + tags: true + python: "3.6" diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..976ba02 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,2 @@ +[mypy] +ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 4fba953..ef73bc9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,48 @@ module = "typer" author = "Sebastián Ramírez" author-email = "tiangolo@gmail.com" home-page = "https://github.com/tiangolo/typer" -classifiers = ["License :: OSI Approved :: MIT License"] +classifiers = [ + "Intended Audience :: Information Technology", + "Intended Audience :: System Administrators", + "Operating System :: OS Independent", + "Programming Language :: Python :: 3", + "Programming Language :: Python", + "Topic :: Software Development :: Libraries :: Application Frameworks", + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Software Development :: Libraries", + "Topic :: Software Development", + "Typing :: Typed", + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "License :: OSI Approved :: MIT License" + ] requires = [ "click >= 7.0.0, <8.0.0" ] +description-file = "README.md" +requires-python = ">=3.6" + +[tool.flit.metadata.urls] +Documentation = "https://typer.tiangolo.com/" + +[tool.flit.metadata.requires-extra] +test = [ + "pytest >=4.0.0", + "pytest-cov", + "mypy", + "black", + "isort" +] +doc = [ + "mkdocs", + "mkdocs-material", + "markdown-include" +] +all = [ + "colorama", + "click-completion" +]