# HOW TO USE THE PACKAGES
The packages repository contains all the helper files which are build for projects of Salure.
Sometimes, code in a project could be useful for other projects and will be added to the packages repository.
This readme describes the folder structure, the several packages and how to add new packages.
The docs section contains a detailed description per package.
## Directory structure
The directory structure in the packages is as follows:
- The datasets directory contains some usefull datasets like countries with iso code, currencies, etc.;
- The docs contain detailed documentation about server management, the packages itself, etc.;
- The salure_helpers folder contains the packages itself. The subdirectory connectors can be used for connectors between Profit and another system. The packages in the root of `/src` are usefull for a variety of tasks;
## How to create an updated pip package
https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi
## How to ship changes locally for testing purposes
When you want to test changes you have made locally before releasing a new version, run install_locally.sh (make sure you have changed the setup number already).
Input the customer name in the command prompt that will open and the package will be placed in the customer directory.
Then rebuild your dockerfile, which should include the following lines below the `pip install requirements` part but above the `copy . /app` part:.
```
COPY ["salure_helpers*", "."]
RUN pip3 install salure_helpers --find-links . salure_helpers --upgrade
```
This will install the version locally in your customer docker container so you can test it first before releasing.
## How to ship changes
When you commit a change, take the following in mind. The versioning we use is called semantic versioning. More information can be found on https://semver.org/
Given a version number MAJOR.MINOR.PATCH, increment the:
```
1. MAJOR version when you make incompatible API changes,
2. MINOR version when you add functionality in a backwards-compatible manner, and
3. PATCH version when you make backwards-compatible bug fixes.
```
1. A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative integers, and MUST NOT contain leading zeroes. X is the major version, Y is the minor version, and Z is the patch version. Each element MUST increase numerically. For instance: 1.9.0 -> 1.10.0 -> 1.11.0.
1. Patch version Z (x.y.Z | x > 0) MUST be incremented if only backwards compatible bug fixes are introduced. A bug fix is defined as an internal change that fixes incorrect behavior.
1. Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards compatible functionality is introduced to the public API. It MUST be incremented if any public API functionality is marked as deprecated. It MAY be incremented if substantial new functionality or improvements are introduced within the private code. It MAY include patch level changes. *Patch version MUST be reset to 0 when minor version is incremented*.
1. Major version X (X.y.z | X > 0) MUST be incremented if any backwards incompatible changes are introduced to the public API. It MAY include minor and patch level changes. *Patch and minor version MUST be reset to 0 when major version is incremented.*
## Create a new release (for legacy versions)
When we create a new release, we need to create a seperate branch for the current release. Then it's easy to update old releases with bugs etc. Do the following
* Create a new branche with as type 'release' and the number of the major version. For example, if you create version 9, before you do that, create a branch named release/8
* Rename in the the file `bitbucket-pipelines.yml` on line 10 `master` into the release name, for example `release/8`
## Changelog
See commit history
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共37个文件
py:24个
txt:4个
csv:2个
资源分类:Python库 所属语言:Python 资源全名:salure_helpers-15.6.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
salure_helpers-15.6.0.tar.gz (37个子文件)
salure_helpers-15.6.0
MANIFEST.in 123B
PKG-INFO 276B
setup.cfg 38B
setup.py 858B
README.md 4KB
salure_helpers
active_directory.py 5KB
salure_functions.py 26KB
ftp.py 10KB
templates
mail_salureconnect.html 27KB
logger.py 620B
mysql.py 7KB
planning_nl.py 10KB
somtoday.py 7KB
elastic.py 11KB
task_scheduler.py 37KB
profit.py 106KB
zermelo.py 27KB
__init__.py 963B
salureconnect.py 3KB
datev.py 24KB
vospiegel.py 11KB
pgp_encryption.py 3KB
clickhouse.py 5KB
sqlite.py 4KB
sharepoint.py 8KB
mail_client.py 4KB
datasets
country_isocodes.csv 3KB
languages_isocodes.csv 3KB
helpers
__init__.py 0B
profit_extract_async.py 7KB
salesforce.py 4KB
salure_helpers.egg-info
PKG-INFO 276B
requires.txt 237B
not-zip-safe 1B
SOURCES.txt 1KB
top_level.txt 15B
dependency_links.txt 1B
共 37 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 一款超级实用的app,绝对的
- 最远的你是我最近的爱(无和声3D版)_Faith.m4a
- 基于python的气象数据处理
- Python基于大数据的学习视频数据分析与个性化推荐系统+源代码+文档说明.zip
- 光伏电池异常检测数据集VOC+YOLO格式219张2类别-2.zip
- Python基于大数据的学习视频数据分析与个性化推荐系统源码+文档说明(高分项目).zip
- ray-3.0.0.dev0-cp39-cp39-win-amd64.zip
- Dependencies(动态库依赖检测)
- 光伏电池异常检测数据集2000张带分类标签文件csv.zip
- 光伏电池异常分类数据集2000张带分类文件信息csv.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功