This document records the main changes to the python-template code.
View commits since the last tag.
- GitHub workflow for testing.
- Updated dependencies.
- Removed the requirements
docs
extra. Instead, documentation extra packages are defined in arequirements.txt
indocs/sphinx
and automatically installed in the RTD build.
- Link to the standards in the README.
- Dropped support for Python 2.
- Move style guide to root level.
- Use
setup.cfg
for packaging and configuration ofpytest
,flake8
,isort
, andcoverage
. - Move
tests
outside of the package to simplify packaging. - Replace
utils
with sdsstools. - Remove use of
bumpversion
. Instead, get the package version usingsdsstools.get_package_version
. - Updated the template Sphinx docs.
- Updated style guide and documentation.
- Allow to choose between setuptools and poetry.
- Allow to choose between
sphinx-bootstrap-theme
andalabaster
.
- Avoid connecting more than one console handler to the warnings log.
- Do not modify the record when formatting it, in case that record is also output in other handlers.
- The default path for the user configuration file is now
~/.config/<name>/<name>.yml
.
- Better handling of configuration files. An environment variable
$<NAME>_CONFIG_PATH
(e.g.,$MYPYTHON_CONFIG_PATH
) can be defined to point to the user configuration file. If defined, this path overrides the default location.
- Modified logger to deal with warnings. Added critical level printing. Fixes :issue:`12,13`.
- Bug causing Python 2.7 templates to fail because
PercentStyle
is not available inlogging
module (thanks to :user:`andycasey`).
- Updated year in template to 2019.
- More fixes to quotes in
module-whatis
in module file.
- Quotes in
module-whatis
in module file.
- Remove
from __future__ import unicode_literals
that made the package install fail under Python 2. See #9 for details.
- Added W0621 to disabled list in pylint.
- Changed documentation font size.
- Modified code and readthedocs configuration to use Python 3.6.
- Remove logger warning monkeypatching since it conflicted when used with packages that provide a similar monkeypatching. Replaced with a custom
logging.warning
method that produces coloured warning output. - The
package_name
specified when cookiecutting the template is applied in lowercase when creating the package but in ucfirst case when creating classes. - Renamed
misc
toutils
.
- Problem importing matplotlib in docs.
- A typo in the definition of the warning format in the logger.
- A typo in the definition of the API exception.
- Initial release.
- Includes Travis CI, Read The Docs, Coverage, and Bumpversion integrations.
- Includes a logger and configuration library.
- Examples for Sphinx documentation and pytest.