Skip to content

Commit

Permalink
Preparing for first release | setup.py + README.md (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleudev authored Jun 9, 2024
2 parents eec20cc + 2756094 commit d2fa0af
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
34 changes: 34 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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', '[email protected]'
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
)
2 changes: 1 addition & 1 deletion ufpy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.0-alpha'
__version__ = '0.1'

from .cmp import *
from .math_op import *
Expand Down
12 changes: 12 additions & 0 deletions upload.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d2fa0af

Please sign in to comment.