diff --git a/devel/py-atpublic/files/setup.cfg b/devel/py-atpublic/files/setup.cfg index f1ef71fac8f9..e1c6bb70e2cc 100644 --- a/devel/py-atpublic/files/setup.cfg +++ b/devel/py-atpublic/files/setup.cfg @@ -1,76 +1,76 @@ [tool:pytest] addopts = --cov=src/public testpaths = test docs [flake8] exclude = conf.py jobs = 1 max-line-length = 79 [coverage:report] fail_under = 100 show_missing = true [coverage:run] branch = true parallel = true omit = [coverage:paths] source = - src/public + public [tool:isort] include_trailing_comma = true known_first_party = public length_sort_straight = true lines_after_imports = 2 lines_between_types = 1 multi_line_output = 3 order_by_type = false skip = conf.py [mypy] namespace_packages = true # Disallow dynamic typing disallow_any_generics = true disallow_subclassing_any = true # Untyped definitions and calls disallow_untyped_calls = false disallow_untyped_defs = true disallow_incomplete_defs = true check_untyped_defs = true disallow_untyped_decorators = false # None and Optional handling no_implicit_optional = true # Configuring warnings warn_redundant_casts = true warn_unused_ignores = true warn_no_return = true warn_return_any = true warn_unreachable = true # Miscellaneous strictness flags implicit_reexport = false strict_equality = true # Configuring error messages show_error_context = true show_column_numbers = true show_error_codes = true pretty = true show_absolute_path = true # Miscellaneous warn_unused_configs = true verbosity = 0 [mypy-pytest] ignore_missing_imports = true [mypy-sybil.*] ignore_missing_imports = true diff --git a/devel/py-atpublic/files/setup.py b/devel/py-atpublic/files/setup.py index 385c5d8f70ba..00645ddde307 100644 --- a/devel/py-atpublic/files/setup.py +++ b/devel/py-atpublic/files/setup.py @@ -1,55 +1,56 @@ """public -- @public for populating __all__""" from setup_helpers import get_version, require_python from setuptools import setup, find_packages require_python(0x30800f0) __version__ = get_version('src/public/__init__.py') with open('README.rst') as fp: readme = fp.read() setup( name='atpublic', version=__version__, author='Barry Warsaw', author_email='barry@python.org', description=__doc__, long_description=readme, long_description_content_type='text/x-rst', license='Apache 2.0', keywords='__all__ public', url='http://public.readthedocs.io/', - packages=["src/public"], + package_dir={"":"src"}, + packages=['public'], include_package_data=True, package_data={ - 'public': ['src/public/py.typed'], + 'public': ['public/py.typed'], }, # readthedocs builds fail unless zip_safe is False. zip_safe=False, python_requires='>=3.8', install_requires=[ 'typing_extensions;python_version<"3.8"', ], project_urls={ 'Documentation': 'https://public.readthedocs.io', 'Source': 'https://gitlab.com/warsaw/public.git', 'Tracker': 'https://gitlab.com/warsaw/public/issues', }, classifiers=[ 'Development Status :: 5 - Production/Stable', 'Development Status :: 6 - Mature', 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: POSIX', 'Operating System :: MacOS :: MacOS X', 'Operating System :: Microsoft :: Windows', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules', 'Topic :: Utilities', ], )