Skip to main content

Core modules of PyTorch-IE

Project description

pie-core

Huggingface Hub Lightning PyTorch-IE

PyPI Tests Codecov pre-commit Black

This contains the core modules of PyTorch-IE.

Setup

pip install pie-core

To install the latest version from GitHub:

pip install git+https://git@github.com/ArneBinder/pie-core.git

Development

Setup

  1. This project is build with Poetry. See here for installation instructions.
  2. Get the code and switch into the project directory:
    git clone https://github.com/ArneBinder/pie-core
    cd pie-core
    
  3. Create a virtual environment and install the dependencies:
    poetry install
    

Finally, to run any of the below commands, you need to activate the virtual environment:

poetry shell

Note: You can also run commands in the virtual environment without activating it first: poetry run <command>.

Code Formatting, Linting and Static Type Checking

pre-commit run -a

Testing

run all tests with coverage:

pytest --cov --cov-report term-missing

Releasing

  1. Create the release branch: git switch --create release main
  2. Increase the version: poetry version <PATCH|MINOR|MAJOR>, e.g. poetry version patch for a patch release. If the release contains new features, or breaking changes, bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump the patch version. See Semantic Versioning for more information.
  3. Commit the changes: git commit --message="release <NEW VERSION>" pyproject.toml, e.g. git commit --message="release 0.13.0" pyproject.toml
  4. Push the changes to GitHub: git push origin release
  5. Create a PR for that release branch on GitHub.
  6. Wait until checks passed successfully.
  7. Merge the PR into the main branch. This triggers the GitHub Action that creates all relevant release artefacts and also uploads them to PyPI.
  8. Cleanup: Delete the release branch. This is important, because otherwise the next release will fail.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pie_core-0.1.2.tar.gz (32.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pie_core-0.1.2-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file pie_core-0.1.2.tar.gz.

File metadata

  • Download URL: pie_core-0.1.2.tar.gz
  • Upload date:
  • Size: 32.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.10

File hashes

Hashes for pie_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 08c883a2e7618f0bfdeaa428a51a95753cbf3a9b12eb5cca1ab3263d98177303
MD5 81a783718f9e46074c28014daf5ed48c
BLAKE2b-256 a97a238e6c4590bfeb56a2b7c0ec825e2d53eb16cc3d38c0e2f58669a598d87f

See more details on using hashes here.

File details

Details for the file pie_core-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pie_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.10

File hashes

Hashes for pie_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2118e7e0d7002182e3c071e7806eece73ce7d68789cf6a0b8a3a718cf3eb910d
MD5 8f5315ed7cf054ac5e152f884536eead
BLAKE2b-256 449a56863138afb8879f995d9611c633a5c6ea7aa65ff9a96227a0d5f54467b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page