Skip to content

Commit

Permalink
Merge pull request #10 from k4rimDev/development
Browse files Browse the repository at this point in the history
🔨 Change email and add workflow
  • Loading branch information
k4rimDev authored Aug 9, 2024
2 parents e11cc7e + 7397afa commit a340139
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: random_forest_package

on:
release:
types: [created]

jobs:
pypi-publish:
name: Publish release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/random-forest-package
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel # Could also be python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "random-forest-package"
version = "0.1.4"
description = "A Python package to facilitate random forest modeling."
authors = ["Karim Mirzaguliyev <kenanovkenan299@gmail.com>"]
authors = ["Karim Mirzaguliyev <karimmirzaguliyev@gmail.com>"]
readme = "README.md"
packages = [{include = "random_forest_package", from = "random_forest_package"}]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
description='A package to facilitate random forest modeling',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
url='https://github.com/k4rimDev/random_forest_package',
url='https://github.com/k4rimDev/Random-Forest-Modelling',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit a340139

Please sign in to comment.