Mercurial > hgrepos > Python > libs > ConfigMix
comparison setup.py @ 184:781b8dc1883f
Use the pip "extras" feature to install optional features (e.g. PyYAML)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 03 May 2019 19:06:37 +0200 |
| parents | af3e0ab76799 |
| children | 5c27e52c3483 |
comparison
equal
deleted
inserted
replaced
| 183:d1103f0f9166 | 184:781b8dc1883f |
|---|---|
| 23 with open(os.path.join(pkg_root, "configmix", "__init__.py"), "rb") as vf: | 23 with open(os.path.join(pkg_root, "configmix", "__init__.py"), "rb") as vf: |
| 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 | |
| 29 yaml_requirements = [ | |
| 30 "PyYAML>=3.0", | |
| 31 ] | |
| 32 | |
| 33 all_requirements = [] | |
| 34 all_requirements.extend(yaml_requirements) | |
| 28 | 35 |
| 29 setup( | 36 setup( |
| 30 name="ConfigMix", | 37 name="ConfigMix", |
| 31 version=version, | 38 version=version, |
| 32 author="Franz Glasner", | 39 author="Franz Glasner", |
| 56 "Programming Language :: Python :: 3.4", | 63 "Programming Language :: Python :: 3.4", |
| 57 "Programming Language :: Python :: 3.5", | 64 "Programming Language :: Python :: 3.5", |
| 58 "Programming Language :: Python :: 3.6", | 65 "Programming Language :: Python :: 3.6", |
| 59 "Topic :: Software Development :: Libraries :: Python Modules" | 66 "Topic :: Software Development :: Libraries :: Python Modules" |
| 60 ], | 67 ], |
| 61 install_requires = ["PyYAML>=3.0"], | 68 extras_require={ |
| 69 "yaml": yaml_requirements, | |
| 70 "all" : all_requirements, | |
| 71 }, | |
| 72 tests_require=all_requirements, | |
| 62 ) | 73 ) |
