- Install required tools:
- Ensure that Python is installed on your system.
- Install Git, and create a GitHub account if you haven't already.
- Install Miniconda on your system (refer to the installation guide here).
- Set up a
git
repository and virtual environment:- Open your terminal and create a conda environment named
devtools_scicomp
with Python 3.9 by running:conda create --name devtools_scicomp python=3.9
- Install essential packages by running:
Note: Always install packages inside the conda environment using
python -m pip install pytest
python -m pip
, which ensures that you're using the Python interpreter andpip
package manager within the environment. - Open GitHub in your web browser and follow these steps:
- Create a new empty repository titled
devtools_scicomp_project_2025
, and select a specific license and the Python.gitignore
file. - Open your terminal or command prompt, clone the repository, create a
README.md
file, and push your changes to the origin with the commit messagefirst commit
.
- Create a new empty repository titled
- Open your terminal and create a conda environment named
A small note on pushing:
- Add your changes using:
git add [FILES]
- Commit your changes with:
git commit -m "[COMMIT MESSAGE]"
- Push your commits with:
git push origin HEAD:main
- Inside your cloned GitHub repository, create the following directories:
src/pyclassify/
,scripts
,test
,shell
, andexperiments
. - Inside the
src/pyclassify/
directory, create an__init__.py
andutils.py
file. - Inside the
scripts/
directory, create arun.py
file. - Inside the
shell/
directory, create asubmit.sbatch
and asubmit.sh
file. - Inside the
experiments/
directory, create aconfig.yaml
file. - Inside the
test/
directory, create atest_.py
file. - Generate a
requirements.txt
file from thedevtools_scicomp
conda environment by running:Add thepython -m pip freeze > requirements.txt
requirements.txt
file to the root of your project folder (devtools_scicomp_project_2025/
).
- Create a
pyproject.toml
file for your project from this template, and complete the[INSERT]
placeholders. - Add in the
.gitignore
file the removal of.dat
and.data
files. - Add, commit, and push these changes to the origin repository with the commit message
structuring the package
.
The repository with the right structure and commits is available here: GitHub repo