-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from canonical/rename-extension
Rename extension
- Loading branch information
Showing
23 changed files
with
147 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Publish lxd-sphinx-extensions to PyPI | ||
on: workflow_dispatch | ||
defaults: | ||
run: | ||
working-directory: ./lxd-sphinx-extensions | ||
jobs: | ||
build: | ||
name: Build package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: Store the package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package | ||
path: lxd-sphinx-extensions/dist/ | ||
publish: | ||
name: Publish to TestPyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/lxd-sphinx-extensions | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package | ||
path: lxd-sphinx-extensions/dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: ./lxd-sphinx-extensions/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish canonical-sphinx-extensions to TestPyPI | ||
on: workflow_dispatch | ||
jobs: | ||
build: | ||
name: Build package | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install pypa/build | ||
run: >- | ||
python -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source tarball | ||
run: >- | ||
python -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
. | ||
- name: Store the package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: python-package | ||
path: dist/ | ||
publish: | ||
name: Publish to TestPyPI | ||
needs: | ||
- build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: testpypi | ||
url: https://test.pypi.org/p/canonical-sphinx-extensions | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Download package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: python-package | ||
path: dist/ | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# `lxd-sphinx-extensions` is now `canonical-sphinx-extensions` | ||
|
||
This package has been renamed to reflect that it is being used by more projects than just LXD. | ||
Use `pip install canonical-sphinx-extensions` instead. | ||
|
||
New package: https://pypi.org/project/canonical-sphinx-extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from setuptools import setup | ||
import os | ||
|
||
VERSION = "0.0.16" | ||
|
||
|
||
def get_long_description(): | ||
with open( | ||
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"), | ||
encoding="utf8", | ||
) as fp: | ||
return fp.read() | ||
|
||
|
||
setup( | ||
name="lxd-sphinx-extensions", | ||
description="lxd-sphinx-extensions is now canonical-sphinx-extensions", | ||
long_description=get_long_description(), | ||
long_description_content_type="text/markdown", | ||
version=VERSION, | ||
install_requires=["canonical-sphinx-extensions"], | ||
classifiers=["Development Status :: 7 - Inactive"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
[metadata] | ||
name = lxd-sphinx-extensions | ||
version = 0.0.15 | ||
name = canonical-sphinx-extensions | ||
version = 0.0.17 | ||
author = Ruth Fuchss | ||
author_email = [email protected] | ||
description = A collection of Sphinx extensions used in LXD | ||
description = A collection of Sphinx extensions used by Canonical documentation | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/canonical/lxd-sphinx-extensions | ||
|
||
[options] | ||
packages = | ||
related-links | ||
canonical.related-links | ||
youtube-links | ||
canonical.youtube-links | ||
custom-rst-roles | ||
canonical.custom-rst-roles | ||
config-options | ||
canonical.config-options | ||
terminal-output | ||
canonical.terminal-output | ||
filtered-toc | ||
canonical.filtered-toc | ||
package_dir = | ||
canonical = canonical-sphinx-extensions | ||
= canonical-sphinx-extensions | ||
python_requires = >=3.6 | ||
install_requires = | ||
sphinx | ||
|