Skip to content

Commit

Permalink
merge conflicct
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Jun 13, 2024
2 parents 84b9376 + 4c8c282 commit 074c57c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 17 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
python-version: 3.11

- name: Install twine
run: pip install twine
run: pip install twine bui

- name: install setuptools
run: pip install setuptools

- name: Build the package
run: python setup.py sdist
run: python -m build

- name: Publish the package
run: twine upload --skip-existing --repository-url https://upload.pypi.org/legacy/ -u __token__ -p ${{ secrets.PYPI_TOKEN }} ${{ github.workspace }}/dist/*


23 changes: 20 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["setuptools>=61.0", "wheel"]



build-backend = "setuptools.build_meta"

[tool.setuptools]
packages = ["find_and_replace"]

[project]
name = "find-and-replace-strings"
version = "1.0.2"
version = "1.0.3"
description = "Python package and pre-commit-hook for finding and replacing string(s) in file(s)."
license = { text = "GPLv3" }
authors = [{name = "OpenCEPK Open Cloud Engineering Platform Kit", email = "[email protected]"}]
requires-python = ">=3.7"
dependencies = [
'tomli; python_version < "3.11"',
]
requires-python = ">=3.9"


classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down Expand Up @@ -36,5 +48,10 @@ keywords = ["find", "replace", "string", "file", "pre-commit", "hook", "git", "t


[project.scripts]
<<<<<<< HEAD
find-and-replace-strings = "find_and_replace.main:main"
=======
find-and-replace-strings = "find_and_replace.__main__:main"

>>>>>>> test

24 changes: 12 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from setuptools import setup, find_packages

setup(
name="find-and-replace-strings",
version="1.0.0",
description="Python package and pre-commit-hook for finding and replacing string(s) in file(s).",
author="OpenCEPK Open Cloud Engineering Platform Kit",
author_email="[email protected]",
python_requires=">=3.7",
packages=find_packages(include=["find_and_replace", "find_and_replace.*"]),
entry_points={
"console_scripts": [
"find-and-replace-strings=find_and_replace.main:main",
],
},
# name="find-and-replace-strings",
# version="1.0.0",
# description="Python package and pre-commit-hook for finding and replacing string(s) in file(s).",
# author="OpenCEPK Open Cloud Engineering Platform Kit",
# author_email="[email protected]",
# python_requires=">=3.7",
# packages=find_packages(include=["find_and_replace", "find_and_replace.*"]),
# entry_points={
# "console_scripts": [
# "find-and-replace-strings=find_and_replace.main:main",
# ],
# },
)

0 comments on commit 074c57c

Please sign in to comment.