[M] Rename due to pypi naming conflict
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
# mc-auth: Python Authenticator for Minecraft with Microsoft
|
||||
# mc-authn: Authenticator for Minecraft with Microsoft
|
||||
|
||||
### Installation
|
||||
|
||||
```sh
|
||||
pip install mc-auth
|
||||
pip install mc-authn
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
from .auth import *
|
||||
|
||||
__version__ = "1.0.0"
|
||||
@@ -0,0 +1,3 @@
|
||||
from .auth import *
|
||||
|
||||
__version__ = "1.0.1"
|
||||
@@ -11,7 +11,7 @@ from threading import Thread
|
||||
import requests
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
from hypy_utils import ensure_dir, write, json_stringify
|
||||
from hypy_utils import ensure_dir, write, json_stringify, printc
|
||||
from ruamel import yaml
|
||||
|
||||
config_path = ensure_dir(Path.home() / '.config' / 'mc-auth')
|
||||
@@ -22,7 +22,8 @@ def load_config() -> dict:
|
||||
auth_config = config_path / 'auth_config.yml'
|
||||
|
||||
if not auth_config.is_file():
|
||||
print(f'Cannot find {auth_config}, please put your config file there.')
|
||||
printc(f'&cCannot find config {auth_config}\n'
|
||||
f'&6Please read https://github.com/hykilpikonna/mc-authn for setup instructions.')
|
||||
exit(127)
|
||||
|
||||
with (config_path / 'auth_config.yml').open(encoding='utf-8') as f:
|
||||
@@ -1,4 +0,0 @@
|
||||
fastapi
|
||||
uvicorn~=0.18.3
|
||||
ruamel.yaml
|
||||
hypy_utils>=1.0.13
|
||||
@@ -3,7 +3,7 @@ import pathlib
|
||||
|
||||
from setuptools import setup
|
||||
|
||||
import mc_auth
|
||||
import mc_authn
|
||||
|
||||
# The directory containing this file
|
||||
HERE = pathlib.Path(__file__).parent
|
||||
@@ -13,8 +13,8 @@ README = (HERE / "README.md").read_text('utf-8')
|
||||
|
||||
# This call to setup() does all the work
|
||||
setup(
|
||||
name="mc-auth",
|
||||
version=mc_auth.__version__,
|
||||
name="mc-authn",
|
||||
version=mc_authn.__version__,
|
||||
description="Python Authenticator for Minecraft with Microsoft",
|
||||
long_description=README,
|
||||
long_description_content_type="text/markdown",
|
||||
@@ -30,13 +30,16 @@ setup(
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
],
|
||||
packages=['mc_auth'],
|
||||
package_data={'mc_auth': ['mc_auth/*']},
|
||||
packages=['mc_authn'],
|
||||
package_data={'mc_authn': ['mc_authn/*']},
|
||||
include_package_data=True,
|
||||
install_requires=['setuptools', 'typing_extensions'],
|
||||
install_requires=[
|
||||
'setuptools', 'typing_extensions',
|
||||
'fastapi~=0.81.0', 'uvicorn~=0.18.3', 'ruamel.yaml', 'hypy_utils>=1.0.13'
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"mc-auth=mc_auth:full_login",
|
||||
"mc-authn=mc_authn:full_login",
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user