Skip to content

Commit

Permalink
chore: update Python package version to 0.0.0 in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushiyant committed Apr 29, 2024
1 parent 603dcb5 commit 73b146b
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 14 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: Upload python package
on:
push:
branches:
- publish
pull_request:
branches:
- publish
workflow_dispatch:
- main
tags:
- v*


jobs:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "quasarpy"
version = "0.1.6"
version = "0.0.0"
description = "Quasar is python package that can be used for smell detection along with detailed report in various formats such as html, pdf, etc."
authors = ["Khushiyant <khushiyant2002@gmail.com>"]
license = "GPL-3.0-or-later"
Expand All @@ -10,6 +10,9 @@ include = ["assets", 'LICENSE']
[tool.poetry.scripts]
quasar = "quasarpy:main"

[tool.poetry-dynamic-versioning]
enable = true

[tool.poetry.dependencies]
python = "^3.10"
sphinx = "^7.2.6"
Expand Down Expand Up @@ -38,8 +41,8 @@ twine = "^5.0.0"
ipykernel = "^6.29.3"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
build-backend = "poetry_dynamic_versioning.backend"

[tool.ruff]
extend-include = ["*.ipynb", "__init__.py"]
Expand Down
5 changes: 2 additions & 3 deletions quasarpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@
from dotenv import load_dotenv
from quasarpy.cli import cli
from quasarpy.utils import logger
from quasarpy._version import __version__ as _version

__version__ = _version
__version__ = "0.0.0"

load_dotenv() # Load environment variables from .env file


def main():
'''Entry point for the command line interface.'''
logger.info(f"Quasar {_version} started")
logger.info(f"Quasar {__version__} started")
try:
cli()
except NotImplementedError as e:
Expand Down
2 changes: 0 additions & 2 deletions quasarpy/_version.py

This file was deleted.

2 changes: 1 addition & 1 deletion quasarpy/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import click
import os
from datetime import datetime
from quasarpy._version import __version__ as _version
from quasarpy import __version__ as _version
from quasarpy.utils import ASCII_ART
from quasarpy.utils import analyse
from quasarpy.algorithm.detector import MainDetector, detect_smell
Expand Down

0 comments on commit 73b146b

Please sign in to comment.