File tree 4 files changed +46
-6
lines changed
4 files changed +46
-6
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,21 @@ FROM mcr.microsoft.com/devcontainers/python:3.12-bookworm
3
3
ENV BLACK_VERSION=24.10.0 \
4
4
ISORT_VERSION=5.13.2 \
5
5
PYLINT_VERSION=3.3.3 \
6
+ BUILD_VERSION=1.2.2.post1 \
7
+ TWINE_VERSION=6.0.1 \
6
8
ZSH_CUSTOM=/home/vscode/.oh-my-zsh/custom
7
9
8
10
RUN apt-get update && \
9
11
# Install powerlevel10k theme
10
12
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM}/themes/powerlevel10k && \
11
13
# Install pipx
12
14
python -m pip install --upgrade pip && \
13
- python -m pip install pipx && \
14
15
# Install black, isort, pylint using pipx
15
- pipx install black==${BLACK_VERSION} && \
16
- pipx install isort==${ISORT_VERSION} && \
17
- pipx install pylint==${PYLINT_VERSION} && \
16
+ pip install black==${BLACK_VERSION} && \
17
+ pip install isort==${ISORT_VERSION} && \
18
+ pip install pylint==${PYLINT_VERSION} && \
19
+ pip install build==${BUILD_VERSION} && \
20
+ pip install twine==${TWINE_VERSION} && \
18
21
# Clean up
19
22
apt-get clean && \
20
23
rm -rf /var/lib/apt/lists/*
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Check out the code
13
+ uses : actions/checkout@v4
14
+ with :
15
+ persist-credentials : false
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v5
19
+ with :
20
+ python-version : ' 3.12'
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ python3 -m pip install --upgrade pip
25
+ python3 -m pip install build twine --user
26
+
27
+ - name : Build the package
28
+ run : |
29
+ python -m build
30
+
31
+ - name : Publish to PyPI
32
+ env :
33
+ TWINE_USERNAME : __token__
34
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
35
+ run : |
36
+ twine upload dist/*
Original file line number Diff line number Diff line change 1
1
.vscode
2
2
.pytest_cache
3
3
** /__pycache__
4
+ dist
5
+ ** .egg-info
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ classifiers = [
11
11
" Programming Language :: Python :: 3" ,
12
12
" Operating System :: OS Independent" ,
13
13
]
14
- license = " MIT"
15
- license-files = [" LICEN[CS]E*" ]
14
+ license = { file = " LICENSE" }
16
15
17
16
[project .urls ]
18
17
Homepage = " https://github.com/edenreich/inference-gateway-python-sdk"
You can’t perform that action at this time.
0 commit comments