Skip to content
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install setuptools
- name: update release version in setup
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ github.event.release.tag_name }}/g" setup.py
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = python-blazarclient
name = chameleon-blazarclient

Choose a reason for hiding this comment

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

Does this change the module names, for things that might import blazarclient

And I was trying to figure out what happens if you install both python-blazarclient and chameleon-blazarclient into the same venv

And I think pip will actually just partially overwrite one of them:
pypa/pip#4625

Choose a reason for hiding this comment

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

well, all the unittests still pass, so I thinkfrom blazarclient import foo still works

summary = Client for OpenStack Reservation Service
description_file = README.rst
license = Apache Software License
Expand Down