Added setup.py
This commit is contained in:
parent
9fd1a86852
commit
ef32986e04
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -2,3 +2,6 @@
|
|||
/.idea/
|
||||
/Rare/__pycache__/
|
||||
/CountLines.sh
|
||||
/build/
|
||||
/dist/
|
||||
/Rare.egg-info/
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = "0.0.1"
|
||||
__version__ = "0.1"
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
35
setup.py
Normal 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"
|
||||
]
|
||||
)
|
Loading…
Reference in a new issue