[M] Rename due to pypi naming conflict

This commit is contained in:
Hykilpikonna
2022-08-31 14:28:57 -04:00
parent a25493683d
commit a8d2ecf965
6 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
# mc-auth: Python Authenticator for Minecraft with Microsoft # mc-authn: Authenticator for Minecraft with Microsoft
### Installation ### Installation
```sh ```sh
pip install mc-auth pip install mc-authn
``` ```
### Usage ### Usage
-3
View File
@@ -1,3 +0,0 @@
from .auth import *
__version__ = "1.0.0"
+3
View File
@@ -0,0 +1,3 @@
from .auth import *
__version__ = "1.0.1"
+3 -2
View File
@@ -11,7 +11,7 @@ from threading import Thread
import requests import requests
import uvicorn import uvicorn
from fastapi import FastAPI 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 from ruamel import yaml
config_path = ensure_dir(Path.home() / '.config' / 'mc-auth') config_path = ensure_dir(Path.home() / '.config' / 'mc-auth')
@@ -22,7 +22,8 @@ def load_config() -> dict:
auth_config = config_path / 'auth_config.yml' auth_config = config_path / 'auth_config.yml'
if not auth_config.is_file(): 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) exit(127)
with (config_path / 'auth_config.yml').open(encoding='utf-8') as f: with (config_path / 'auth_config.yml').open(encoding='utf-8') as f:
-4
View File
@@ -1,4 +0,0 @@
fastapi
uvicorn~=0.18.3
ruamel.yaml
hypy_utils>=1.0.13
+10 -7
View File
@@ -3,7 +3,7 @@ import pathlib
from setuptools import setup from setuptools import setup
import mc_auth import mc_authn
# The directory containing this file # The directory containing this file
HERE = pathlib.Path(__file__).parent 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 # This call to setup() does all the work
setup( setup(
name="mc-auth", name="mc-authn",
version=mc_auth.__version__, version=mc_authn.__version__,
description="Python Authenticator for Minecraft with Microsoft", description="Python Authenticator for Minecraft with Microsoft",
long_description=README, long_description=README,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",
@@ -30,13 +30,16 @@ setup(
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
], ],
packages=['mc_auth'], packages=['mc_authn'],
package_data={'mc_auth': ['mc_auth/*']}, package_data={'mc_authn': ['mc_authn/*']},
include_package_data=True, 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={ entry_points={
"console_scripts": [ "console_scripts": [
"mc-auth=mc_auth:full_login", "mc-authn=mc_authn:full_login",
] ]
} }
) )