-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (42 loc) · 1.63 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
from setuptools import setup
config = {}
keys = ["version", "author", "title", "license"]
with open("minecraftVersions/__init__.py", "r") as f:
for i in f.readlines():
for k in keys:
if "__{}__".format(k) in i:
config.update({k: i.split("=")[1].replace("\n", "").replace('"', "").strip()})
with open("README.md", "r") as f:
config.update({"readme": f.read()})
setup(
name=config["title"],
version=config["version"],
description="A simple Minecraft version wrapper written in Python",
url="https://github.com/tungdo0602/MinecraftVersions.py",
project_urls={
'Issue tracker': 'https://github.com/tungdo0602/MinecraftVersions.py/issues',
},
long_description=config["readme"],
long_description_content_type="text/markdown",
author=config["author"],
license=config["license"],
packages=["minecraftVersions"],
install_requires=["requests"],
python_requires='>=3.8.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Internet',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Typing :: Typed',
],
)