Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
73 lines (47 loc) · 893 Bytes

File metadata and controls

73 lines (47 loc) · 893 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions

Development

install

Create, activate, deactivate a virtual environment:

python -m venv venv

.\venv\Scripts\activate

deactivate

Install dependencies:

pip install -r requirements.txt

To update requirements.txt, use https://azurda.github.io/

Test

python -m unittest -v

Format

ruff format

Publish

  1. Format the code:

    ruff format
    
  2. Update the version number in setup.py using semantic versioning.

  3. Run the unit tests and check whether all tests pass:

    python -m unittest
    
  4. Commit and push the changes to GitHub.

  5. Add a version tag:

    git tag v1.2.3
    git push --tag
    
  6. Clear the dist folder

  7. Build the library:

    python -m build
    
  8. Publish on PyPi:

    twine check dist/*
    twine upload dist/*
    
Morty Proxy This is a proxified and sanitized view of the page, visit original site.