|
1 | 1 | # Netherlands eScience Center Python Template |
2 | 2 |
|
3 | | -Spend less time setting up and configuring your new Python packages and comply with the [Netherlands eScience Center Software Development Guide](https://guide.esciencecenter.nl/) from the start. |
| 3 | +Spend less time setting up and configuring your new Python packages which includes research software good practices from the start. |
4 | 4 |
|
5 | 5 | Use this [Copier](https://copier.readthedocs.io) template to generate an empty Python package. Features include: |
6 | 6 |
|
@@ -64,95 +64,17 @@ pipx install copier |
64 | 64 |
|
65 | 65 | ### Scenario 1: Create a new package |
66 | 66 |
|
67 | | - |
68 | | -#### Step 1/2: Create the files and directory structure |
69 | | - |
70 | 67 | Run `copier copy` with the template: |
71 | 68 |
|
72 | 69 | ```shell |
73 | | -# Notes: |
74 | | -# 1. Make sure that `path/to/destination` is an empty directory |
75 | | -# 2. See table below for explanation of each question |
76 | | -# 3. The files will be generated in the specified destination directory |
77 | 70 | copier copy https://github.com/nlesc/python-template.git path/to/destination |
78 | 71 | ``` |
79 | 72 |
|
80 | | -| Name | Default value | Explanation | |
81 | | -| ------------------------- | ------------- | ----------- | |
82 | | -| package_name | my_python_package | Name of the package. Avoid using spaces, dashes, or uppercase letters for the best experience across operating systems. This also will be used as the github repository name.| |
83 | | -| package_short_description | Short description of package | The information that you enter here will end up in the README, documentation, license, and pyproject.toml, so it may be a good idea to prepare something in advance. | |
84 | | -| keyword1 | keyword1 | A term that describes your package. | |
85 | | -| keyword2 | keyword2 | Another term that describes your package. | |
86 | | -| version | 0.1.0 | | |
87 | | -| github_organization | <my-github-organization> | GitHub organization that will contain this project's repository. This can also be your GitHub user name. | |
88 | | -| license | Apache Software License 2.0 | The software license under which the code is made available. | |
89 | | -| full_name | Jane Smith | Your full name, e.g. _Jane Smith_. | |
90 | | -| email | yourname@esciencecenter.nl | Your (work) email address. | |
91 | | -| copyright_holder | Netherlands eScience Center | Name(s) of the organization(s) or person(s) who hold the copyright of the software. | |
92 | | -| code_of_conduct_email | yourname@esciencecenter.nl | Email address of the person who should be contacted in case of violations of the Code of Conduct. | |
93 | | - |
94 | | -Once the project files have been generated, follow the steps outlined in |
95 | | -[next_steps.md](template/next_steps.md.jinja). |
96 | | - |
97 | | -#### Step 2/2: Read about what was just generated |
98 | | - |
99 | | -Good job! You have now generated the skeleton for your package: |
100 | | - |
101 | | -```text |
102 | | -. |
103 | | -├── CHANGELOG.md |
104 | | -├── CITATION.cff |
105 | | -├── CODE_OF_CONDUCT.md |
106 | | -├── CONTRIBUTING.md |
107 | | -├── .copier-answers.yml |
108 | | -├── docs |
109 | | -│ ├── conf.py |
110 | | -│ ├── index.rst |
111 | | -│ ├── make.bat |
112 | | -│ ├── Makefile |
113 | | -│ └── _templates |
114 | | -│ └── .gitignore |
115 | | -├── .editorconfig |
116 | | -├── .githooks |
117 | | -│ └── pre-commit |
118 | | -├── .github |
119 | | -│ ├── next_steps |
120 | | -│ │ ├── 01_sonarcloud_integration.md |
121 | | -│ │ ├── 02_citation.md |
122 | | -│ │ ├── 03_readthedocs.md |
123 | | -│ │ ├── 04_zenodo_integration.md |
124 | | -│ │ └── 05_linting.md |
125 | | -│ └── workflows |
126 | | -│ ├── build.yml |
127 | | -│ ├── cffconvert.yml |
128 | | -│ ├── documentation.yml |
129 | | -│ ├── markdown-link-check.yml |
130 | | -│ ├── next_steps.yml |
131 | | -│ └── sonarcloud.yml |
132 | | -├── .gitignore |
133 | | -├── MANIFEST.in |
134 | | -├── .mlc-config.json |
135 | | -├── next_steps.md |
136 | | -├── NOTICE |
137 | | -├── project_setup.md |
138 | | -├── pyproject.toml |
139 | | -├── README.dev.md |
140 | | -├── README.md |
141 | | -├── .readthedocs.yaml |
142 | | -├── sonar-project.properties |
143 | | -├── src |
144 | | -│ └── my_python_package |
145 | | -│ ├── __init__.py |
146 | | -│ └── my_module.py |
147 | | -├── tests |
148 | | -│ ├── __init__.py |
149 | | -│ ├── test_my_module.py |
150 | | -│ ├── test_project.py |
151 | | -│ └── test_values.py |
152 | | -└── .zenodo.json |
153 | | -``` |
| 73 | +> [!NOTE] |
| 74 | +> 1. Make sure that `path/to/destination` is an empty directory |
| 75 | +> 1. Based on the profile and selected features, the package will be generated in the specified destination directory |
154 | 76 |
|
155 | | -For an explanation of what's there, read on in the [project_setup.md](template/project_setup.md.jinja) file. |
| 77 | +For an explanation of what's there, read on in the `project_setup.md` file. |
156 | 78 |
|
157 | 79 | ### Scenario 2: Apply to pre-existing code |
158 | 80 |
|
|
0 commit comments