forked from alfred82santa/configure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (33 loc) · 1.57 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import os
from pathlib import Path
from setuptools import find_packages, setup
import setup_utils
version_file = Path(__file__).parent / 'configure.py'
version = setup_utils.get_version_from_file(version_file)
PACKAGE_NAME = 'ubuviz-configure'
if os.environ.get('PACKAGE_DEVELOPMENT') is not None:
version = setup_utils.get_development_version_from_file(version_file,
int(os.environ.get('PACKAGE_DEVELOPMENT')),
os.environ.get('PACKAGE_COMMIT'))
setup_utils.set_version_to_file(version_file, version)
requirements = setup_utils.get_requirements_from_file(Path(__file__).parent / 'requirements.txt')
setup(
name=PACKAGE_NAME,
url='https://github.com/alfred82santa/configure',
author='Andrey Popp, Alexander Solovyov, Alfred Santacatalina',
version=version,
author_email='Andrey Popp <[email protected]>, Alexander Solovyov <[email protected]>, Alfred Santacatalina <[email protected]>',
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Development Status :: 4 - Beta'],
py_modules=["configure"],
install_requires=requirements,
description='configuration toolkit based on YAML',
long_description=(Path(__file__).parent / 'README.rst').read_text(),
long_description_content_type='text/x-rst',
zip_safe=True
)