From a14ab0a7601ff5c197fe43d42410d8ed6bfd26a8 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 13 Nov 2021 20:33:57 +0100 Subject: initial commit --- setup.py | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100755 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100755 index 0000000..4f87ecc --- /dev/null +++ b/setup.py @@ -0,0 +1,76 @@ +#!/usr/bin/env python3 + +# SPDX-License-Identifier: CC0-1.0 + +# Setup script +# +# This file is part of Hydrilla +# +# Copyright (C) 2021 Wojtek Kosior +# +# This file is free software: you can redistribute it with or without +# modification under the terms of the CC0 1.0 Universal License as +# published by the Creative Commons Corporation. +# +# This file is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# CC0 1.0 Universal License for more details. + +from setuptools import setup, find_packages +import sys +import pathlib + +settings = {} +settings['version'] = '0.2' +settings['app_package_name'] = 'pydrilla' +settings['project_root'] = pathlib.Path(__file__).resolve().parent +packages_root = settings['project_root'] / 'src' +main_package_dir = packages_root / settings['app_package_name'] +settings['locales_dir'] = main_package_dir / 'locales' +settings['config_path'] = main_package_dir / 'development_config.json' + +sys.path.insert(0, str(packages_root)) +import test +import pydrilla_dev_helper + +helper = pydrilla_dev_helper.Helper(**settings) + +setup( + name=settings['app_package_name'], + version=settings['version'], + description='Hydrilla repository server (Python implementation)', +# long_description='...', +# long_description_content_type='text/plain', + url='https://hydrillabugs.koszko.org', + author='Wojtek Kosior', + author_email='koszko@koszko.org', + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Environment :: Web Environment', + 'Framework :: Flask', + 'Topic :: Internet :: WWW/HTTP :: WSGI', + 'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)', + 'Natural Language :: English', + 'Programming Language :: Python :: 3 :: Only' + ], + package_dir={'': 'src'}, + packages=find_packages(where='src'), + zip_safe=False, + install_requires=['flask'], + extras_require={ + 'test': ['pytest'], + }, + package_data={ + 'pydrilla': ['config.json', *helper.locale_files_relative()], + 'test': [] + }, + cmdclass=helper.commands() + # project_urls={ + # 'Bug Reports': 'https://', + # 'Funding': 'https://', + # 'Say Thanks!': 'http://', + # 'Source': 'https://', + # }, +) -- cgit v1.2.3