Skip to content

Commit 7042372

Browse files
authored
Merge pull request #244 from NLeSC/240-next-steps
Added a next steps document and updated the cookiecutter post hook
2 parents a4ac8c1 + edeefe1 commit 7042372

File tree

4 files changed

+40
-24
lines changed

4 files changed

+40
-24
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ cookiecutter https://github.com/nlesc/python-template.git
6969
| copyright_holder | Netherlands eScience Center | Name(s) of the organization(s) or person(s) who hold the copyright of the software. |
7070
| code_of_conduct_email | [email protected] | Email address of the person who should be contacted in case of violations of the Code of Conduct. |
7171

72+
Once the project files have been generated, follow the steps outlined in
73+
[{{cookiecutter.project_name}}/next_steps.md]({{cookiecutter.project_name}}/next_steps.md).
74+
7275
### Step 3/3: Read about what was just generated
7376

7477
Good job! You have now generated the skeleton for your package:

hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
print("\nProject was successfully generated. For next steps, refer to file {{ cookiecutter.project_name }}/project_setup.md.\n")
1+
print("\nProject was successfully generated. For next steps, refer to file {{ cookiecutter.project_name }}/next_steps.md.\n")
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Next steps
2+
3+
## Put the generated files under version control
4+
5+
Once your Python package is created, put it under [version
6+
control](https://guide.esciencecenter.nl/#/best_practices/version_control) using
7+
[git](https://git-scm.com/) and [GitHub](https://github.com/).
8+
9+
```shell
10+
cd {{ cookiecutter.project_name }}
11+
git init
12+
git add --all
13+
git commit -m "first commit"
14+
git branch -M main
15+
git remote add origin {{ cookiecutter.repository }}
16+
```
17+
18+
## Push the initial commit to a new repo on GitHub
19+
20+
Go to
21+
[https://github.com/{{cookiecutter.github_organization}}/repositories/new](https://github.com/{{cookiecutter.github_organization}}/repositories/new)
22+
and create a new repository named `{{ cookiecutter.project_name }}` as an empty repository, then push your commits to GitHub:
23+
24+
```shell
25+
git push --set-upstream origin main
26+
```
27+
28+
## Check automatically generated issues
29+
30+
The first time you push to GitHub, a few issues outlining next steps will as soon as possible be added automatically
31+
([here]({{cookiecutter.repository}}/issues?q=author%3Aapp%2Fgithub-actions)). Resolve them to complete the setup of your
32+
repository.
33+
34+
## Project layout explained
35+
36+
For an explanation of what files are there, and what each of these do, please refer to [project_setup.md](project_setup.md).

{{cookiecutter.project_name}}/project_setup.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,6 @@ text when the development of the software package takes off.
77
For a quick reference on software development, we refer to [the software guide
88
checklist](https://guide.esciencecenter.nl/#/best_practices/checklist).
99

10-
## Version control
11-
12-
Once your Python package is created, put it under [version
13-
control](https://guide.esciencecenter.nl/#/best_practices/version_control)! We recommend using
14-
[git](http://git-scm.com/) and [github](https://github.com/).
15-
16-
```shell
17-
cd {{ cookiecutter.project_name }}
18-
git init
19-
git add --all
20-
git commit -m "first commit"
21-
git branch -M main
22-
git remote add origin {{ cookiecutter.repository }}
23-
```
24-
25-
Go to
26-
[https://github.com/{{cookiecutter.github_organization}}?tab=repositories](https://github.com/{{cookiecutter.github_organization}}?tab=repositories)
27-
and create a new repository named {{ cookiecutter.project_name }} as an empty repository, then:
28-
29-
```shell
30-
git push --set-upstream origin main
31-
```
32-
3310
## Python versions
3411

3512
This repository is set up with Python versions:

0 commit comments

Comments
 (0)