Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increment version for template releases #13390

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eng/pipelines/templates/stages/archetype-python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,17 @@ stages:
New-Item -Type Directory -Name ${{artifact.safeName}} -Path $(Pipeline.Workspace)
$underscorePrefix = "${{artifact.name}}"
$dashPrefix = "${{artifact.name}}".Replace("_", "-")
Copy-Item $(Pipeline.Workspace)/${{parameters.ArtifactName}}/$dashPrefix-[0-9]*.[0-9]*.[0-9]*.dev* $(Pipeline.Workspace)/${{artifact.safeName}}
Copy-Item $(Pipeline.Workspace)/${{parameters.ArtifactName}}/$underscorePrefix-[0-9]*.[0-9]*.[0-9]*.dev* $(Pipeline.Workspace)/${{artifact.safeName}}
Copy-Item $(Pipeline.Workspace)/${{parameters.ArtifactName}}/$dashPrefix-[0-9]*.[0-9]*.[0-9]*.a* $(Pipeline.Workspace)/${{artifact.safeName}}
Copy-Item $(Pipeline.Workspace)/${{parameters.ArtifactName}}/$underscorePrefix-[0-9]*.[0-9]*.[0-9]*.a* $(Pipeline.Workspace)/${{artifact.safeName}}
Get-ChildItem $(Pipeline.Workspace)/${{artifact.safeName}}
$fileCount = (Get-ChildItem $(Pipeline.Workspace)/${{artifact.safeName}} | Measure-Object).Count
Write-Output "##vso[task.setvariable variable=FilesToUploadCount]$fileCount"

- script: |
set -e
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.whl
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.a*.whl
echo "Uploaded whl to devops feed"
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.dev*.zip
twine upload --repository $(DevFeedName) --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/${{artifact.safeName}}/*.a*.zip
echo "Uploaded sdist to devops feed"
displayName: 'Publish package to feed: $(DevFeedName)'
condition: gt(variables['FilesToUploadCount'], 0)
2 changes: 1 addition & 1 deletion eng/versioning/version_set_dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def format_build_id(build_id):
def get_dev_version(current_version, build_id):
parsed_version = parse(current_version)
#release = parsed_version.release
return "{0}.dev{1}".format(parsed_version, build_id)
return "{0}a{1}".format(parsed_version, build_id)

def is_in_service(sdk_path, setup_py_location, service_name):
sdk_prefix = path.normpath(sdk_path)
Expand Down
6 changes: 6 additions & 0 deletions sdk/template/azure-template/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.0.13b2 (Unreleased)


## 0.0.13b1 (2020-08-27)
- Testing out some alpha and beta versioning

## 0.0.12 (Unreleased)
- Test a successful Release

Expand Down
2 changes: 1 addition & 1 deletion sdk/template/azure-template/azure/template/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# matches SEMVER
VERSION = "0.0.12"
VERSION = "0.0.13b2"
2 changes: 1 addition & 1 deletion sdk/template/azure-template/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
license='MIT License',
# ensure that the development status reflects the status of your package
classifiers=[
'Development Status :: 3 - Alpha',
"Development Status :: 4 - Beta",

'Programming Language :: Python',
'Programming Language :: Python :: 2',
Expand Down