diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..6f025a2 --- /dev/null +++ b/.vscode/tasks.json @@ -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"] + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 5d53a3d..980068c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # MineHost Interface -A python library for executing commands or gettings information on MineHost minecraft servers. \ No newline at end of file +A python library for executing commands or gettings information on MineHost minecraft servers. + +Documentation will be added soon. \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..33a38a1 --- /dev/null +++ b/setup.py @@ -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", +) \ No newline at end of file