summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/setup.py b/setup.py
index 28d9ca5..ab9cf81 100755
--- a/setup.py
+++ b/setup.py
@@ -28,32 +28,29 @@ def files_find(package_path, subpath, rglob):
yield str(path.relative_to(package_path))
settings = {}
-settings['version'] = '0.2'
-settings['app_package_name'] = 'pydrilla'
+settings['app_package_name'] = 'hydrilla'
settings['project_root'] = pathlib.Path(__file__).resolve().parent
packages_root = settings['project_root'] / 'src'
main_package_dir = packages_root / settings['app_package_name']
test_dir = packages_root / 'test'
-settings['locales_dir'] = main_package_dir / 'locales'
+settings['locales_dir'] = main_package_dir / 'server' / 'locales'
settings['config_path'] = test_dir / 'development_config.json'
sys.path.insert(0, str(packages_root))
-import test
-import pydrilla_dev_helper
+import hydrilla_dev_helper
-helper = pydrilla_dev_helper.Helper(**settings)
+helper = hydrilla_dev_helper.Helper(**settings)
setup(
name=settings['app_package_name'],
- version=settings['version'],
- description='Hydrilla repository server (Python implementation)',
+ description='Hydrilla repository server',
# 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',
+ 'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Environment :: Web Environment',
'Framework :: Flask',
@@ -63,14 +60,16 @@ setup(
'Programming Language :: Python :: 3 :: Only'
],
package_dir={'': 'src'},
- packages=find_packages(where='src'),
+ packages=find_packages(where='src', exclude=['test']),
+ include_package_data=True,
zip_safe=False,
install_requires=['flask'],
extras_require={
- 'test': ['pytest'],
+ 'test': ['pytest', 'hydrilla_builder'],
+ 'setup': ['setuptools_scm']
},
package_data={
- 'pydrilla': ['config.json', *helper.locale_files_relative(),
+ 'hydrilla': ['config.json', *map(str, helper.locale_files_relative()),
*files_find(main_package_dir, 'templates', '*.html')],
'test': [*files_find(packages_root / 'test', 'example_content', '*'),
'development_config.json']