-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
56 lines (48 loc) · 1.69 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- coding: utf-8 -*-
import os
from setuptools import find_packages, setup
def read(filename: str) -> str:
with open(os.path.join(os.path.dirname(__file__), filename)) as file:
return file.read()
def get_version() -> str:
"""Get version from the package without actually importing it."""
init = read('magic_settings/__init__.py')
for line in init.split('\n'):
if line.startswith('__version__'):
return eval(line.split('=')[1])
setup(
name='magic-settings',
version=get_version(),
description='Configuration manager for Python applications.',
packages=find_packages(exclude=['tests', ]),
keywords='parser config environment settings configuration',
url='https://github.com/shocking-rodents/magic-settings/',
download_url='https://pypi.org/project/magic-settings/',
author='Anton Ostapenko',
author_email='olsnod@gmail.com',
long_description=read('README.md'),
long_description_content_type='text/markdown',
license='MIT',
python_requires='~=3.6',
zip_safe=True,
install_requires=[
'python-dotenv~=0.10.2',
],
extras_require={
'yaml': [
'PyYAML~=5.1'
]
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
],
)