diff --git a/scripts/build_package.sh b/scripts/build_package.sh deleted file mode 100755 index f95b88e4..00000000 --- a/scripts/build_package.sh +++ /dev/null @@ -1 +0,0 @@ -rm -rf MiAZ.egg-info build bdist.linux-x86_64 lib && ./scripts/genbuild.py && /usr/bin/env python3 -m pip install . --user --break-system-packages && rm -rf MiAZ.egg-info build bdist.linux-x86_64 lib diff --git a/scripts/build_package_debian_12.sh b/scripts/build_package_debian_12.sh deleted file mode 100755 index edc78f43..00000000 --- a/scripts/build_package_debian_12.sh +++ /dev/null @@ -1 +0,0 @@ -rm -rf MiAZ.egg-info build bdist.linux-x86_64 lib && ./scripts/genbuild.py && /usr/bin/env python3 -m pip install . --user diff --git a/scripts/build_package_delta.sh b/scripts/build_package_delta.sh deleted file mode 100755 index a256352e..00000000 --- a/scripts/build_package_delta.sh +++ /dev/null @@ -1 +0,0 @@ -rm -rf MiAZ.egg-info build bdist.linux-x86_64 lib && /usr/bin/env python3 -m pip install . --user && rm -rf MiAZ.egg-info build bdist.linux-x86_64 lib diff --git a/scripts/build_package_windows.sh b/scripts/build_package_windows.sh deleted file mode 100644 index ba3fc6d1..00000000 --- a/scripts/build_package_windows.sh +++ /dev/null @@ -1 +0,0 @@ -/mingw64/bin/pip install . --user diff --git a/setup.py b/setup.py deleted file mode 100644 index 1b3eeaf0..00000000 --- a/setup.py +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/python3 -# -*- coding: utf-8 -*- - -""" -# File: setup.py. -# Author: Tomás Vírseda -# License: GPL v3 -# Description: Setup MiAZ project -""" - -import os -import glob -from setuptools import setup - -from MiAZ.backend.env import ENV - -with open('README.adoc', 'r') as f: - LONG_DESCRIPTION = f.read() - - -def add_data(root_data): - """Add data files from a given directory.""" - dir_files = [] - resdirs = set() - for root, dirs, files in os.walk(root_data): - resdirs.add(os.path.realpath(root)) - - resdirs.remove(os.path.realpath(root_data)) - - for directory in resdirs: - files = glob.glob(os.path.join(directory, '*')) - relfiles = [] - for thisfile in files: - if not os.path.isdir(thisfile): - relfiles.append(os.path.relpath(thisfile)) - - num_files = len(files) - if num_files > 0: - dir_files.append((os.path.relpath(directory), relfiles)) - - return dir_files - -DATA_FILES = add_data('MiAZ/data') -DATA_FILES += ['README.adoc'] -DATA_FILES +=[('share/applications', ['MiAZ/data/resources/com.github.t00m.MiAZ.desktop'])] -DATA_FILES +=[('share/icons/hicolor/48x48/apps/', ['MiAZ/data/icons/com.github.t00m.MiAZ.svg'])] - -setup( - name=ENV['APP']['shortname'], - version=open('MiAZ/data/docs/VERSION', 'r').read().strip(), - author=ENV['APP']['author'], - author_email=ENV['APP']['author_email'], - url=ENV['APP']['website'], - description='A personal document organizer', - long_description=LONG_DESCRIPTION, - download_url='https://github.com/t00m/MiAZ/archive/master.zip', - license=ENV['APP']['license'], - packages=[ - 'MiAZ', - 'MiAZ.backend', - 'MiAZ.frontend', - 'MiAZ.frontend.console', - 'MiAZ.frontend.desktop', - 'MiAZ.frontend.desktop.widgets' - ], - # distutils does not support install_requires, but pip needs it to be - # able to automatically install dependencies - install_requires=[], - include_package_data=True, - data_files=DATA_FILES, - zip_safe=False, - platforms='any', - classifiers=[ - 'Development Status :: 1 - Planning', - 'Environment :: X11 Applications :: GTK', - 'Environment :: X11 Applications :: Gnome', - 'Intended Audience :: End Users/Desktop', - 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)', - 'Natural Language :: English', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 3', - 'Topic :: Documentation', - 'Topic :: Utilities', - 'Topic :: Desktop Environment :: Gnome', - 'Topic :: Office/Business' - ], - entry_points={ - 'console_scripts': [ - 'miaz = MiAZ.main:main', - ], - }, -)