Skip to content

Commit

Permalink
Add instructions on proper versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Sep 21, 2023
1 parent e2d4948 commit 09bb7ac
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing to xocto

Please read our [development instructions](https://xocto.readthedocs.io/en/latest/xocto/development.html).
18 changes: 16 additions & 2 deletions docs/xocto/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,27 @@ docker run -v `pwd`:/opt/app xocto/black

## Publishing

Release to PyPI by creating a pull request that:
Before you begin, determine the release number. This follows the instructions specifiwed on [semver.org](https://semver.org/). Releases therefore use this pattern:

```
MAJOR.MINOR.PATCH
```

Where:

- MAJOR version when you make incompatible API changes
- MINOR version when you add functionality in a backward compatible manner
- PATCH version when you make backward compatible bug fixes

### Release to PyPI

Create a pull request that:

1. Adds release notes to `CHANGELOG.md`.

2. Updates the `VERSION` constant in `setup.py`.

3. Updates the `__version__` constant in `xocto/__init__.py`.
3. Updates the `__version__` constant in `xocto/__init__.py`, following the [semver.org](https://semver.org/) specification.

Commit these changes in a single commit with subject matching
`Bump version to v...`.
Expand Down

0 comments on commit 09bb7ac

Please # to comment.