Thank you for your interest in contributing to srt-core
! This document outlines the process for testing the Config
class and publishing changes to PyPI.
To ensure the Config
class works correctly, follow these steps:
-
Set up your development environment:
git clone https://github.com/SolidRusT/srt-core.git cd srt-core python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt pip install -e .
-
Create a
config.yaml
file:Ensure you have a
config.yaml
file in the root of your project with the necessary configuration. -
Set the required environment variables:
export PERSONA='Default' export PORT=8650 export SERVER_NAME='0.0.0.0'
-
Run the tests:
We use
unittest
for testing. Ensure yourtests/test_config.py
file contains meaningful tests for theConfig
class.python -m unittest discover tests
To publish changes to PyPI, follow these steps:
-
Update version number:
Update the version number in
setup.py
to reflect the new version. -
Build the package:
Ensure you have the latest versions of
setuptools
andwheel
installed.python -m pip install --upgrade setuptools wheel python setup.py sdist bdist_wheel
-
Upload to PyPI:
Ensure you have
twine
installed.python -m pip install --upgrade twine twine upload dist/*
You will be prompted to enter your PyPI username and password.
- Branching: Use descriptive names for your branches, such as
feature/new-feature
orbugfix/issue-number
. - Pull Requests: Submit pull requests with clear descriptions of the changes and related issues.
- Code Style: Follow PEP 8 guidelines for Python code style.
We appreciate your contributions and efforts to improve srt-core
!
For any inquiries or support, please contact Suparious.