Creating a new project¶
Choose a project name¶
Select a name for your project that meets the
Python package naming criteria. This name will be used for
pip install if you choose to publish your project on PyPI.
Tip
If you plan to publish your project on PyPI, ensure:
- You have an active PyPI account
- Your desired package name is available!
Create a GitHub repository¶
Create a repository on GitHub for your new project. Set Repository name to your chosen project name.
Generate new project from template¶
-
In the directory where the new project should be created, run Copier:
copier copy "gh:smkent/copier-python" ./project_nameCopier will prompt for project information. Answer the prompts to configure your project. When complete, Copier will create your new project in
./project_name. -
Change to the new project directory:
cd ./project_name
Initialize the project¶
To complete project initialization, run:
poe init
This will:
- Create the local git repository
- Install dependencies and git hooks (same as
poe setup) - Create an initial commit with the newly created project contents
- Add your GitHub repository as the
originremote (whenproject_visibility: public)
Push repository to GitHub¶
Push your new project to your GitHub repository:
git push -u origin main
Your project's contents should now be visible on GitHub!