NLeSC / python-template

Netherlands eScience Center Python Template
https://research-software-directory.org/software/nlesc-python-template
Apache License 2.0
196 stars 77 forks source link

650-change-skipifexists #655

Closed lyashevska closed 2 months ago

lyashevska commented 2 months ago

Checklist before requesting a review

Type of change

Please delete options that are not relevant.

List of related issues or pull requests**

Refs:

Describe the changes made in this pull request

Remove pyproject.toml and CITATION.cff from the list of files that are not replaced when project is being updated. Add .editorconfig and .gitignore to the list.

Instructions to review the pull request

Install the requirements

cd $(mktemp -d --tmpdir py-tmpl-XXXXXX)
pip install pipx
pipx install copier

Create a new package using the template

copier copy --vcs-ref <YOUR_BRANCH> https://github.com/nlesc/python-template test_package

Create a local git repo to push to GitHub to trigger CI actions

git init
git add --all
git commit -m "First commit"
git remote add origin git@github.com:<YOU>/python-template-test.git
git push -u origin main -f
# Create a local environment to test your generated package locally
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip setuptools
python -m pip install '.[dev,publishing]'