Files
anybadge/setup.py
Jon Grace-Cox 8a434d95b5 Drop <3.7 support and add type hints (#59)
- Drop support for Python <3.7
- Bump the pre-commit version used in CI
- Add type hinting and docstrings
- Add mypy to pre-commit config
- Fix typing issues
- Update colors module
  - Update colors module to use uppercase hex codes
  - Add `__lt__` to allow sorting colors by name
- Fix `build_examples.py` to work with color Enum
- Update example badges in `README.md`
- Fix typing issues in server
- Update travis links in `README.md`
- Fix PyPi deployment bug (#60)
2022-08-08 23:19:50 -04:00

40 lines
1.2 KiB
Python

#!/usr/bin/python
import os
import re
from setuptools import setup
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
# Attempt to get version number from TravisCI environment variable
version = os.environ.get("TRAVIS_TAG", default="0.0.0")
# Remove leading 'v'
version = re.sub("^v", "", version)
setup(
name="anybadge",
description="Simple, flexible badge generator for project badges.",
long_description=long_description,
long_description_content_type="text/markdown",
version=version,
author="Jon Grace-Cox",
author_email="jongracecox@gmail.com",
packages=["anybadge"],
py_modules=["anybadge_server"],
setup_requires=["setuptools", "wheel"],
tests_require=[],
install_requires=["packaging"],
package_data={"anybadge": ["templates/*.svg"]},
options={"bdist_wheel": {"universal": False}},
python_requires=">=3.7",
url="https://github.com/jongracecox/anybadge",
entry_points={
"console_scripts": [
"anybadge=anybadge.cli:main",
"anybadge-server=anybadge.server.cli:main",
],
},
classifiers=["License :: OSI Approved :: MIT License"],
)