🧹 remove setup.py from builder

This commit is contained in:
ful1e5 2021-06-30 18:16:13 +05:30
parent e2443de228
commit 966473b3f1
9 changed files with 13 additions and 48 deletions

15
.gitignore vendored
View file

@ -1,16 +1,9 @@
########## Custom
# Out Dir
# --------------------------------------------- Custom
bitmaps
themes
test.py
bin
# Logs Files
builder/files.txt
# Extra
.vscode
########## Python
# --------------------------------------------- Python
# Byte-compiled / optimized / DLL files
__pycache__/
@ -143,7 +136,7 @@ dmypy.json
.pyre/
######### Node
# --------------------------------------------- Nodejs
# Logs
logs

View file

@ -13,17 +13,10 @@ WIN_CANVAS_SIZE ?= 32
WIN_SIZE ?= 24
clean:
@rm -rf bbpkg.egg-info build dist
@find -iname "*.pyc" -delete
# Removing setup.py package files if installed
@if [ -f "files.txt" ]; then
@xargs rm -rf < files.txt
@rm -rf files.txt
@fi
setup: setup.py
@python3 setup.py install --user --record files.txt
@rm -rf src/__pycache__
setup:
@python3 -m pip install clickgen --user
build: build_modern build_original

View file

@ -4,8 +4,8 @@
import argparse
from pathlib import Path
from bbpkg.configure import get_config
from bbpkg.generator import Info, xbuild, wbuild, build
from src.configure import get_config
from src.generator import Info, xbuild, wbuild, build
parser = argparse.ArgumentParser(

View file

@ -1,22 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(
name="bbpkg",
version="1.1.1",
description="Generate 'Bibata' cursor theme from PNGs file",
url="https://github.com/ful1e5/Bibata_Cursor",
packages=["bbpkg"],
package_dir={"bbpkg": "bbpkg"},
author="Kaiz Khatri",
author_email="kaizmandhu@gamil.com",
install_requires=["clickgen==1.1.9"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
python_requires=">=3.8",
zip_safe=True,
)

View file

@ -6,7 +6,7 @@ from typing import Any, Dict, Tuple, TypeVar, Union
from clickgen.util import PNGProvider
from bbpkg.constants import WIN_CURSORS_CFG, WIN_DELAY, X_CURSORS_CFG, X_DELAY
from .constants import WIN_CURSORS_CFG, WIN_DELAY, X_CURSORS_CFG, X_DELAY
X = TypeVar("X")

View file

@ -4,12 +4,13 @@
from pathlib import Path
from typing import Any, Dict, NamedTuple
from bbpkg.constants import AUTHOR, URL
from bbpkg.symlinks import add_missing_xcursor
from clickgen.builders import WindowsCursor, XCursor
from clickgen.core import CursorAlias
from clickgen.packagers import WindowsPackager, XPackager
from .constants import AUTHOR, URL
from .symlinks import add_missing_xcursor
class Info(NamedTuple):
"""Important cursor package's information field"""