|
| 1 | +Development |
| 2 | +=========== |
| 3 | + |
| 4 | +Contributing to sbmlmath |
| 5 | +------------------------ |
| 6 | + |
| 7 | +We welcome contributions from the community. |
| 8 | +If you're interested in contributing to the project, please follow these steps: |
| 9 | + |
| 10 | +1. Fork the repository on GitHub. |
| 11 | +2. Create a new branch for your feature or bug fix. |
| 12 | +3. Make your changes and commit them with clear messages. |
| 13 | +4. Push your changes to your forked repository. |
| 14 | +5. Open a pull request against the main repository. |
| 15 | + |
| 16 | +Before submitting a pull request, please ensure that your code adheres to the |
| 17 | +project's coding standards and includes appropriate tests. |
| 18 | + |
| 19 | + |
| 20 | +Development setup |
| 21 | +----------------- |
| 22 | + |
| 23 | +We use `pre-commit <https://pre-commit.com/>`_ to run linters and formatters on |
| 24 | +the codebase. To enable pre-commit hooks in your development environment, run: |
| 25 | + |
| 26 | +.. code-block:: bash |
| 27 | +
|
| 28 | + pip install pre-commit |
| 29 | + pre-commit install |
| 30 | +
|
| 31 | +
|
| 32 | +Running tests |
| 33 | +------------- |
| 34 | + |
| 35 | +We use `pytest <https://docs.pytest.org/en/stable/>`_ for testing. |
| 36 | + |
| 37 | +To run the test suite, execute the following command in the project root |
| 38 | +directory: |
| 39 | + |
| 40 | +.. code-block:: bash |
| 41 | +
|
| 42 | + pytest |
| 43 | +
|
| 44 | +Release process |
| 45 | +--------------- |
| 46 | + |
| 47 | +Releases are managed via GitHub releases. |
| 48 | + |
| 49 | +To create a new release: |
| 50 | + |
| 51 | +1. Go to the "Releases" section of the GitHub repository. |
| 52 | +2. Click on "Draft a new release". |
| 53 | +3. Fill in the tag version, release title, and description. |
| 54 | + |
| 55 | + Version & tag: We follow `Semantic Versioning <https://semver.org/>`_. |
| 56 | + The tag should be in the format ``vX.Y.Z`` (e.g., ``v1.0.0``). |
| 57 | + The release title is ``sbmlmath vX.Y.Z``. |
| 58 | + The package version will be automatically inferred from the tag |
| 59 | + via `setuptools_scm <https://setuptools-scm.readthedocs.io/en/latest/>`__. |
| 60 | + |
| 61 | + Description: Include a summary of changes, new features, bug fixes, |
| 62 | + and any other relevant information. |
| 63 | + |
| 64 | +4. Publish the release. |
| 65 | + |
| 66 | + A GitHub Action workflow will automatically build and upload the package to |
| 67 | + PyPI. Ensure that the action completes successfully. |
0 commit comments