Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mbtrack2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PA
Collective Effects
mbtrack2
Wiki
How to prepare the code for a release
Changes
Page history
New page
Templates
Clone repository
Update How to prepare the code for a release
authored
1 year ago
by
Alexis GAMELIN
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
How-to-prepare-the-code-for-a-release.md
+7
-6
7 additions, 6 deletions
How-to-prepare-the-code-for-a-release.md
with
7 additions
and
6 deletions
How-to-prepare-the-code-for-a-release.md
View page @
0b38c7c1
...
...
@@ -5,18 +5,19 @@ Here is the checklist to run before releasing a new version for mbtrack2:
3.
Run the isort formatter:
`isort .`
4.
Run the yapf formatter:
`yapf -ir mbtrack2`
5.
Update the pyproject.toml file with version number, new dependencies and so on.
6.
Run poetry:
6.
Update README.md
7.
Run poetry:
*
`poetry env use python`
*
`poetry install`
*
`poetry install`
*
Check that the tests run without errors:
`poetry run pytest`
*
`poetry build`
*
Test build on test pypi:
*
`poetry config repositories.test-pypi https://test.pypi.org/legacy/`
*
`poetry config http-basic.test-pypi <username> <password>`
*
`poetry publish -r test-pypi`
*
`poetry publish test-pypi`
*
Install in a clean virtual environment (e.g. google colab) to check that it is ok using:
*
`pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple mbtrack2`
*
Install in a clean virtual environment (e.g. google colab) to check that it is ok.
7.
Merge to stable with a new tag and changelog.
8.
Publish on pypi:
8.
Merge to stable with a new tag and changelog.
9.
Publish on pypi:
*
`poetry config http-basic.pypi <username> <password>`
*
`poetry publish`
\ No newline at end of file
This diff is collapsed.
Click to expand it.