Skip to main content

Building scripts for PyTorch-IE Datasets

Project description

pie-datasets

PyTorch Lightning PyTorch-IE

PyPI Tests Codecov pre-commit Black

Building Scripts for PyTorch-IE Datasets, also see here.

Setup

pip install pie-datasets

To install the latest version from GitHub:

pip install git+https://git@github.com/ArneBinder/pie-datasets.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-datasets
    cd pie-datasets
    
  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_datasets-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pie_datasets-0.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pie_datasets-0.0.3.tar.gz.

File metadata

  • Download URL: pie_datasets-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pie_datasets-0.0.3.tar.gz
Algorithm Hash digest
SHA256 49c6f60ea90fcb6374f6c121f873af95c010ccbff59d5ffb88d841e30a9425ac
MD5 64a44ee377eb42a8b40dd7e2aaa769e5
BLAKE2b-256 05d5d96d040aa86f93a8eabb9391b1d311b8d4cdd4e6dd0b536a0f4765eb5350

See more details on using hashes here.

File details

Details for the file pie_datasets-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pie_datasets-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b007f9a5fec65d319b6a5c70ed908ca2d591a238ff48d879a176d1efc6d9279
MD5 56cadebb5d0728e8667559d09de0268f
BLAKE2b-256 b2f689a02568d02fe043a8f161f4f3cb7a31bfcfa7353f075382967bf943c9ca

See more details on using hashes here.

Supported by

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