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.2.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jolieprinter-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e9c93a7427c471b84813e998a08fd00c344a283f277ec273360f069f402c24ea
MD5 1378c8f38583bcba00b2b05947a3d4f2
BLAKE2b-256 026139996e2de56332c2cca4337560dc953d7d1fb5081e393dd4e51dcc14d90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jolieprinter-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bede021cda771380295ff5630b3163ed4a9f27749e68a9fa3ce142a3d2cdeb74
MD5 dd3983c7d33880de95ad27a91936863e
BLAKE2b-256 33f63862bbb714548c2f22e0ddb46a573ae6445e2c791ec5026f1ea95b6bf4de

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