File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+ # Event triggers for github workflow
3+ on :
4+ schedule :
5+ - cron : " 1 5 * * 0" # run at 5:00 UTC on Monday morning
6+ pull_request :
7+ # types: [opened, synchronize, reopened] # this is the default setting
8+ # workflow_dispatch allows you to run this workflow manually from the Actions tab
9+ workflow_dispatch :
10+ push :
11+ # Rerun the testing on the main brach to create a badge
12+ branches :
13+ - main
14+
15+ env :
16+ # Run all pip install's from Van Oord PyPi
17+ PIP_INDEX_URL : ${{ secrets.ADO_PYPI_DOWNLOAD_URL }}
18+
19+ jobs :
20+ # Job to test building the package for deployment
21+ test_deployment :
22+ name : Test Deployment
23+ runs-on : ubuntu-latest
24+ steps :
25+ # Checkout the package
26+ - name : Checkout current branch from GitHub
27+ uses : actions/checkout@v3
28+
29+ # Setup Python
30+ - name : Setup python 3.10
31+ uses : actions/setup-python@v4
32+ with :
33+ python-version : ' 3.10'
34+ # Upgrade pip
35+ - run : python -m pip install --upgrade pip
36+
37+ # Install build tools
38+ - run : pip install --upgrade build
39+ # Build the package
40+ - run : python -m build
41+
42+ # Show the dist folder
43+ - run : ls ./dist
44+ # Save the whole dist folder as artifact
45+ - name : Upload artifacts
46+ uses : actions/upload-artifact@v3
47+ with :
48+ name : Deployment files
49+ path : ./dist
50+ retention-days : 1
Original file line number Diff line number Diff line change 1+ name : Deploy package
2+ # Event triggers for github workflow
3+ on :
4+ release :
5+ types : [released] # only run it on released. Otherwise it is triggered 3 times.
6+
7+ env :
8+ # Run all pip install's from Van Oord PyPi
9+ PIP_INDEX_URL : ${{ secrets.ADO_PYPI_DOWNLOAD_URL }}
10+
11+ jobs :
12+ build :
13+ name : Deploy package
14+ runs-on : ubuntu-latest
15+ steps :
16+ # Checkout
17+ - uses : actions/checkout@v3
18+ # Setup Python
19+ - name : Setup python 3.10
20+ uses : actions/setup-python@v4
21+ with :
22+ python-version : ' 3.10'
23+
24+ # Upgrade pip
25+ - run : python -m pip install --upgrade pip
26+ # Install build tools
27+ - run : python -m pip install --upgrade build
28+ # Build the package
29+ - run : python -m build
30+ # Show the dist folder
31+ - run : ls ./dist
32+
33+ # Deploy to Azure artifacts
34+ - name : Update packages to support upload
35+ run : python -m pip install --upgrade twine keyring
36+ - name : Upload package to the AzureDevOps artifacts
37+ run : twine upload --repository-url ${{ secrets.ADO_PYPI_UPLOAD_URL }} -u '${{ secrets.ADO_PYPI_UPLOAD_ACC }}' -p ${{ secrets.ADO_PYPI_UPLOAD_PAT }} dist/* --verbose
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def text_of(relpath):
3030KEYWORDS = "docx office openxml word"
3131AUTHOR = "Steve Canny"
3232AUTHOR_EMAIL = "python-docx@googlegroups.com"
33- URL = "https://github.com/python-openxml/ python-docx"
33+ URL = "https://github.com/VanOord/vo- python-docx"
3434LICENSE = text_of ("LICENSE" )
3535PACKAGES = find_packages (exclude = ["tests" , "tests.*" ])
3636PACKAGE_DATA = {"docx" : ["templates/*.xml" , "templates/*.docx" ]}
You can’t perform that action at this time.
0 commit comments