Skip to content

Commit

Permalink
feat(construct): enable pypi (#46)
Browse files Browse the repository at this point in the history
* enable build of python package
* add npmignore files
* chore: self mutation
* add twine regiostry url
* Sync namespace and module
* Remove dashes

---------

Signed-off-by: github-actions <[email protected]>
Signed-off-by: Scott Schreckengaust <[email protected]>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: Scott Schreckengaust <[email protected]>
  • Loading branch information
3 people authored Oct 24, 2023
1 parent 78c8a7f commit 215225f
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions .github/workflows/release.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .mergify.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion .npmignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 24 additions & 2 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ const project = new awscdk.AwsCdkConstructLibrary({
npmRegistryUrl: 'https://npm.pkg.github.com',
npmTokenSecret: 'GITHUB_TOKEN',

publishToPypi: {
distName: PROJECT_NAME,
module: PROJECT_NAME.replace(/-/g, '_'), // PEP 8, convert hypens
twineRegistryUrl: '${{ secrets.TWINE_REGISTRY_URL }}',
},

codeCov: true,
codeCovTokenSecret: 'CODECOV_TOKEN',

Expand Down Expand Up @@ -73,8 +79,24 @@ buildMonthlyIssuesMetricsWorkflow(project);
buildUpdateContributorsWorkflow(project);
buildAutoApproveWorkflow(project);

// We don't want to package the use cases
project.npmignore?.addPatterns('/use-cases/');
// We don't want to package certain things
project.npmignore?.addPatterns(
'/docs/',
'header.js',
'.gitattributes',
'.eslintrc.json',
'.gitattributes',
'.github',
'.gitignore',
'.mergify.yml',
'.node-version',
'.npmignore',
'.projen',
'.projenrc.ts',
'projenrc',
'tsconfig.dev.json',
'yarn.lock',
);

// Add License header automatically
project.eslint?.addPlugins('header');
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
# Amazon Emerging Tech CDK Constructs

<!--BEGIN STABILITY BANNER-->

---

![Stability: Experimental](https://img.shields.io/badge/stability-Experimental-important.svg?style=for-the-badge)

> All classes are under active development and subject to non-backward compatible changes or removal in any
> future version. These are not subject to the [Semantic Versioning](https://semver.org/) model.
> This means that while you may use them, you may need to update your source code when upgrading to a newer version of this package.
---
<!--END STABILITY BANNER-->

## Table of contents

Expand Down
8 changes: 7 additions & 1 deletion package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 215225f

Please sign in to comment.