Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0834f80
Mostly blank slate for v3 with stub documentation
albireox Dec 30, 2025
8c64932
Initial template
albireox Dec 30, 2025
17230ca
Add licenses
albireox Dec 30, 2025
0965c9f
Support downloading licenses and other improvements
albireox Dec 30, 2025
8d7cf56
Add src/python_project to allow Sphinx to find the package
albireox Dec 30, 2025
ec9d131
Do not ask to keep Copier answers
albireox Dec 30, 2025
fd83e2d
Add .vscode to .gitignore
albireox Dec 30, 2025
725b730
Use uv sync --frozen --group test
albireox Dec 30, 2025
ca8e94b
60% of documentation
albireox Dec 30, 2025
18fdf9e
Add pytest and coverage configuration to pyproject.toml
albireox Jan 2, 2026
3a8c238
Add section on scripts to docs
albireox Jan 2, 2026
0a7a752
More or less complete documentation
albireox Jan 3, 2026
4acd51e
Update style guide to v2
albireox Jan 7, 2026
b329c1f
Update documentation and add badges to README
albireox Jan 7, 2026
93437cf
Update badges
albireox Jan 7, 2026
efe1bc5
Import package earlier in test
albireox Jan 7, 2026
1ac76a9
Do not omit files for coverage
albireox Jan 7, 2026
091c861
Update README
albireox Jan 7, 2026
dfb6b53
Update changelog
albireox Jan 7, 2026
9758ad2
Add sphinx_inline_tabs
albireox Feb 13, 2026
3b7f49b
Add Makefile for Sphinx documentation
albireox Feb 13, 2026
07d4930
Add instructions for local development and building the docs to READM…
albireox Feb 13, 2026
ca5105a
Add link to documentation in README
albireox Feb 13, 2026
113c49b
Add an option to include a Dockerfile and GitHub Action workflow
albireox Feb 13, 2026
8f57ba5
Allow to not delete the .copier-answers.yaml file
albireox Feb 14, 2026
5b8f556
Add some files to path-ignore
albireox Feb 14, 2026
5a1cb0d
Always keep answers
albireox Feb 14, 2026
4da95d8
Add docs on how to update the project
albireox Feb 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ __pycache__/
# C extensions
*.so

.DS_Store

# Distribution / packaging
.Python
env/
Expand Down Expand Up @@ -105,3 +107,5 @@ ENV/
*~
*.swp
*.swo

.vscode/
145 changes: 145 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Change Log

This document records the main changes to the `python-template` code.

## main

* [#26](https://github.com/sdss/python_template/pull/26) Update the template to version 3 using [copier](https://copier.readthedocs.io/en/stable/) instead of cookiecutter and updating the documentation and style guide.

[View commits since the last tag](https://github.com/sdss/python_template/compare/2.1.0...HEAD)


## 2.1.0 (2021-03-24)

### 🚀 New

* GitHub workflow for testing.

### ✨ Improved

* Updated dependencies.
* Removed the requirements `docs` extra. Instead, documentation extra packages are defined in a `requirements.txt` in `docs/sphinx` and automatically installed in the RTD build.

### 🔧 Fixed

* Link to the standards in the README.

[View commits](https://github.com/sdss/python_template/compare/2.0.0...2.1.0)


## 2.0.0 (2020-04-13)

### ✨ Improved

* Dropped support for Python 2.
* Move style guide to root level.
* Use `setup.cfg` for packaging and configuration of `pytest`, `flake8`, `isort`, and `coverage`.
* Move `tests` outside of the package to simplify packaging.
* Replace `utils` with [sdsstools](https://github.com/sdss/sdsstools).
* Remove use of `bumpversion`. Instead, get the package version using `sdsstools.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` and `alabaster`.

[View commits](https://github.com/sdss/python_template/compare/1.0.6...2.0.0)


## 1.0.6 (2019-12-31)

### 🚀 New

* Avoid connecting more than one console handler to the warnings log.

### 🔧 Fixed

* Do not modify the record when formatting it, in case that record is also output in other handlers.

[View commits](https://github.com/sdss/python_template/compare/1.0.5...1.0.6)


## 1.0.5 (2019-05-13)

### Backward incompatible changes

* The default path for the user configuration file is now `~/.config/<name>/<name>.yml`.

### 🚀 New

* 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.

### ✨ Improved

* Modified logger to deal with warnings. Added critical level printing. Fixes #12 and #13.

### 🔧 Fixed

* Bug causing Python 2.7 templates to fail because `PercentStyle` is not available in `logging` module (thanks to @andycasey).

[View commits](https://github.com/sdss/python_template/compare/1.0.4...1.0.5)


## 1.0.4 (2019-01-18)

### ✨ Improved

* Updated year in template to 2019.

### 🔧 Fixed

* More fixes to quotes in `module-whatis` in module file.

[View commits](https://github.com/sdss/python_template/compare/1.0.3...1.0.4)


## 1.0.3 (2018-12-10)

### 🔧 Fixed

* Quotes in `module-whatis` in module file.

[View commits](https://github.com/sdss/python_template/compare/1.0.2...1.0.3)


## 1.0.2 (2018-10-01)

### 🔧 Fixed

* Remove `from __future__ import unicode_literals` that made the package install fail under Python 2. See [#9](https://github.com/sdss/python_template/issues/9) for details.

[View commits](https://github.com/sdss/python_template/compare/1.0.1...1.0.2)


## 1.0.1 (2018-07-30)

### 🚀 New

* Added W0621 to disabled list in pylint.

### ✨ Improved

* 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` to `utils`.

### 🔧 Fixed

* 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.

[View commits](https://github.com/sdss/python_template/compare/1.0.0...1.0.1)


## 1.0.0 (2018-01-31)

### 🚀 New

* Initial release.
* Includes Travis CI, Read The Docs, Coverage, and Bumpversion integrations.
* Includes a logger and configuration library.
* Examples for Sphinx documentation and pytest.

[View commits](https://github.com/sdss/python_template/compare/b726b904a601fe051b9db8dfd24fee59f70bc866...1.0.0)
178 changes: 0 additions & 178 deletions CHANGELOG.rst

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md → LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2017, SDSS
Copyright (c) 2017-, SDSS
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
Loading