1
|
|
|
import sys |
2
|
|
|
from setuptools import setup, find_packages |
3
|
|
|
|
4
|
|
|
with open('requirements.txt') as reqs: |
5
|
|
|
install_requires = [ |
6
|
|
|
line for line in reqs.read().split('\n') |
7
|
|
|
if (line and not line.startswith('--')) and (";" not in line) |
8
|
|
|
] |
9
|
|
|
if sys.version_info[:2] < (3, 5): |
10
|
|
|
install_requires.append("configparser>=3.7.4") |
11
|
|
|
|
12
|
|
|
with open(".metwork-framework/README.md") as f: |
13
|
|
|
long_description = f.read() |
14
|
|
|
|
15
|
|
|
setup( |
16
|
|
|
author="Fabien MARTY", |
17
|
|
|
author_email="[email protected]", |
18
|
|
|
name="opinionated_configparser", |
19
|
|
|
version="1.0.2", |
20
|
|
|
license="MIT", |
21
|
|
|
python_requires='>=2.7', |
22
|
|
|
url="https://github.com/metwork-framework/opinionated_configparser", |
23
|
|
|
description="opinionated python configparser library override to deal " |
24
|
|
|
"with configuration variants (PROD, DEV...) and jija2 interpolation", |
25
|
|
|
long_description=long_description, |
26
|
|
|
long_description_content_type="text/markdown", |
27
|
|
|
keywords="configparser extension", |
28
|
|
|
packages=find_packages(), |
29
|
|
|
install_requires=install_requires, |
30
|
|
|
classifiers=[ |
31
|
|
|
"License :: OSI Approved :: MIT License", |
32
|
|
|
"Intended Audience :: Developers", |
33
|
|
|
"Programming Language :: Python :: 2.7", |
34
|
|
|
"Programming Language :: Python :: 3" |
35
|
|
|
] |
36
|
|
|
) |
37
|
|
|
|