🧹 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 # --------------------------------------------- Custom
# Out Dir
bitmaps bitmaps
themes themes
test.py bin
# Logs Files # --------------------------------------------- Python
builder/files.txt
# Extra
.vscode
########## Python
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
@ -143,7 +136,7 @@ dmypy.json
.pyre/ .pyre/
######### Node # --------------------------------------------- Nodejs
# Logs # Logs
logs logs

View file

@ -13,17 +13,10 @@ WIN_CANVAS_SIZE ?= 32
WIN_SIZE ?= 24 WIN_SIZE ?= 24
clean: clean:
@rm -rf bbpkg.egg-info build dist @rm -rf src/__pycache__
@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
setup:
@python3 -m pip install clickgen --user
build: build_modern build_original build: build_modern build_original

View file

@ -4,8 +4,8 @@
import argparse import argparse
from pathlib import Path from pathlib import Path
from bbpkg.configure import get_config from src.configure import get_config
from bbpkg.generator import Info, xbuild, wbuild, build from src.generator import Info, xbuild, wbuild, build
parser = argparse.ArgumentParser( 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 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") X = TypeVar("X")

View file

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