Skip to content

Commit

Permalink
Use setuptools instead of toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tronikos committed Nov 14, 2022
1 parent a72f3fe commit a560642
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 13 deletions.
24 changes: 24 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[mypy]
plugins = pydantic.mypy
ignore_missing_imports = True
exclude = (venv|build)
check_untyped_defs = True
disallow_any_generics = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
no_implicit_optional = True
no_implicit_reexport = True
warn_return_any = True
warn_unreachable = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_no_return = True

[pydantic-mypy]
init_forbid_extra = True
init_typed = True
warn_required_dynamic_aliases = True
warn_untyped_fields = True
13 changes: 0 additions & 13 deletions pyproject.toml

This file was deleted.

41 changes: 41 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[metadata]
name = gassist-text
version = 0.0.2
description = A Python library for interacting with Google Assistant API via text
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/tronikos/gassist_text
author = tronikos
author_email = tronikosgmail.com
license = Apache-2.0
license_file = LICENSE
classifiers =
License :: OSI Approved :: Apache Software License

[options]
packages = find:
python_requires = >= 3.7
install_requires =
click>=8.1.3
google-assistant-grpc>=0.3.0
google-auth>=2.14.1
protobuf==3.20.3
requests>=2.28.1
include_package_data = True
package_dir =
= .

[options.packages.find]
where = .
exclude =
tests
tests.*

[options.package_data]
gassist_text = py.typed

[flake8]
max-line-length = 88
ignore =
E501, # black: Line too long
W503 # black: Line break before binary operator
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Library for packaging the project."""

from setuptools import setup

setup()

0 comments on commit a560642

Please sign in to comment.