Skip to content

Commit 4807772

Browse files
#v1.3.1
Adding automatic testflow for package publishing
1 parent 0f8d462 commit 4807772

File tree

4 files changed

+63
-2
lines changed

4 files changed

+63
-2
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will upload a Python Package using Twine 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+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
deploy:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: '3.x'
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install build
32+
- name: Build package
33+
run: python -m build
34+
- name: Publish package
35+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
36+
with:
37+
user: __token__
38+
password: ${{ secrets.PYPI_API_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# randomisedString v1.3.0
1+
# randomisedString v1.3.1
22

33
```pip install randomisedString --upgrade```
44

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# pyproject.toml
2+
3+
[build-system]
4+
requires = ["setuptools", "wheel"]
5+
build-backend = "setuptools.build_meta"
6+
7+
[project]
8+
name = "randomisedString"
9+
version = "1.3.1"
10+
description = "A well maintained program to generate randomised strings. Can be used for assigning unique IDs of any specified size. Can be alpha only or numeric or alphanumeric as specified."
11+
readme = "README.md"
12+
maintainers = [{ name = "Bhindi", email = "[email protected]" }]
13+
classifiers = [
14+
"License :: OSI Approved :: MIT License",
15+
"Programming Language :: Python",
16+
"Programming Language :: Python :: 3",
17+
]
18+
keywords = ["id", "uid", "uuid", "random string", "unique id"]
19+
requires-python = ">=3.6"
20+
dependencies = []
21+
22+
[project.urls]
23+
Homepage = "https://github.com/BhaskarPanja93/randomisedString"

randomisedString.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.3.0"
1+
__version__ = "1.3.1"
22
__packagename__ = "randomisedstring"
33

44

0 commit comments

Comments
 (0)