You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The versioning format for `mssql-cli` uses the following naming scheme:
45
46
46
47
Versioning schema: {major}.{minor}.{patch}
@@ -56,20 +57,20 @@ Check-in changes after running `bumpversion` and **validating the build output f
56
57
**Note**: bumpversion does not allow version bumping if your workspace has pending changes. This is to protect against any manual updates that may have been made which can lead to inconsistent versions across files. If you know what you are doing you can override this by appending `--allow-dirty` to the bumpversion command.
57
58
58
59
59
-
# Generating Release Files
60
+
## Generating Release Files
60
61
The steps below outline how to create wheel and source distribution files to publish to Azure Storage, and eventually PyPI for official release.
61
62
62
-
## Daily Release Configuration
63
+
### Daily Release Configuration
63
64
Release files are generated for daily release by default, as long as the `MSSQL_CLI_OFFICIAL_BUILD` environment variable is **not** set to `True`.
64
65
65
-
## Official Release Configuration
66
+
### Official Release Configuration
66
67
The `MSSQL_CLI_OFFICIAL_BUILD` enviornment variable must be set to `True` before build files are created. Although this step can be completed locally, we recommend running production pipelines in Azure DevOps with the enviornment variable set for each run.
67
68
68
69
If configured locally, instructions per OS are as follows:
To build a release package with wheel and source distribution files for the current platform, run:
74
75
```
75
76
python build.py build
@@ -78,19 +79,19 @@ Distribution files will be generated in `./dist/`. These files are eventually pu
78
79
79
80
**Note:** source distribution files will only get created on macOS. This platform was arbitrarily chosen to prevent redundant copies of source distributions when `build` is run on each platform in Azure DevOps.
80
81
81
-
# Publishing Release Files
82
+
## Publishing Release Files
82
83
The following instructions outline how to publish release files once generated n the `./dist/` folder.
83
84
84
-
## Publishing Daily Builds to Azure Storage
85
+
### Publishing Daily Builds to Azure Storage
85
86
Publish build to daily storage account by calling:
86
87
```
87
88
python release.py publish_daily
88
89
```
89
90
90
-
## Publishing Official Builds
91
+
### Publishing Official Builds
91
92
The steps below outline how to build official builds and publish to PyPI.
92
93
93
-
### Configuration with PyPI
94
+
#### Configuration with PyPI
94
95
A `.pypirc` configuration file must be created in order to publish to PyPI. Place in the following user directories.
95
96
96
97
Examples for each OS:
@@ -115,7 +116,7 @@ username: sqlcli
115
116
password: <GetPasswordfromAzureKeyVault>
116
117
```
117
118
118
-
### Test Publishing with TestPyPI
119
+
#### Test Publishing with TestPyPI
119
120
120
121
[TestPyPi](https://test.pypi.org) can be used to test distribution before going to production. To test publishing to TestPyPI, use the above `.pypirc` file and call:
[Click here](https://packaging.python.org/guides/using-testpypi/) to view TestPyPI docs.
126
127
127
-
### Publishing Official Release Files to PyPI
128
+
#### Publishing Official Release Files to PyPI
128
129
**Important: ensure that the build is uploaded from macOS.**
129
130
130
131
Follow the instructions below to publish a new release to PyPI after official release build files have been published to Azure Storage:
@@ -139,7 +140,10 @@ Follow the instructions below to publish a new release to PyPI after official re
139
140
python release.py publish_official
140
141
```
141
142
142
-
# Installing Specific Release Files from Azure Storage
143
+
## Update Links in Installation Readme
144
+
Once a new official version has been published, please update the links in the [installation readme](https://github.com/dbcli/mssql-cli/tree/master/doc/installation).
145
+
146
+
## Installing Specific Release Files from Azure Storage
143
147
To test the installation a wheel or source distribution, execute the following from `<clone_root>`, replacing values for `<version>` and `<timestamp>`:
0 commit comments