Skip to content

A template for a Python library, integrating into AWS CodeArtifact

Notifications You must be signed in to change notification settings

LeonPatmore/python-library-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Library Template

How to Use

  1. Setup your CodeArtifact project.
  2. Run make init and pass your domain and repo.
  3. Ensure that your setup.py has been configured correctly.
  4. Run make build.
  5. Run make push.

Defining as Dependency

Add this to your pipfile:

[[source]]
url = "https://aws:$CODEARTIFACT_AUTH_TOKEN@my_domain-111122223333.d.codeartifact.eu-west-1.amazonaws.com/pypi/repo/simple/"
verify_ssl = true
name = "aws"

Make sure you export the auth token before you install or lock:

CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain my_domain --domain-owner 111122223333 --query authorizationToken --output text`

About

A template for a Python library, integrating into AWS CodeArtifact

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published