Removed setup files

Using pyproject.toml
This commit is contained in:
Ethan Smith-Coss 2023-07-06 16:55:58 +01:00
parent 662ebe5e56
commit da46bb2cf5
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1
2 changed files with 0 additions and 100 deletions

View File

@ -1,50 +0,0 @@
[metadata]
name = clog
description = logging as simple as putting on a shoe.
author = Ethan Smith-Coss
license = GNU GPLv3+
license_file = LICENCE.txt
platforms = unix, linux, osx, cygwin, win32
classifiers =
Development Status :: 3 - Alpha
Environment :: Other Environment
Intended Audience :: Developers
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Natural Language :: English
Operating System :: OS Independent
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3 :: Only
Topic :: System :: Logging
Topic :: Software Development :: Libraries
Topic :: Utilities
[options]
python_requires = >=3.6, <4
package_dir =
=clog
zip_safe = no
[options.extras_require]
testing =
pytest>=7.0
pytest-cov>=3.0
mypy>=0.950
flake8>=4.0
tox>=3.25
[options.package_data]
clog = py.typed
[flake8]
ignore = E266, E128, E261, E221, W292, W503
max-line-length = 120
per-file-ignores =
clog/__init__.py:F401, F403
clog/utils/__init__.py:F401, F403
clog/_logger.py:E302, E701
setup.py:E126

View File

@ -1,50 +0,0 @@
#!/usr/bin/env python
import os
import sys
from typing import Dict
from setuptools import setup
CURRENT_PYVERSION = sys.version_info[:2]
REQUIRED_PYVERSION = (3, 6)
if CURRENT_PYVERSION < REQUIRED_PYVERSION:
sys.stderr.write(
"""
==================================
Whoops, unsupported Python version
==================================
It's seems as though your foot size does not meet the minimum required
shoe size for clog. Your foot size must at least be {}.{}, otherwise the
shoe will just fall off - and nobody wants to smell you stinky feet!
Your current foot size is {}.{} which you are trying to put the shoe on.
If you wish to resolve this, consider growing your feet from the
official Python website to the minimum required version.
...just make sure there aren't any snakes in your shoes afterwards.
""".format(
*(REQUIRED_PYVERSION + CURRENT_PYVERSION)
)
)
sys.exit(1)
info: Dict[str, str] = {}
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "clog", "__version__.py"), "r", encoding="utf-8") as f:
exec(f.read(), info)
with open("README.md", 'r', encoding="utf-8") as f:
readme = f.read()
if __name__ == "__main__":
setup(
version=info['__version__'],
long_description=readme,
long_description_content_type="text/markdown",
url=info['__url__'],
include_package_data=True,
author_email=info['__author_email__'],
package_data={"": ["LICENCE.txt"]}
)