Mercurial > hgrepos > Python > libs > ConfigMix
comparison setup.py @ 282:da1596034954
Implemented an "AWS" namespace to retrieve some AWS-specific metadata
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 07 Dec 2020 01:06:33 +0100 |
| parents | 0c330cc6135c |
| children | eed16a1ec8f3 |
comparison
equal
deleted
inserted
replaced
| 281:2ea0aa9fb402 | 282:da1596034954 |
|---|---|
| 24 version = _version_re.search(vf.read()).group(2).decode("utf-8") | 24 version = _version_re.search(vf.read()).group(2).decode("utf-8") |
| 25 | 25 |
| 26 with open(os.path.join(pkg_root, "README.txt"), "rt") as rf: | 26 with open(os.path.join(pkg_root, "README.txt"), "rt") as rf: |
| 27 long_description = rf.read() | 27 long_description = rf.read() |
| 28 | 28 |
| 29 aws_requirements = [ | |
| 30 "requests", | |
| 31 ] | |
| 32 | |
| 29 yaml_requirements = [ | 33 yaml_requirements = [ |
| 30 "PyYAML>=3.0,<6", | 34 "PyYAML>=3.0,<6", |
| 31 ] | 35 ] |
| 32 | 36 |
| 33 toml_requirements = [ | 37 toml_requirements = [ |
| 34 "toml>=0.10", | 38 "toml>=0.10", |
| 35 ] | 39 ] |
| 36 | 40 |
| 37 all_requirements = [] | 41 all_requirements = [] |
| 42 all_requirements.extend(aws_requirements) | |
| 38 all_requirements.extend(yaml_requirements) | 43 all_requirements.extend(yaml_requirements) |
| 39 all_requirements.extend(toml_requirements) | 44 all_requirements.extend(toml_requirements) |
| 40 | 45 |
| 41 setup( | 46 setup( |
| 42 name="ConfigMix", | 47 name="ConfigMix", |
| 44 author="Franz Glasner", | 49 author="Franz Glasner", |
| 45 license="BSD 3-Clause License", | 50 license="BSD 3-Clause License", |
| 46 url="https://pypi.dom66.de/simple/configmix/", | 51 url="https://pypi.dom66.de/simple/configmix/", |
| 47 description="Library for extended configuration files", | 52 description="Library for extended configuration files", |
| 48 long_description=long_description, | 53 long_description=long_description, |
| 49 packages=["configmix"], | 54 packages=["configmix", |
| 55 "configmix.extras"], | |
| 50 include_package_data=False, | 56 include_package_data=False, |
| 51 zip_safe=True, | 57 zip_safe=True, |
| 52 platforms="any", | 58 platforms="any", |
| 53 classifiers=[ | 59 classifiers=[ |
| 54 "Development Status :: 5 - Production/Stable", | 60 "Development Status :: 5 - Production/Stable", |
| 62 "Programming Language :: Python :: 3", | 68 "Programming Language :: Python :: 3", |
| 63 "Topic :: Software Development :: Libraries :: Python Modules" | 69 "Topic :: Software Development :: Libraries :: Python Modules" |
| 64 ], | 70 ], |
| 65 python_requires=">=2.6", | 71 python_requires=">=2.6", |
| 66 extras_require={ | 72 extras_require={ |
| 73 "aws" : aws_requirements, | |
| 67 "toml": toml_requirements, | 74 "toml": toml_requirements, |
| 68 "yaml": yaml_requirements, | 75 "yaml": yaml_requirements, |
| 69 "all" : all_requirements, | 76 "all" : all_requirements, |
| 70 }, | 77 }, |
| 71 tests_require=all_requirements, | 78 tests_require=all_requirements, |
