diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2024-05-29 20:55:32 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2024-05-29 20:55:32 +0200 |
commit | 1a494fa2da0f42ddc5f316f6d6a4e9b4838aa0b5 (patch) | |
tree | 43e0dac626b49b6fea5686fe13181ffa13acbbf0 | |
parent | b6a8b9af52892a04d75118f79d2aad4edc3df963 (diff) | |
download | autotiling-1a494fa2da0f42ddc5f316f6d6a4e9b4838aa0b5.tar.gz |
remove everything which won’t be useful
-rw-r--r-- | Makefile | 33 | ||||
-rw-r--r-- | autotiling/__about__.py | 10 | ||||
-rw-r--r-- | autotiling/__init__.py | 4 | ||||
-rw-r--r-- | main.py (renamed from autotiling/main.py) | 0 | ||||
-rw-r--r-- | pyproject.toml | 3 | ||||
-rw-r--r-- | setup.cfg | 41 | ||||
-rw-r--r-- | setup.py | 4 |
7 files changed, 0 insertions, 95 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index aecacf2..0000000 --- a/Makefile +++ /dev/null @@ -1,33 +0,0 @@ -VERSION=$(shell python3 -c "from configparser import ConfigParser; p = ConfigParser(); p.read('setup.cfg'); print(p['metadata']['version'])") - -default: - @echo "\"make publish\"?" - -upload: - # Make sure we're on the master branch - @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi - rm -f dist/* - # https://stackoverflow.com/a/58756491/353337 - python3 -m pep517.build --source --binary . - twine upload dist/* - -tag: - @if [ "$(shell git rev-parse --abbrev-ref HEAD)" != "master" ]; then exit 1; fi - curl -H "Authorization: token `cat $(HOME)/.github-access-token`" -d '{"tag_name": "v$(VERSION)"}' https://api.github.com/repos/nwg-piotr/autotiling/releases - -publish: tag upload - -clean: - @find . | grep -E "(__pycache__|\.pyc|\.pyo$\)" | xargs rm -rf - @rm -rf *.egg-info/ build/ dist/ MANIFEST - -format: - isort . - black . - -black: - black . - -lint: - black --check . - flake8 . diff --git a/autotiling/__about__.py b/autotiling/__about__.py deleted file mode 100644 index 647d8a7..0000000 --- a/autotiling/__about__.py +++ /dev/null @@ -1,10 +0,0 @@ -try: - # Python 3.8 - from importlib import metadata -except ImportError: - import importlib_metadata as metadata - -try: - __version__ = metadata.version("autotiling") -except Exception: - __version__ = "unknown" diff --git a/autotiling/__init__.py b/autotiling/__init__.py deleted file mode 100644 index ac3962e..0000000 --- a/autotiling/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .__about__ import __version__ -from .main import main - -__all__ = ["main", "__version__"] diff --git a/autotiling/main.py b/main.py index 4ccfe59..4ccfe59 100644 --- a/autotiling/main.py +++ b/main.py diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 8fe2f47..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,3 +0,0 @@ -[build-system] -requires = ["setuptools>=42", "wheel"] -build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 8c1c6c6..0000000 --- a/setup.cfg +++ /dev/null @@ -1,41 +0,0 @@ -[metadata] -name = autotiling -version = 1.9.3 -author = Piotr Miller -author_email = nwg.piotr@gmail.com -description = Automatically switch the horizontal/vertical window split orientation in sway and i3 -url = https://github.com/nwg-piotr/autotiling -project_urls = - Code=https://github.com/nwg-piotr/autotiling - Issues=https://github.com/nwg-piotr/autotiling/issues -long_description = file: README.md -long_description_content_type = text/markdown -license = GPL-3.0-or-later -license_files = - LICENSE -classifiers = - Development Status :: 4 - Beta - License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+) - Operating System :: OS Independent - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - -[options] -packages = find: -install_requires = - importlib_metadata;python_version<"3.8" - i3ipc -python_requires = >=3.6 -setup_requires = - setuptools>=42 - wheel - - -[options.entry_points] -console_scripts = - autotiling = autotiling.main:main diff --git a/setup.py b/setup.py deleted file mode 100644 index 7f1a176..0000000 --- a/setup.py +++ /dev/null @@ -1,4 +0,0 @@ -from setuptools import setup - -if __name__ == "__main__": - setup() |