Shared Python utilities from Degel Software Ltd.
To get started with degel-python-utils on a new machine, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/degel-python-utils.git cd degel-python-utils -
Install dependencies:
Make sure you have
pipenvinstalled. If not, install it usingpip:pip install pipenv
Then, install the project dependencies and pre-commit hooks:
make install
To use degel-python-utils in other projects, you need to install it via PyPI:
-
Install the library:
Add
degel-python-utilsto yourPipfileor install it directly usingpipenv:pipenv install degel-python-utils
-
Import and use:
You can now import and use the utility functions provided by
degel-python-utilsin your project:from degel_python_utils import some_function some_function()
If you want to contribute to the development of degel-python-utils or make local
modifications, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/degel-python-utils.git cd degel-python-utils -
Install dependencies and pre-commit hooks:
make install
-
Run tests:
Ensure all tests pass before making changes:
make test -
Make your changes:
Edit the code as needed. Ensure that your code follows the project's coding standards.
-
Lint and test:
Before committing your changes, run linting and tests:
make lint make test -
Commit and push:
Commit your changes and push to your fork or branch:
git add . git commit -m "Describe your changes" git push origin your-branch
To distribute a new version of degel-python-utils, follow these steps:
-
Update version:
Update the version number in
setup.cfg. -
Build the package:
Use
buildto create the distribution package:make build
-
Upload to PyPI:
Upload the package to PyPI using
twine:make publish
-
Tag the release:
Tag the new release in your git repository:
git tag vX.Y.Z git push origin vX.Y.Z
By following these instructions, you can effectively use, develop, and distribute the
degel-python-utils library. If you encounter any issues or have questions, feel free
to open an issue on the GitHub repository.
This project is licensed under the MIT License.
Copyright © 2024, Degel Software Ltd.