Skip to main content

No project description provided

Project description

poetry shell poetry install

poetry add pytest requests-mock --group test

python from jolieprinter.printer import prettyprint

add test files to tests/

poetry run python jolieprinter/printer.py

poetry run pytest -v

Sync Scripts

Testing

Run the tests using the following command:

pytest -v tests/test.py 
Test with pytest
> pytest tests
Test with nox
> nox --sessions tests

nox

list all sessions

nox --list

list all sessions by activating only lint

nox --list --sessions lint

Run a specific session called lint

nox --sessions lint

Run a specific session called formatter

nox --sessions formatter

Run a specific session called formatter

nox --sessions tests

Run all the sessions in current noxfile:

nox

Run a specific session ang generate a report:

nox --sessions tests --report nox-report.json

- nox -f api/noxfile.py --list
- nox -f api/noxfile.py -s formatter
- nox -f api/noxfile.py --list
- nox -f api/noxfile.py -s lint
-  nox -f api/noxfile.py -s tests --report nox-report.json

Publication

Poetry

Read more

poetry config -h
poetry config --list

Pypi publication

testpipy

poetry config repositories.testpypi https://test.pypi.org/legacy/ poetry config pypi-token.testpypi pypi-yt7yu poetry publish --build --repository testpypi

python3 -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ jolieprinter

pipy

poetry config repositories.pypi https://upload.pypi.org/legacy/ poetry config pypi-token.pypi pypi-fxMhRgf poetry publish --build --repository pypi

Installation

To install a PyPI package from the package registry, execute the following command:

pip install --index-url https://platform/packages/{owner}/pypi/simple/ cnaas-sync

Add a username and password if required:

pip install --index-url https://{username}:{password}@platform/packages/{owner}/pypi/simple/ cnaas-sync

Add the following extra index URL to download dependencies from the Python default package repository:

--extra-index-url https://pypi.org/simple

cnaas-sync-cli --config-file /opt/ni/cnaas_sync_config.ini -t nav

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

jolieprinter-0.1.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

jolieprinter-0.1.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file jolieprinter-0.1.1.tar.gz.

File metadata

  • Download URL: jolieprinter-0.1.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-45-generic

File hashes

Hashes for jolieprinter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7c413117ad0c59c2f4fb4ca8f66d8f80e8d01a53b61ecd19764d9c24c2fe8c72
MD5 e2a52b759d9332a809f34f5111edab26
BLAKE2b-256 130292962f522f00d2521521c75a92cf01aeea916d02d051454f6a0b50b68329

See more details on using hashes here.

File details

Details for the file jolieprinter-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jolieprinter-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.8.0-45-generic

File hashes

Hashes for jolieprinter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fee9591ab8923502eb4c52092d2a7a08a79a0e712fb0186339116e98a29e1708
MD5 bffd24106964270942654c038e72ae3a
BLAKE2b-256 3f1a7220a2cf41417161b569285fe66b1161e02f7968ebf232f2a8f548992373

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