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
5 changes: 1 addition & 4 deletions .github/workflows/bleeding-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ jobs:
run: sudo apt-get install libglu1-mesa-dev
- name: Install build dependencies
run: |
sudo apt-get install swig
python -m pip install -U pip setuptools wheel
python -m pip install numpy
python -m pip install Cython
python -m pip install -U pip wheel
- name: Install prebuilt wxPython
run: python -m pip install -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython
if: matrix.toolkit == 'wx'
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish release to PyPI

on:
workflow_dispatch:
release:
types: [published]

jobs:
build-and-upload:
runs-on: ubuntu-latest

steps:
- name: Check out the release commit
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install Python packages needed for build and upload
run: |
python -m pip install build twine

- name: Build sdist
run: |
python -m build --sdist

- name: Publish to PyPI

env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

run: |
python -m twine check --strict dist/*
python -m twine upload dist/*
5 changes: 3 additions & 2 deletions ci/edmtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@
"pyparsing",
"pypdf2",
"reportlab",
"swig",
"traits",
"traitsui",
"wheel",
},
'3.8': {
"apptools",
Expand All @@ -120,9 +120,9 @@
"pyface",
"pygments",
"pyparsing",
"swig",
"traits",
"traitsui",
"wheel",
}
}

Expand Down Expand Up @@ -293,6 +293,7 @@ def docs(runtime, toolkit, environment):
])
commands = [
"edm install -y -e {environment} " + packages,
"edm run -e {environment} -- python -m pip install sphinx-copybutton",
]
click.echo(
"Installing documentation tools in '{environment}'".format(
Expand Down
7 changes: 7 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"sphinx.ext.napoleon",
# Link to code in sphinx generated API docs
"sphinx.ext.viewcode",
"sphinx_copybutton",
# Include trait definition comments in autogenerated API docs
"traits.util.trait_documenter",
]
Expand Down Expand Up @@ -98,6 +99,12 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

# Options for Sphinx copybutton extension
# ---------------------------------------

# Matches prompts - "$ ", ">>>" and "..."
copybutton_prompt_text = r">>> |\.\.\. |\$ "
copybutton_prompt_is_regexp = True

# Options for HTML output
# -----------------------
Expand Down
2 changes: 2 additions & 0 deletions enable/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
]

__extras_require__ = {
# Dependencies for documentation
"docs": ["enthought-sphinx-theme", "sphinx", "sphinx-copybutton"],
# Dependencies for running enable/kiva's examples
"examples": ["chaco", "mayavi", "scipy", "kiwisolver", "pyglet"],
# Dependencies for GL backend support
Expand Down
Loading