-
Notifications
You must be signed in to change notification settings - Fork 32
/
setup.py
35 lines (30 loc) · 1.09 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
from typing import List
import setuptools
decode_config = __import__('decode-config')
def get_long_description() -> str:
with open('README.md') as fh:
return fh.read()
def get_required() -> List[str]:
with open('requirements.txt') as fh:
return fh.read().splitlines()
setuptools.setup(
name='decode-config',
version = decode_config.METADATA['VERSION'],
classifiers=[
decode_config.METADATA['CLASSIFIER'],
'Programming Language :: Python :: 3',
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
'Operating System :: OS Independent',
'Topic :: Utilities',
'Environment :: Console'
],
description = decode_config.METADATA['DESCRIPTION'],
author = decode_config.METADATA['AUTHOR'],
author_email = decode_config.METADATA['AUTHOR_EMAIL'],
url = decode_config.METADATA['URL'],
long_description = get_long_description(),
long_description_content_type = 'text/markdown',
install_requires = get_required(),
python_requires = '>=3.7',
scripts = ['decode-config.py']
)