1
0
Fork 0
mirror of synced 2024-06-02 02:34:40 +12:00

Added setup.py

This commit is contained in:
Dummerle 2020-12-16 21:45:59 +01:00
parent 9fd1a86852
commit ef32986e04
6 changed files with 43 additions and 8 deletions

3
.gitignore vendored
View file

@ -2,3 +2,6 @@
/.idea/
/Rare/__pycache__/
/CountLines.sh
/build/
/dist/
/Rare.egg-info/

View file

@ -1 +1 @@
__version__ = "0.0.1"
__version__ = "0.1"

View file

@ -15,7 +15,7 @@ if not os.path.exists(config_path):
if not cfg.sections():
cfg["Rare"] = {
"IMAGE_DIR": "../images",
"IMAGE_DIR": os.path.expanduser("~/.rare/images"),
"LOGLEVEL": logging.INFO
}

View file

@ -7,13 +7,14 @@ from PIL import Image
from PyQt5.QtCore import pyqtSignal
from legendary.core import LegendaryCore
from Rare.config import IMAGE_DIR
logger = getLogger("Utils")
def download_images(signal: pyqtSignal, core: LegendaryCore):
IMAGE_DIR = "../images"
if not os.path.isdir(IMAGE_DIR):
os.mkdir(IMAGE_DIR)
os.makedirs(IMAGE_DIR)
logger.info("Create Image dir")
# Download Images

View file

@ -1,4 +0,0 @@
requests>=2.25.0
legendary-gl>=0.20.3
Pillow>=8.0.1
PyQt5>=5.15.2

35
setup.py Normal file
View file

@ -0,0 +1,35 @@
import setuptools
from Rare import __version__ as version
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="Rare",
version=version,
author="Dummerle",
author_email="lennardbaeumer@gmail.com",
license="GPL-3",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Dummerle/Rare",
packages=["Rare", "Rare.utils"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
"Operating System :: OS Independent"
],
python_requires=">=3.8",
entry_points=dict(console_scripts=["rare=Rare.Main:main"]),
install_requires=[
"legendary-gl",
"requests<3.0",
"pillow",
"PyQT5",
"PyQTWebEngine",
"setuptools",
"wheel"
]
)