Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable py311 support #2

Closed
wants to merge 252 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
af189d1
Merge pull request #1549 from ssbarnea/master
simobasso May 12, 2021
802cd70
pre-commit: add bandit hook
simobasso May 20, 2021
bf618fd
Merge pull request #1559 from simobasso/add_bandit_as_pre_commit_hook
SharpEdgeMarshall May 21, 2021
7062271
add safety ci step
simobasso May 20, 2021
0552603
Force click<8.0.0
May 21, 2021
aa5581e
ensure filesystem isolation during tests execution
simobasso May 21, 2021
6281290
remove redundant passenv
simobasso May 21, 2021
1f875cb
Merge pull request #1562 from SharpEdgeMarshall/fix_click_major
simobasso May 21, 2021
cfd2a00
Merge pull request #1560 from simobasso/add_safety_ci_step
SharpEdgeMarshall May 21, 2021
77debc5
Merge pull request #1564 from simobasso/isolated_test_environment
SharpEdgeMarshall May 21, 2021
823050a
Run drafter only on master releases
May 31, 2021
1c0b5b1
Merge pull request #1568 from SharpEdgeMarshall/fix_release_drafter
SharpEdgeMarshall Jun 14, 2021
f00bed7
Adopt setuptools-scm packaging
ssbarnea Jun 14, 2021
5aa5ce8
Merge pull request #1577 from cookiecutter/fix/setuptools-scm
simobasso Jun 15, 2021
a54de67
Add missing period (#1574)
jsoref Jun 15, 2021
b1f6427
Add support for click 8.x (#1569)
cjolowicz Jun 15, 2021
d6037b7
Enable branch coverage (#1542)
simobasso Jun 15, 2021
a46eede
Expand cli documentation relating to the no-input flag (#1543)
jeremyswerdlow Aug 6, 2021
831b365
Move contributors and backers to credits section
doobrie Oct 14, 2021
e45e525
Improve docstrings of the `no_input` flag
Oct 26, 2021
8383971
Ignore OSX-generated files
audreyfeldroy Oct 30, 2021
53b3f14
Markdown corrections:
audreyfeldroy Oct 30, 2021
228c655
Don't run tests on Python 3.6 or PyPy anymore.
audreyfeldroy Oct 30, 2021
dfebae4
Update Black target version from py36 to py39
audreyfeldroy Oct 30, 2021
120c8fa
Correct linting
audreyfeldroy Oct 30, 2021
7189ca0
Forced re-run of PR CI
audreyfeldroy Nov 4, 2021
81f0195
Comment out doc8 to see if it is the issue with GHCI
audreyfeldroy Nov 4, 2021
5987775
Test to see if Black is failing
audreyfeldroy Nov 4, 2021
c767bd9
Add no-verify agument to pre-commit hooks
audreyfeldroy Nov 4, 2021
def2bb6
Upgrade black
audreyfeldroy Nov 4, 2021
3b5a434
Comment out black so the PR can proceed
audreyfeldroy Nov 4, 2021
c9e36a4
Run pre-commit linting
audreyfeldroy Nov 5, 2021
3db109d
Update CONTRIBUTING.md
audreyfeldroy Nov 10, 2021
f821895
Merge pull request #1608 from cookiecutter/release-prep-2.0.1rc1
audreyfeldroy Dec 5, 2021
8de299e
Get python version from version_info tuple
ozer550 Dec 11, 2021
3fa6b0e
Update HISTORY.md
audreyfeldroy Dec 11, 2021
4741a05
Bump version number to 2.0.1
audreyfeldroy Dec 11, 2021
bb643eb
Merge pull request #1620 from cookiecutter/1555-go-through-pypi-check…
audreyfeldroy Dec 11, 2021
b1403ea
Added test for version_msg
ozer550 Dec 12, 2021
e5e0e96
Use f strings and add Python 3.10 CI environments
ozer550 Dec 12, 2021
8a7a6f5
Prints the whole sys.version string
ozer550 Dec 18, 2021
cfef574
Removed python_version_test
ozer550 Dec 18, 2021
11743af
Fixed linting errors
ozer550 Dec 18, 2021
3ece249
Merge pull request #1621 from ozer550/1619-fix-python-version-number
michaeljoseph Dec 18, 2021
db5fce2
Removed changes related to setuptools_scm
ozer550 Dec 27, 2021
c578dce
Fixed flake8 section in setup.cfg
ozer550 Dec 27, 2021
12e20b4
Merge pull request #1629 from ozer550/remove-setuptools_scm-packaging
audreyfeldroy Dec 27, 2021
333b6ef
Release 2.0.2
audreyfeldroy Dec 27, 2021
0b40625
Update 2.0.2 release notes
audreyfeldroy Dec 27, 2021
c0e7698
Feature/local extensions (#1240)
mwesterhof Mar 18, 2022
0711b74
Restore accidentally deleted support for click 8.x (#1643)
jaklan Mar 18, 2022
603b036
Update badge & links from Slack to Discord in README (#1612)
browniebroke Mar 18, 2022
682fe85
Improve local development step 3 (#1610)
ozer550 Mar 18, 2022
980ff08
test_generate_file_verbose_template_syntax_error fixed
MaciejPatro May 7, 2022
6eb9ea8
Remove redundant comparison
MaciejPatro May 16, 2022
05267c6
Fix black incompatibility with click 8.1.0 version
MaciejPatro May 16, 2022
2b6de97
Add Audrey Roy Greenfeld as creator and leader
pydanny May 24, 2022
43ccfcc
Update README.md
pydanny May 24, 2022
0502466
Fixed incorrect link on docs. (#1649)
luzfcb May 29, 2022
69cd155
Merge pull request #1671 from MaciejPatro/test
jensens May 29, 2022
b2d23d1
Merge branch 'master' into credits-page
jensens May 29, 2022
8519c8d
Merge pull request #1599 from doobrie/credits-page
jensens May 29, 2022
08fbbee
Documentation overhaul.
jensens May 29, 2022
e9dc60e
better naming in generated API docs
jensens May 30, 2022
1f04a3e
update troove classifiers, version and required python version
jensens May 30, 2022
ed80c90
Documentation overhaul (2)
jensens May 30, 2022
9ee72e1
housekeeping: run pyupgrade to find remaining py27 artifacts
jensens May 30, 2022
f011240
Documentation overhaul (3)
jensens May 30, 2022
4ec79f7
Merge pull request #1679 from cookiecutter/pyupgrade
ericof May 30, 2022
e994273
Merge pull request #1677 from cookiecutter/doc-overhaul
ericof May 30, 2022
cd845ab
Fix typo in dict_variables.rst
ericof May 30, 2022
55047a6
Add Jens and Érico to the list of core contributors
ericof May 30, 2022
5918a8b
Merge pull request #1680 from cookiecutter/fpr-1611-fix-typo
ericof May 30, 2022
e6b828a
Follow PyPA guide to release package using GitHub Actions.
ericof May 30, 2022
a7b1bc2
exists under docs, is enough
jensens May 30, 2022
2a819d7
Explicitly use GitHub Actions environment
ericof May 30, 2022
f729dde
Merge pull request #1682 from cookiecutter/issue-1681-use-pypi-publis…
ericof May 30, 2022
563472e
add check-manifest to pre-commit and fix Manifest.in
jensens May 30, 2022
ba1c461
Merge pull request #1683 from cookiecutter/check-manifest
jensens May 30, 2022
96c6826
bump version and edit historie
jensens May 30, 2022
f601b71
Merge pull request #1684 from cookiecutter/bump-release-2.1.0
jensens May 30, 2022
58d716f
[Docs] Fix local extensions documentation
alkatar21 May 31, 2022
8b33e96
Bump version to 2.1.1.dev0
jensens May 31, 2022
70b2ee2
Merge pull request #1686 from alkatar21/patch-1
jensens May 31, 2022
94036d0
Merge pull request #1687 from cookiecutter/bump-version-back-to-dev
jensens May 31, 2022
e26c465
Sanitize Mercurial branch information before checkout.
ericof May 31, 2022
85a7884
Lint fixes
ericof May 31, 2022
fdffddb
Merge pull request #1689 from cookiecutter/sanitize-mercurial-checkout
jensens Jun 1, 2022
23182a5
Add CLI option to keep project files on failure.
MaciejPatro May 6, 2022
f9376a9
Prepare release 2.1.1
ericof Jun 1, 2022
8e3cf36
Back to development
ericof Jun 1, 2022
b888fd4
Improve Docs Readability
ryanrussell Jun 1, 2022
4d9f1c6
Merge pull request #1690 from ryanrussell/master
ericof Jun 2, 2022
cb7fb88
fixes wrong (renamed) repository owner for cookiecutter-pypackage
ri0t Oct 19, 2021
d3d1638
More renames
insspb Jun 5, 2022
ebeb4da
Merge pull request #1604 from ri0t/master
insspb Jun 5, 2022
7907a69
update Docs for Create a Cookiecutter From Scratch
miro-jelaska Sep 14, 2021
a5197d0
Fix spaces for linting
insspb Jun 6, 2022
19f40f4
Merge pull request #1592 from miro-jelaska/update-docs-for-create-coo…
insspb Jun 6, 2022
52daf02
Merge pull request #1669 from MaciejPatro/master
insspb Jun 6, 2022
fcd417d
Replace jinja.pocoo.org to https://jinja.palletsprojects.com/en
insspb Jun 6, 2022
02c02e9
Merge pull request #1691 from cookiecutter/jinja-links
insspb Jun 6, 2022
3b5b5bf
Fix @audreyr to @audreyfeldroy
insspb Jun 6, 2022
ed4748f
Fix LICENSE years
insspb Jun 6, 2022
f4939ff
support partially overwrite keys in nested dict
cksac Jun 6, 2022
ef83972
fixed the override not working with copy only dir
zhongdai Mar 2, 2022
cf3c85b
remove the blank line after the docstring
zhongdai Mar 14, 2022
855a1c3
add extra check for the overwrite_if_exists flag
zhongdai Apr 11, 2022
c7729fa
added the function doc for skip_if_file_exists
zhongdai Apr 12, 2022
418e316
fixed the exception test case
zhongdai Apr 12, 2022
e07a2a8
Merge pull request #1651 from zhongdai/fixed-override-option-with-cop…
insspb Jun 6, 2022
c041d91
Update cookiecutter/prompt.py
insspb Jun 6, 2022
b6e32d3
Merge pull request #1587 from jeremyswerdlow/no-input-docs-revamp
insspb Jun 6, 2022
cfad8f9
add test
cksac Jun 6, 2022
508ef46
Merge pull request #1692 from cksac/feature
insspb Jun 6, 2022
347ac18
generate: introduces templates inheritance
simobasso Jan 2, 2021
1352690
Fix linting in #1485
insspb Jun 6, 2022
012d04a
Update docs/advanced/templates.rst
insspb Jun 6, 2022
d269707
Update docs/advanced/templates.rst
insspb Jun 6, 2022
558f440
Merge pull request #1485 from simobasso/feature/add_templates_inherit…
insspb Jun 6, 2022
185feb1
Add boolean variable support
liortct Dec 19, 2021
789d6d0
Fix code to follow Code Climate suggestions
liortct Dec 19, 2021
768bfcf
Update docs/advanced/boolean_variables.rst
insspb Jun 6, 2022
01b6e4d
Merge pull request #1626 from liortct/add-boolean-field
insspb Jun 6, 2022
ec58a71
Fix release-drafter template typo. Closes #1699
insspb Jun 6, 2022
d5d2120
Add autolabeler support for workflow
insspb Jun 6, 2022
902b3cb
Add version resolver to release-drafter
insspb Jun 6, 2022
084a03b
Add autolabeler to release-drafter
insspb Jun 6, 2022
a1a61e3
Configure notes sorting in release-drafter
insspb Jun 6, 2022
5ea9522
Merge pull request #1704 from cookiecutter/release-drafter
insspb Jun 6, 2022
5f6aaee
Extend tests requirements
insspb Jun 6, 2022
0187056
Add nox configuration
insspb Jun 6, 2022
aa951c1
Fix codeblock style (failed docs build)
insspb Jun 6, 2022
59bfbb3
Add sphinx-autobuild for nox correct run #1698
insspb Jun 6, 2022
47d2341
Added readthedocs build config
insspb Jun 6, 2022
d177d33
Use latest ubuntu for builds
insspb Jun 6, 2022
a0ed3ac
Merge pull request #1707 from cookiecutter/readthedocs
insspb Jun 6, 2022
7a0ebfc
Merge pull request #1706 from cookiecutter/nox
insspb Jun 7, 2022
7c7d39a
Update sphinx requirements
insspb Jun 7, 2022
c8fbb31
Fix myst broken links
insspb Jun 7, 2022
30c691e
Update sphinx configuration
insspb Jun 7, 2022
03773ee
Merge pull request #1709 from cookiecutter/myst
insspb Jun 7, 2022
9d445f4
remove versions from template, to exclude dependabot warnings
insspb Jun 7, 2022
0610b65
Exclude versions from tests
insspb Jun 7, 2022
5e4a5a7
Merge pull request #1711 from cookiecutter/dependabot
insspb Jun 7, 2022
a11e815
Update pre-commit config
insspb Jun 7, 2022
6fdbb92
Remove unneeded shebangs to fix pre-commit issues
insspb Jun 7, 2022
7e8a34c
Merge pull request #1712 from cookiecutter/pre-commit
insspb Jun 7, 2022
7efd07b
Remove unused sphinx files
insspb Jun 7, 2022
94631a8
Add nox files to gitignore
insspb Jun 7, 2022
ac047dc
Replace not windows supported sed with nox workflow and template
insspb Jun 7, 2022
567ab63
Whatch all codebase for changes in docs
insspb Jun 7, 2022
8c9e1e5
Extend makefile with new clean options
insspb Jun 7, 2022
60c36ff
Replace lint in makefile
insspb Jun 7, 2022
5f71bc6
Fix typo in filename
insspb Jun 7, 2022
b64ea63
Replace tox make steps with nox
insspb Jun 7, 2022
f073dd5
Update documentation workflow to use nox
insspb Jun 7, 2022
262af42
Merge pull request #1713 from cookiecutter/makefile-update
insspb Jun 7, 2022
292ccda
Update github actions major versions
insspb Jun 7, 2022
15be977
Github Actions: Tox with Nox replace + Safety check for all python ve…
insspb Jun 7, 2022
1179fe0
Use python 3.10 for deploy to pip
insspb Jun 7, 2022
d8625b1
Fix codeclimate version
insspb Jun 7, 2022
86b47cd
Simplify github actions matrix definition
insspb Jun 7, 2022
a94e2ae
Rename release-drafter yml to exclude IDE known formats warning
insspb Jun 6, 2022
09c19a3
Rename main workflow to tests workflow
insspb Jun 7, 2022
b1f8ca6
Move documentation workflow to main tests workflow to see all on one …
insspb Jun 7, 2022
8fd1194
Attempt to fix design problems on read the docs
insspb Jun 7, 2022
f39f120
Merge pull request #1714 from cookiecutter/actions
insspb Jun 7, 2022
a263ad0
Update boolean_variables.rst
italomaia Jun 6, 2022
c6dff1b
Update boolean_variables.rst
italomaia Jun 6, 2022
1ad2375
Fix CI/CD for first time contributors
insspb Jun 7, 2022
6008c71
Update documentation intersphinx_mapping to external sources
insspb Jun 7, 2022
4d40ed5
Update list of directories for looking for files changes in interacti…
insspb Jun 7, 2022
fbc68f7
Extend read_user_yes_no docstrings
insspb Jun 7, 2022
6217392
Finalize Boolean Variables documentation update (rst)
insspb Jun 7, 2022
4406bc7
Merge pull request #1705 from italomaia/patch-1
insspb Jun 7, 2022
252478a
Fix Python code block
juhannc Jun 7, 2022
260b856
Merge pull request #1715 from JohannLange/master
insspb Jun 7, 2022
17c07bf
Replace strings methods with f-string (tests)
insspb Jun 8, 2022
6d92aae
Simplify 'if' block in utils tests
insspb Jun 8, 2022
efd5dce
Remove meaningless test statement (test_jinja2_uuid_extension)
insspb Jun 8, 2022
1d18696
Tests: Use pathlib for files read/write (test_cli.py)
insspb Jun 8, 2022
d233e33
Tests: Use pathlib for files read/write (test_hooks.py)
insspb Jun 8, 2022
6840956
Tests: Use pathlib for files read/write (test_utils.py)
insspb Jun 8, 2022
71c435f
Tests: Use pathlib for files read/write (test_unzip.py)
insspb Jun 8, 2022
a06d852
Tests: Use pathlib for files read/write (test_templates.py)
insspb Jun 8, 2022
f98f067
Tests: Use pathlib for files read/write (test_generate_file.py)
insspb Jun 8, 2022
8876b10
Tests: Use pathlib for files read/write (test_generate_files.py)
insspb Jun 8, 2022
eb7930e
Tests: Use pathlib for files read/write (test_generate_hooks.py)
insspb Jun 8, 2022
8e6a475
Tests: Use pathlib for files read/write (test_output_folder.py)
insspb Jun 8, 2022
eef9a82
Tests: Use pathlib for files read/write (test_default_extensions.py)
insspb Jun 8, 2022
15e3bd0
Tests: Use pathlib for files read/write (test_cookiecutter_local_no_i…
insspb Jun 8, 2022
2477c79
Tests: Use pathlib for files read/write (test_custom_extensions_in_ho…
insspb Jun 8, 2022
b40fb40
Tests: Use pathlib for files read/write (test_generate_copy_without_r…
insspb Jun 8, 2022
14433e1
Tests: Use pathlib for files read/write (test_generate_copy_without_r…
insspb Jun 8, 2022
4aac87e
Tests: Use pathlib for files read/write (test_determine_repo_dir_find…
insspb Jun 8, 2022
b7309ac
Tests: Use pathlib for files read/write (test_determine_repo_dir_find…
insspb Jun 8, 2022
fe0ce13
Tests: Use pathlib read_text/write_text (test_cli.py)
insspb Jun 8, 2022
a3d6039
Tests: Use pathlib read_text/write_text (test_utils.py)
insspb Jun 8, 2022
9185db1
Tests: Use pathlib read_text/write_text with encoding (test_templates…
insspb Jun 8, 2022
9b80ba6
Tests: Use pathlib read_text/write_text (test_hooks.py)
insspb Jun 8, 2022
f8ad02a
Tests: Use pathlib read_text/write_text (test_output_folder.py)
insspb Jun 8, 2022
258de5a
Tests: Use pathlib read_text/write_text with encoding (test_default_e…
insspb Jun 8, 2022
b2be238
Tests: Use pathlib read_text/write_text (test_generate_copy_without_r…
insspb Jun 8, 2022
8e9f138
Tests: Use pathlib read_text/write_text (test_generate_copy_without_r…
insspb Jun 8, 2022
8413ed9
Tests: Use pathlib read_text/write_text with encoding (test_generate_…
insspb Jun 8, 2022
9cdcdc0
Tests: Use pathlib read_text/write_text with encoding (test_generate_…
insspb Jun 8, 2022
b403dbe
Tests: Use pathlib read_text/write_text with encoding(test_custom_ext…
insspb Jun 8, 2022
2d4b630
Tests: Use pathlib read_text/write_text (test_cookiecutter_local_no_i…
insspb Jun 8, 2022
24472a8
Merge pull request #1717 from cookiecutter/code-quality-tests-simple-…
insspb Jun 8, 2022
37da8d8
Convert 'format' usage to f-strings (cli.py)
insspb Jun 8, 2022
164caa4
Convert 'format' usage to f-strings (generate.py)
insspb Jun 8, 2022
a1d4868
Convert 'format' usage to f-strings (prompt.py)
insspb Jun 8, 2022
f4996f2
Convert 'format' usage to f-strings (utils.py)
insspb Jun 8, 2022
282cf58
Convert 'format' usage to f-strings (zipfile.py)
insspb Jun 8, 2022
b789202
Remove encoding (test_templates.py)
insspb Jun 8, 2022
c0c2d5c
Fix encoding typo (test_custom_extensions_in_hooks.py)
insspb Jun 8, 2022
fbf7d4c
Merge pull request #1716 from cookiecutter/code-quality-fstrings-core
insspb Jun 8, 2022
8eb562b
Merge branch 'master' into code-quality-tests-use-pathlib
insspb Jun 8, 2022
1e821d2
Use touch instead of open('w') (test_determine_repo_dir_finds_existin…
insspb Jun 8, 2022
0fe509c
Use touch instead of open('w') (test_determine_repo_dir_finds_subdire…
insspb Jun 8, 2022
8a731d1
Include caused exception details on reraise (PEP 3134) (environment.py)
insspb Jun 8, 2022
0c94173
Include caused exception details on reraise (PEP 3134) (generate.py)
insspb Jun 8, 2022
1c09d34
Include caused exception details on reraise (PEP 3134) (hooks.py)
insspb Jun 8, 2022
7992483
Include caused exception details on reraise (PEP 3134) (vcs.py)
insspb Jun 8, 2022
86fc66f
Include caused exception details on reraise (PEP 3134) (prompt.py)
insspb Jun 8, 2022
b1d4701
Fix not closed files handlers
insspb Jun 8, 2022
ca229a3
Merge pull request #1719 from cookiecutter/detailed-errors
insspb Jun 8, 2022
7b81306
Merge pull request #1718 from cookiecutter/code-quality-tests-use-pat…
insspb Jun 8, 2022
e162629
Extend sphinx config with type annotations from typehints
insspb Jun 8, 2022
2e2691d
Find refactored and type annotated
insspb Jun 8, 2022
aebdc49
Update findpath tests
insspb Jun 8, 2022
2a87314
Compatibility fix
insspb Jun 8, 2022
4d127f8
Simplify make_sure_path_exists function
insspb Jun 9, 2022
4cae423
Type annotate vcs.clone function
insspb Jun 9, 2022
886cc82
Remove strings from vcs.clone tests
insspb Jun 9, 2022
68cdeb8
Move OSError raising out of replay.dump (raise in make_sure_path_exists)
insspb Jun 9, 2022
d958bdc
Type annotate generate.render_and_create_dir for correct passing to m…
insspb Jun 9, 2022
16051ff
Type annotate zipfile.unzip
insspb Jun 9, 2022
759a6ac
Update make_sure_path_exists tests
insspb Jun 9, 2022
7322abd
Fix exception text
insspb Jun 9, 2022
b0a9ebb
Update cookiecutter/utils.py
insspb Jun 9, 2022
514a56b
Merge pull request #1721 from cookiecutter/pathlib-find
insspb Jun 9, 2022
449f877
Merge pull request #1722 from cookiecutter/update_make_sure_path_exis…
insspb Jun 9, 2022
f574208
Easy PR! Fix typos and add minor doc updates (#1741)
Alex0Blackwell Jun 19, 2022
60a049e
Remove universal bdist_wheel option; use "python -m build" (#1739)
mwtoews Jun 19, 2022
dc95dd2
docs: fix simple typo, shat -> that (#1749)
timgates42 Jul 3, 2022
e9b3b84
Fixed minor typos in docs (#1753)
segunb Aug 1, 2022
cf81d63
feat: Add resolved template repository path as _repo_dir to the conte…
tmeckel Sep 9, 2022
678b448
Enable py311 support
ssbarnea Sep 19, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .bandit
@@ -0,0 +1,3 @@
[bandit]
exclude=tests/*
targets=cookiecutter/
43 changes: 42 additions & 1 deletion .github/release-drafter.yml
@@ -1,3 +1,42 @@
filter-by-commitish: true
commitish: master
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
version-resolver:
major:
labels:
- 'breaking-change'
- 'major'
minor:
labels:
- 'enhancement'
- 'feature'
patch:
labels:
- 'bug'
- 'CI/CD'
- 'code style'
- 'documentation'
- 'tests'
- 'patch'
default: patch
autolabeler:
- label: 'CI/CD'
files:
- '.github/*'
- '.pre-commit-config.yaml'
- '*.cfg'
- '*.ini'
- 'noxfile.py'
- 'setup.*'
- 'docs/conf.py'
- 'Makefile'
- 'make.bat'
- '*requirements*.txt'
- label: 'documentation'
files:
- '*.md'
- '*.rst'
categories:
- title: 'Breaking Changes'
labels:
Expand All @@ -23,13 +62,15 @@ categories:
- title: 'Deprecations'
labels:
- 'deprecated'
sort-by: title
sort-direction: ascending
exclude-labels:
- 'skip-changelog'
template: |
## Changes

$CHANGES

## This release is made by wonderfull contributors:
## This release is made by wonderful contributors:

$CONTRIBUTORS
26 changes: 0 additions & 26 deletions .github/workflows/docs.yml

This file was deleted.

Expand Up @@ -4,9 +4,18 @@ on:
push:
branches:
- master
# autolabeler
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
Expand Down
133 changes: 0 additions & 133 deletions .github/workflows/main.yml

This file was deleted.

46 changes: 32 additions & 14 deletions .github/workflows/pip-publish.yml
Expand Up @@ -7,20 +7,38 @@ on:
jobs:
upload:
runs-on: ubuntu-latest

environment:
name: pypi.org
url: https://pypi.org/project/cookiecutter/

steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v3
with:
python-version: 3.10

- name: Install pypa/build
run: >-
python -m
pip install
build
--user

- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.

- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
python-version: "3.7"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
- name: Package project
run: python setup.py sdist bdist_wheel
- name: Upload distributions
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
93 changes: 93 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,93 @@
name: CI/CD Tests

on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- "*"

jobs:
documentation_build_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox virtualenv
- name: Build docs
run: nox -s docs
- uses: actions/upload-artifact@v3
with:
name: DocumentationHTML
path: docs/_build/html/
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox virtualenv
- name: Lint
run: "nox -s lint"
tests_run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
include:
- nox_env: py37
python: "3.7"
- nox_env: py38
python: "3.8"
- nox_env: py39
python: "3.9"
- nox_env: py310
python: "3.10"
- nox_env: py311
python: "~3.11.0-0" # needed until 3.11 is released

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install nox virtualenv
- name: Project internals test build
run: "nox -p ${{ matrix.nox_env }} -s tests"
- name: Project security test
run: "nox -p ${{ matrix.nox_env }} -s safety_tests"
- name: Send coverage report to codeclimate
continue-on-error: true
uses: paambaati/codeclimate-action@v3.0.0
with:
coverageCommand: echo "Ignore rerun"
coverageLocations: ${{github.workspace}}/coverage.xml:coverage.py
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
- name: Send coverage report to codecov
uses: codecov/codecov-action@v3
with:
env_vars: OS=${{ matrix.os }},PYTHON=${{ matrix.python }}
file: ./coverage.xml