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

feat(pacmak): prerelease identifier support #2146

Merged
merged 25 commits into from
Oct 28, 2020
Merged

Conversation

RomainMuller
Copy link
Contributor

When an NPM package built with jsii is tagged with a version that
includes a prerelease identifier (e.g: 1.2.3-alpha.1), automatically
represent this as a pre-release version in generated packages, too. For
most currently supported languages, this simply means forwarding the
version untouched, however for Python, prerelease identifiers need to
be mapped into one of the supported tokens in PyPI (.dev#, .a#,
.b# or .rc#).

Fixes #2114


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

When an NPM package built with `jsii` is tagged with a version that
includes a prerelease identifier (e.g: `1.2.3-alpha.1`), automatically
represent this as a pre-release version in generated packages, too. For
most currently supported languages, this simply means forwarding the
version untouched, however for Python, prerelease identifiers need to
be mapped into one of the supported tokens in PyPI (`.dev#`, `.a#`,
`.b#` or `.rc#`).

Fixes #2114
@RomainMuller RomainMuller added language/python Related to Python bindings effort/small Small work item – less than a day of effort module/pacmak Issues affecting the `jsii-pacmak` module contribution/core This is a PR that came from AWS. labels Oct 19, 2020
@RomainMuller RomainMuller self-assigned this Oct 19, 2020
packages/jsii-pacmak/lib/targets/version-utils.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/version-utils.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/version-utils.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/dotnet.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/version-utils.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/version-utils.ts Outdated Show resolved Hide resolved
@RomainMuller RomainMuller added this to the 🎃 October Release milestone Oct 27, 2020
@RomainMuller RomainMuller marked this pull request as ready for review October 27, 2020 11:50
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My main concern is about post releases.

Comment on lines +3 to +4
The configuration for `jsii` is recorded in the `package.json` file, which is the standard package manifest for NPM
packages. This document describes the constraints and extensions `jsii` adds to the [package.json schema].
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(for the future) prefer wholesale adjustments and refactors to be separate PRs, hence separate commits 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is auto-format-on-save... -_-

packages/jsii-pacmak/lib/targets/js.ts Outdated Show resolved Hide resolved
packages/jsii-pacmak/lib/targets/js.ts Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
docs/configuration.md Outdated Show resolved Hide resolved
@nija-at nija-at added the pr/do-not-merge This PR should not be merged at this time. label Oct 28, 2020
@nija-at nija-at removed the pr/do-not-merge This PR should not be merged at this time. label Oct 28, 2020
Base automatically changed from master to main October 28, 2020 16:31
@mergify
Copy link
Contributor

mergify bot commented Oct 28, 2020

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Oct 28, 2020
@RomainMuller RomainMuller merged commit 1338fc2 into main Oct 28, 2020
@RomainMuller RomainMuller deleted the rmuller/auto-preversions branch October 28, 2020 17:55
@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Oct 28, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-5lHf64IXfvmr
  • Commit ID: eef1e6b
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/small Small work item – less than a day of effort language/python Related to Python bindings module/pacmak Issues affecting the `jsii-pacmak` module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pacmak] support pre-release versions
3 participants