<filename>setup.py
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup

import re


def load_reqs(filename):
    with open(filename) as reqs_file:
        return [
            re.sub('==', '>=', line) for line in reqs_file.readlines()
            if not re.match('\s*#', line)
        ]


requirements = load_reqs('requirements.txt')
test_requirements = load_reqs('requirements-test.txt')

setup(
    name='guillotina_cms',
    version=open('VERSION').read().strip(),
    long_description=(open('README.rst').read() + '\n' +
                      open('CHANGELOG.rst').read()),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 3.7',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    url='https://pypi.python.org/pypi/guillotina_cms',
    license='BSD',
    setup_requires=[
        'pytest-runner',
    ],
    zip_safe=True,
    include_package_data=True,
    packages=find_packages(),
    install_requires=requirements,
    tests_require=test_requirements,
    extras_require={
        'extras': [
            'guillotina_elasticsearch',
            'guillotina_linkintegrity'
        ]
    },
    entry_points={
        'console_scripts': [
            'initdb=guillotina_cms.scripts:initdb',
            'deletedb=guillotina_cms.scripts:deletedb'],
    }
)

<filename>setup.py
# -*- coding: utf-8 -*-
from setuptools import find_packages
from setuptools import setup

import re


def load_reqs(filename):
    with open(filename) as reqs_file:
        return [
            re.sub('==', '>=', line) for line in reqs_file.readlines()
            if not re.match('\s*#', line)
        ]


requirements = load_reqs('requirements.txt')
test_requirements = load_reqs('requirements-test.txt')

setup(
    name='guillotina_cms',
    version=open('VERSION').read().strip(),
    long_description=(open('README.rst').read() + '\n' +
                      open('CHANGELOG.rst').read()),
    classifiers=[
        'Development Status :: 4 - Beta',
        'Programming Language :: Python :: 3.7',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
    url='https://pypi.python.org/pypi/guillotina_cms',
    license='BSD',
    setup_requires=[
        'pytest-runner',
    ],
    zip_safe=True,
    include_package_data=True,
    packages=find_packages(),
    install_requires=requirements,
    tests_require=test_requirements,
    extras_require={
        'extras': [
            'guillotina_elasticsearch',
            'guillotina_linkintegrity'
        ]
    },
    entry_points={
        'console_scripts': [
            'initdb=guillotina_cms.scripts:initdb',
            'deletedb=guillotina_cms.scripts:deletedb'],
    }
)

# -*- coding: utf-8 -*- #', line)