Repository URL to install this package:
Version:
0.4.202 ▾
|
lib_py_b2b.egg-info |
lib_b2b |
PKG-INFO |
MANIFEST.in |
README.md |
setup.py |
setup.cfg |
#lib_py_b2b This is a python library that encapsulates the majority of the business logic for the EMIS system. By putting this logic in a single application, we are able to reuse logic in various parts of the system and simplify testing.
This library requires Python 3.7+, Pip, Python VirtualEnv, and the AWS CLI toolchain. Please see the Confluence documentation for configuring your environment:
Increment the library's version number in setup.py. Please try to live into semantic versioning.
This deployment step is necessary for other applications to use this library. Run:
python setup.py sdist upload -r fury; python setup.py bdist_wheel upload -r fury
Commit your changes to the git repository, tag it with the same version as is in setup.py, and push to the remote repository
git add . ; git commit -am 'a commit message'; git tag -f -a v0.3.124 -m 'A tag message'; awsprofile bmcecommerce; git push -f --tags ; awsprofile default
Make sure you update your applications to depend on this new version.
From the same path as setup.py, run:
pip install -e .[dev]
This installs the package requirements from setup.py -> install_requires as well as the test requirements from setup.py -> extras_require -> dev.
You will need to be given an account by Barnhardt's GemFury administrator. Once you have a login, follow these steps to configure your ~/.pypirc file: https://gemfury.com/help/pypi-server.
Note: you only need the .pypirc file for publishing. See below for usage of the library.
Simply add an --extra-index-url parameter to the top of your requirements.txt file. For example:
--extra-index-url https://**************@pypi.fury.io/bmc
cx_Oracle
lib_py_b2b>=0.4.182
py_aws_util>=0.2.20
aws_xray_sdk
python-dateutil>=2.7.3
Automated testing is in place, sort of. Some of the tests cannot be run in an automated fashion. We need to figure out a good mocking strategy to be able to fully automate the testing and use it as part of the CICD pipeline.