Skip to content

timvieira/arsenal

Repository files navigation

Arsenal

The arsenal is an assortment of python utilities that I can't live without.

Setup

  1. Create and activate a virtual environment:
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install the package and development dependencies:
    git clone https://github.com/timvieira/arsenal.git
    cd arsenal
    pip install -e .

Alternatively, use pip to install from GitHub:

    pip install git+https://github.com/timvieira/arsenal.git

Development Tasks

The Makefile provides several useful commands:

    make cython      # Build Cython extensions
    make doc         # Generate documentation using Sphinx
    make test        # Run all tests
    make coverage    # Generate test coverage report
    make clean       # Clean build artifacts and documentation

Building and Publishing

  1. Install build tools:
    pip install build twine
  1. Clean old distributions:
    rm -rf dist/ build/ *.egg-info
  1. Create distribution packages:
    make cython
    python -m build
  1. Check the distributions:
    twine check dist/*
  1. Upload to Test PyPI first:
    twine upload --repository testpypi dist/*
  1. If everything looks good, upload to PyPI:
    twine upload dist/*

Note: You'll need a PyPI account and API token. Store your credentials in ~/.pypirc or enter them when prompted.

Documentation

Read the Docs

Running Tests

To run the test suite:

    python -m unittest discover arsenal/tests

You can also run specific test files:

    python -m unittest arsenal/tests/test_specific.py

About

Arsenal of python utilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published