From 7397afadacd6900c9873ec2e7c67a49fdb3f2aa2 Mon Sep 17 00:00:00 2001 From: Karim Mirzaguliyev Date: Fri, 9 Aug 2024 10:11:53 +0400 Subject: [PATCH] :hammer: Change email and add workflow --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ pyproject.toml | 2 +- setup.py | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..2e9ae3a --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 6ad2327..a3d1c70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "random-forest-package" version = "0.1.4" description = "A Python package to facilitate random forest modeling." -authors = ["Karim Mirzaguliyev "] +authors = ["Karim Mirzaguliyev "] readme = "README.md" packages = [{include = "random_forest_package", from = "random_forest_package"}] diff --git a/setup.py b/setup.py index 0f26522..8f57eaf 100644 --- a/setup.py +++ b/setup.py @@ -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',