diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..65ee341 --- /dev/null +++ b/setup.py @@ -0,0 +1,34 @@ +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', + ], + 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 * 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