From 2960ecaeccfb4ca46fe29643c3b936eadc5a8532 Mon Sep 17 00:00:00 2001 From: bleudev Date: Sun, 9 Jun 2024 15:09:08 +0300 Subject: [PATCH 1/2] create setup.py --- setup.py | 35 +++++++++++++++++++++++++++++++++++ ufpy/__init__.py | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..df37e94 --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +from setuptools import setup + +from ufpy import __version__ + +with open('README.md', 'r', encoding='utf-8') as mdf: + long_description = mdf.read() + +with open('requirements.txt', 'r', encoding='utf-8') as rqf: + install_requires = rqf.readlines() + +organization_name = 'honey-team' +author, author_email = 'bleudev', 'aitiiigg1@gmail.com' +project_name = 'ufpy' +github_url = f'https://github.com/{organization_name}/{project_name}' + +setup( + name=project_name, + version=__version__, + author=author, + author_email=author_email, + description='Ufpy (Useful Python) - package for Python with some useful features.', + download_url=f'{github_url}/releases/tag/{__version__}', + long_description=long_description, + long_description_content_type='text/markdown', + url=github_url, + packages=[project_name], + classifiers=[ + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.12', + 'Programming Language :: Python :: 3.12.1', + ], + zip_safe=False, + python_requires=">=3.12", + install_requires=install_requires +) \ No newline at end of file diff --git a/ufpy/__init__.py b/ufpy/__init__.py index beca6f2..324ec5c 100644 --- a/ufpy/__init__.py +++ b/ufpy/__init__.py @@ -1,4 +1,4 @@ -__version__ = '1.0-alpha' +__version__ = '0.1' from .cmp import * from .math_op import * From 27560943581cdb24dd72f48d431b3f16e423f1db Mon Sep 17 00:00:00 2001 From: bleudev Date: Sun, 9 Jun 2024 15:57:19 +0300 Subject: [PATCH 2/2] upload.bat + bug fix classfiers --- setup.py | 1 - upload.bat | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 upload.bat diff --git a/setup.py b/setup.py index df37e94..65ee341 100644 --- a/setup.py +++ b/setup.py @@ -27,7 +27,6 @@ classifiers=[ 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.12', - 'Programming Language :: Python :: 3.12.1', ], zip_safe=False, python_requires=">=3.12", diff --git a/upload.bat b/upload.bat new file mode 100644 index 0000000..f90a080 --- /dev/null +++ b/upload.bat @@ -0,0 +1,12 @@ +@echo off +py -3.12 -m pip install --upgrade pip +py -3.12 -m pip install setuptools twine +py -3.12 setup.py sdist + +py -3.12 -m twine upload dist\* + +rd /s /q ufpy.egg-info +rd /s /q dist +rd /s /q build + +pause \ No newline at end of file