From 3782c584d7ed8cc1abf70c2b5a6b5d1963366a2f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 26 Apr 2017 22:04:07 +0300 Subject: [PATCH] Use m_lib.defenc instead of m_lib; install it from PyPI --- ANNOUNCE | 2 +- ChangeLog | 2 ++ requirements.txt | 5 +---- requirements_dev.txt | 3 +++ setup.cfg | 1 - setup.py | 3 ++- 6 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 requirements_dev.txt diff --git a/ANNOUNCE b/ANNOUNCE index 2607561..d38f051 100644 --- a/ANNOUNCE +++ b/ANNOUNCE @@ -59,7 +59,7 @@ WHERE TO GET git clone http://git.phdru.name/mimedecode.git git clone git://git.phdru.name/mimedecode.git - Requires: Python 2.2.2+, m_lib 2.0+. + Requires: Python 2.6+, m_lib 3.1+, m_lib.defenc 1.0+. Recommends: configured mailcap database. diff --git a/ChangeLog b/ChangeLog index acf3837..e241dd0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ Version 2.7.0 (2015-??-??) + Use m_lib.defenc instead of m_lib; install it from PyPI. + Make options --save-headers|body|message to work with multipart subparts. Version 2.6.0 (2014-06-08) diff --git a/requirements.txt b/requirements.txt index b660181..f2c2998 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,3 @@ ---trusted-host phdru.name ---find-links=http://phdru.name/Software/Python/ --install-option=-O2 -m_lib>=2.0; python_version >= '2.6' and python_version < '3.0' -m_lib>=3.0.1; python_version >= '3.4' +m_lib.defenc>=1.0 diff --git a/requirements_dev.txt b/requirements_dev.txt new file mode 100644 index 0000000..c0ccf74 --- /dev/null +++ b/requirements_dev.txt @@ -0,0 +1,3 @@ +-r requirements.txt + +m_lib>=3.1 diff --git a/setup.cfg b/setup.cfg index 56a3566..d4199d8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,4 @@ [easy_install] -find_links = http://phdru.name/Software/Python/ optimize = 2 [egg_info] diff --git a/setup.py b/setup.py index c2b3db9..72b770a 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,8 @@ except ImportError: kw = {} if is_setuptools: - kw['install_requires'] = ['m_lib>=2.0'] + kw['install_requires'] = ['m_lib.defenc>=1.0'] + kw['tests_require'] = ['m_lib>=3.1'] from mimedecode_version import __version__, __copyright__, __license__ -- 2.39.2