1
0

Added setup.py

This commit is contained in:
Rokas Puzonas 2020-08-03 17:10:14 +03:00
parent c640b1f503
commit e4f5401135
3 changed files with 82 additions and 1 deletions

50
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,50 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Update requirements.txt",
"type": "shell",
"linux": {
"command": "source venv/bin/activate && pip freeze > requirements.txt"
},
"problemMatcher": []
},
{
"label": "Upgrade setuptools and wheel",
"type": "shell",
"linux": {
"command": "source venv/bin/activate && pip install -U setuptools wheel"
},
"problemMatcher": []
},
{
"label": "Build package",
"type": "shell",
"linux": {
"command": "source venv/bin/activate && pip install -U setuptools wheel"
},
"problemMatcher": [],
"dependsOn": ["Upgrade setuptools and wheel"]
},
{
"label": "Upload package to PyPI",
"type": "shell",
"linux": {
"command": "source venv/bin/activate && twine upload dist/*"
},
"problemMatcher": [],
"dependsOn": ["Build package"]
},
{
"label": "Upload package to Test PyPI",
"type": "shell",
"linux": {
"command": "source venv/bin/activate && twine upload -R testpypi dist/*"
},
"problemMatcher": [],
"dependsOn": ["Build package"]
}
]
}

View File

@ -1,3 +1,5 @@
# MineHost Interface
A python library for executing commands or gettings information on MineHost minecraft servers.
A python library for executing commands or gettings information on MineHost minecraft servers.
Documentation will be added soon.

29
setup.py Normal file
View File

@ -0,0 +1,29 @@
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
setuptools.setup(
name="minehost-interface",
version="1.0.0",
author="Rokas Puzonas",
author_email="rokas.puz@gmail.com",
description="A simple for interacting with minehost servers.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/RokasPuzonas/minehost-interface",
license="MIT",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Intended Audience :: Developers",
],
install_requires=["beautifulsoup4", "requests", "paramiko"],
python_requires=">=3.8",
)