19 Commits

Author SHA1 Message Date
Jon Grace-Cox
ba0b8a333d chore: Use git tag for package version
Update `setup.py` to use git tag for package version.
2024-12-30 09:08:43 -05:00
Jon Grace-Cox
d053fb613a chore: Replace email with protected email 2024-12-30 09:08:43 -05:00
Jon Grace-Cox
9b7318417d Fix broken server import (#70)
Closes #66
2022-08-13 12:12:19 -04:00
Jon Grace-Cox
27b25f7a26 Fix backage build missing templates submodule (#63) (#64) 2022-08-09 08:22:05 -04:00
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
Jon Grace-Cox
f16867114a Add pre-commit config and apply changes (#54)
- Add .pre-commit-config.yaml with initial config.
- Add python black pre-commit config
- Apply pre-commit code changes
- Add information to CONTRIBUTING.md
- Add pre-commit to build requirements
- Run pre-commit during travis CI build
- Use a travis build matrix to control when pre-commit runs
  in the CI process. Use explicit include to only run
  pre-commit on Python 3.9.
2022-08-08 19:02:02 -04:00
Jon Grace-Cox
b6ca345ebe Drop py27 support and refactor (#51) (#52)
Python version support
======================
- Drop Python 2.7 support
- Add testing for Python 3.4 and 3.9
- Set python version requirements in setup.py

Package changes
===============
- Split module up into a package with submodules
- Break templates out into package resources
- Incorporate server into same package
- Use Enum for colors
- Refresh example badges
- Simplify documentation - Remove cli options and python api
  documentation from the README as it is hard to maintain, and
  often goes out-of-date
- Add CONTRIBUTING.md
2022-03-10 07:26:46 -05:00
Fabian Affolter
6fbc545fad Remove unittest (#47) 2021-08-26 15:40:54 -04:00
Jon Grace-Cox
a5ff4f0dfe Add semantic version support (#45) (#46)
Allow value and thresholds to be interpreted as semantic version numbers
by passing --semver (cli) or semver=True (python).

Add docs, unittests, import error handling, cli updates, requirements updates.
2021-05-25 18:22:43 -04:00
Jon Grace-Cox
1cb03dcab9 33 fix setup readme issue (#34)
* Add bash prefixes to README code sections
* Switch to providing long description as markdown in setup.py

Closes #33
2019-11-16 23:19:38 -05:00
Cyril Roelandt
3450712ec6 Use classifiers to specify the license.
Classifiers are a standard way of specifying a license, and make it easy
for automated tools to properly detect the license of the package.

The "license" field should only be used if the license has no
corresponding Trove classifier.
2019-06-01 16:08:44 +02:00
Jon Grace-Cox
c22485752f Use git tag for pypi package version
* Stop using Mr Bump for version handling.
* Only deploy to pypi on tags (not master branch).
* Pick up version number from Travis CI TRAVIS_TAG environment variable.
2019-06-01 03:38:41 -04:00
Jon Grace-Cox
1532cc247e Add more accurate width calculations for truetype fonts
* Use a better estimation technique to guess text widths.
* Add unittests for validating badge widths for various size badges.
* Add return types to function docstrings.
* Update relevant doctests.
2019-06-01 03:38:34 -04:00
Jon Grace-Cox
45f3a68a66 Added first implementation of anybadge HTTP server. 2018-02-18 23:03:27 -05:00
Jon Grace-Cox
6d9863262c Added reStructuredText syntax check to setup.py and updated README. 2018-02-10 11:27:40 -05:00
Jon Grace-Cox
bf68dd7b92 Include examples in README. Switch to markdown README. 2018-02-10 10:21:31 -05:00
Jon Grace-Cox
f0d204d743 Switch to using mister-bump for version bumping. 2018-02-09 21:42:38 -05:00
Jon Grace-Cox
4fc7d5071e Added command line registration (#2) 2017-09-11 21:23:47 -04:00
Jon Grace-Cox
976e2cda79 Added setup.py for package build. 2017-09-11 18:13:40 -04:00