Skip to content

Commit 2c13cb0

Browse files
For version 1.1.0
2 parents bfbe6a1 + 5e1cde1 commit 2c13cb0

File tree

84 files changed

+6151
-7542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+6151
-7542
lines changed

.flake8

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[flake8]
2-
max-line-length = 80
3-
ignore = W503, W504
4-
exclude =
5-
.git,
1+
[flake8]
2+
max-line-length = 80
3+
ignore = W503, W504
4+
exclude =
5+
.git,
66
__pycache__
Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,69 @@
1-
# This workflow will upload a Python Package to PyPI when a release is created
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
10-
11-
on:
12-
push:
13-
tags:
14-
- 'test_v*.*.*'
15-
16-
permissions:
17-
contents: read
18-
19-
jobs:
20-
# Builds the pythond distribution (wheel and source tarball)
21-
build:
22-
name: Build distribution 📦
23-
runs-on: ubuntu-latest
24-
25-
steps:
26-
- uses: actions/checkout@v4 # Checkout the code
27-
- name: Set up Python
28-
uses: actions/setup-python@v5 # Set up the Python environment
29-
with:
30-
python-version: "3.x"
31-
- name: Install pypa/build # Install the build tool
32-
run: >-
33-
python3 -m
34-
pip install
35-
build
36-
--user
37-
- name: Build a binary wheel and a source tarball
38-
run: python3 -m build # Build the package
39-
- name: Store the distribution packages # Temporarily store the build artifacts in the dist directory under the name python-package-distributions
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: python-package-distributions
43-
path: dist/
44-
45-
testpypi-publish:
46-
name: Publish to TestPyPI 🐍📦
47-
needs:
48-
- build # Start the job only if the build job has completed
49-
runs-on: ubuntu-latest
50-
51-
environment:
52-
name: testpypi # Enter the environment name set in the Publisher
53-
url: https://test.pypi.org/p/coolprompt # Project URL
54-
55-
permissions:
56-
id-token: write # Grant Publishing permissions
57-
58-
if: startsWith(github.ref, 'refs/tags/test_v') # Conditional check for TestPyPI publishing
59-
60-
steps:
61-
- name: Download all the dists # Download the build artifacts that were saved earlier
62-
uses: actions/download-artifact@v4
63-
with:
64-
name: python-package-distributions
65-
path: dist/
66-
- name: Publish distribution 📦 to TestPyPI # Publish to TestPyPI
67-
uses: pypa/gh-action-pypi-publish@release/v1
68-
with:
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
push:
13+
tags:
14+
- 'test_v*.*.*'
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
# Builds the pythond distribution (wheel and source tarball)
21+
build:
22+
name: Build distribution 📦
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v4 # Checkout the code
27+
- name: Set up Python
28+
uses: actions/setup-python@v5 # Set up the Python environment
29+
with:
30+
python-version: "3.x"
31+
- name: Install pypa/build # Install the build tool
32+
run: >-
33+
python3 -m
34+
pip install
35+
build
36+
--user
37+
- name: Build a binary wheel and a source tarball
38+
run: python3 -m build # Build the package
39+
- name: Store the distribution packages # Temporarily store the build artifacts in the dist directory under the name python-package-distributions
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: python-package-distributions
43+
path: dist/
44+
45+
testpypi-publish:
46+
name: Publish to TestPyPI 🐍📦
47+
needs:
48+
- build # Start the job only if the build job has completed
49+
runs-on: ubuntu-latest
50+
51+
environment:
52+
name: testpypi # Enter the environment name set in the Publisher
53+
url: https://test.pypi.org/p/coolprompt # Project URL
54+
55+
permissions:
56+
id-token: write # Grant Publishing permissions
57+
58+
if: startsWith(github.ref, 'refs/tags/test_v') # Conditional check for TestPyPI publishing
59+
60+
steps:
61+
- name: Download all the dists # Download the build artifacts that were saved earlier
62+
uses: actions/download-artifact@v4
63+
with:
64+
name: python-package-distributions
65+
path: dist/
66+
- name: Publish distribution 📦 to TestPyPI # Publish to TestPyPI
67+
uses: pypa/gh-action-pypi-publish@release/v1
68+
with:
6969
repository-url: https://test.pypi.org/legacy/

.github/workflows/workflow.yml

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# This workflow will upload a Python Package to PyPI when a release is created
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Upload Python Package
10-
11-
on:
12-
release:
13-
types: [published]
14-
15-
permissions:
16-
contents: read
17-
18-
jobs:
19-
release-build:
20-
runs-on: ubuntu-latest
21-
22-
steps:
23-
- uses: actions/checkout@v4
24-
25-
- uses: actions/setup-python@v5
26-
with:
27-
python-version: "3.x"
28-
29-
- name: Build release distributions
30-
run: |
31-
# NOTE: put your own distribution build steps here.
32-
python -m pip install build
33-
python -m build
34-
35-
- name: Upload distributions
36-
uses: actions/upload-artifact@v4
37-
with:
38-
name: release-dists
39-
path: dist/
40-
41-
pypi-publish:
42-
runs-on: ubuntu-latest
43-
needs:
44-
- release-build
45-
permissions:
46-
# IMPORTANT: this permission is mandatory for trusted publishing
47-
id-token: write
48-
49-
# Dedicated environments with protections for publishing are strongly recommended.
50-
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51-
environment:
52-
name: Production
53-
url: https://pypi.org/p/coolprompt
54-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
55-
#
56-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57-
# ALTERNATIVE: exactly, uncomment the following line instead:
58-
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59-
60-
steps:
61-
- name: Retrieve release distributions
62-
uses: actions/download-artifact@v4
63-
with:
64-
name: release-dists
65-
path: dist/
66-
67-
- name: Publish release distributions to PyPI
68-
uses: pypa/gh-action-pypi-publish@release/v1
69-
with:
70-
packages-dir: dist/
1+
# This workflow will upload a Python Package to PyPI when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
release-build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.x"
28+
29+
- name: Build release distributions
30+
run: |
31+
# NOTE: put your own distribution build steps here.
32+
python -m pip install build
33+
python -m build
34+
35+
- name: Upload distributions
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: release-dists
39+
path: dist/
40+
41+
pypi-publish:
42+
runs-on: ubuntu-latest
43+
needs:
44+
- release-build
45+
permissions:
46+
# IMPORTANT: this permission is mandatory for trusted publishing
47+
id-token: write
48+
49+
# Dedicated environments with protections for publishing are strongly recommended.
50+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51+
environment:
52+
name: Production
53+
url: https://pypi.org/p/coolprompt
54+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
55+
#
56+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57+
# ALTERNATIVE: exactly, uncomment the following line instead:
58+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
59+
60+
steps:
61+
- name: Retrieve release distributions
62+
uses: actions/download-artifact@v4
63+
with:
64+
name: release-dists
65+
path: dist/
66+
67+
- name: Publish release distributions to PyPI
68+
uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
packages-dir: dist/

0 commit comments

Comments
 (0)