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

Feature/context 2.0 #4

Open
wants to merge 330 commits into
base: feature/context-2.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
330 commits
Select commit Hold shift + click to select a range
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
36727a9
Merge branch 'master-origin'
RSchristo Jan 7, 2022
d2c139d
Unlink unused temp file
RSchristo Jan 7, 2022
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
870f94d
Merge branch 'cookiecutter-main' into christokur-main
christokur Feb 3, 2023
c83bffc
get rid of nested .git
christokur Feb 3, 2023
98a986d
Merge pull request #2 from christokur/main
dldinternet Feb 3, 2023
c8e86c9
Revert "get rid of nested .git"
christokur Feb 3, 2023
4883b51
Revert "get rid of nested .git"
christokur Feb 3, 2023
6285196
fix: pre-commit; hooks style; bandit /tmp
christokur Feb 3, 2023
b19dbb8
fix: Yeah ... no
christokur Feb 3, 2023
bd18d5e
fix: double write
christokur Feb 3, 2023
28532de
fix: cannot unlink here
christokur Feb 3, 2023
c6bb701
fix: Better debug hooks test
christokur Feb 3, 2023
fe37978
fix: lint
christokur Feb 3, 2023
cc69716
fix: hook test coverage
christokur Feb 3, 2023
129f50b
fix: lint
christokur Feb 3, 2023
3af76be
chore: cleanup crud
christokur Feb 3, 2023
8d3ffdc
Merge branch 'dldinternet-rs-master' into christokur-main
christokur Feb 3, 2023
afa9af0
Merge branch 'christokur-main' into eruber-new-2.0-context
christokur Feb 3, 2023
d00e424
fix: Tests broken by progress since this feature was developed
christokur Feb 3, 2023
09b5c97
fix: lint checks
christokur Feb 3, 2023
392ee47
fix: Cover all cases 100%
christokur Feb 3, 2023
b9a7985
fix: lint
christokur Feb 3, 2023
8bc3eda
fix: workflow trigger
christokur Feb 3, 2023
3908278
fix: gah
christokur Feb 3, 2023
4bb0ef8
docs
christokur Feb 3, 2023
4881a9c
fix: submodule
christokur Feb 3, 2023
057a3cd
chore: fix submodule
christokur Feb 3, 2023
9a3a7bc
fix: obsolete submodule
christokur Feb 4, 2023
9562d77
fix: scrub docs
christokur Feb 4, 2023
ad9e7ba
chore: Cover the deeper cases
christokur Feb 4, 2023
63633df
fix: coverage
christokur Feb 4, 2023
8e705be
fix: Cover the uncovered branches
christokur Feb 4, 2023
5225f5f
fix: lint
christokur Feb 4, 2023
f7c2acf
fix: All new versions hit this - bypassing for py3.8
christokur Feb 4, 2023
7d4c852
fix: Cheat the peephole optimizer for py3.8
christokur Feb 4, 2023
9af8823
Merge pull request #4 from christokur/main
dldinternet Feb 4, 2023
5fd4d58
Merge branch 'christokur-main' into feature/contextV2-JsonSchema
christokur Feb 4, 2023
c6d6f34
Merge branch 'dldinternet-rs-master' into feature/contextV2-JsonSchema
christokur Feb 4, 2023
0724f7c
Fix jsonschema refs
christokur Feb 4, 2023
f862197
Merge branch 'feature/context-2.0-at-gmbh' into feature/context-2.0
christokur Feb 4, 2023
7004717
fix: Minor merge issues before working on tests
christokur Feb 4, 2023
3ad378d
fix: Working on tests
christokur Feb 4, 2023
61427f6
fix: Fix tests and improve coverage
christokur Feb 5, 2023
9145296
fix: Test missed overwrite in default and extra contexts
christokur Feb 5, 2023
f6ada27
fix: Coverage of resolve_changed_variable_names
christokur Feb 5, 2023
0c042df
fix: test_generate_context_with_extra_context_dictionary
christokur Feb 5, 2023
969f88c
fix: test_should_not_load_json_from_sentinel
christokur Feb 5, 2023
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
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
135 changes: 0 additions & 135 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 }}
87 changes: 87 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,87 @@
name: CI/CD Tests

on:
push:
branches:
- master
- main
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
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
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.python }} -s tests"
- name: Project security test
run: "nox -p ${{ matrix.python }} -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