Skip to content

Commit 7397afa

Browse files
author
Karim Mirzaguliyev
committed
🔨 Change email and add workflow
1 parent 48b1254 commit 7397afa

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: random_forest_package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Publish release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/project/random-forest-package
14+
permissions:
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: "3.x"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel
26+
- name: Build package
27+
run: |
28+
python setup.py sdist bdist_wheel # Could also be python -m build
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "random-forest-package"
33
version = "0.1.4"
44
description = "A Python package to facilitate random forest modeling."
5-
authors = ["Karim Mirzaguliyev <kenanovkenan299@gmail.com>"]
5+
authors = ["Karim Mirzaguliyev <karimmirzaguliyev@gmail.com>"]
66
readme = "README.md"
77
packages = [{include = "random_forest_package", from = "random_forest_package"}]
88

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
description='A package to facilitate random forest modeling',
2020
long_description=open('README.md').read(),
2121
long_description_content_type='text/markdown',
22-
url='https://github.com/k4rimDev/random_forest_package',
22+
url='https://github.com/k4rimDev/Random-Forest-Modelling',
2323
classifiers=[
2424
'Programming Language :: Python :: 3',
2525
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)