-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (55 loc) · 1.7 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
57
58
59
60
from pathlib import Path
import setuptools
import typing
# Load version number
SETUP_PY = Path(__file__)
version: typing.Dict[str, str] = {}
with (SETUP_PY.with_name('src') / 'EasyCo' / '__version__.py').open() as fp:
exec(fp.read(), version)
assert version
assert version['__VERSION__']
__VERSION__ = version['__VERSION__']
print(f'EasyCo Version: {__VERSION__}')
print('')
# don't load file for tox-builds
readme = SETUP_PY.with_name('readme.md')
long_description = ''
if readme.is_file():
with readme.open("r", encoding='utf-8') as fh:
long_description = fh.read()
setuptools.setup(
name="EasyCo",
version=__VERSION__,
author="spaceman_spiff",
# author_email="",
description="Easy configuration with yaml files",
keywords=[
'yaml',
'yml',
'config',
'configuration',
'file'
],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/spacemanspiff2007/EasyCo",
project_urls={
'Documentation': 'https://easyco.readthedocs.io/',
'GitHub': 'https://github.com/spacemanspiff2007/EasyCo',
},
packages=setuptools.find_packages('src', exclude=['tests*']),
package_dir={'': 'src'},
install_requires=[
'ruamel.yaml',
'voluptuous',
],
classifiers=[
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Libraries"
]
)