-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparing for first release | setup.py + README.md (#29)
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |