<commit_before>"""`Dependency injector` setup script."""

import os
import re

from setuptools import setup
from setuptools import Command


# Getting description:
with open('README.rst') as readme_file:
    description = readme_file.read()

# Getting requirements:
with open('requirements.txt') as version:
    requirements = version.readlines()

# Getting version:
with open('dependency_injector/__init__.py') as init_file:
    version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1)


class PublishCommand(Command):
    """Setuptools `publish` command."""

    description = "Publish current distribution to PyPi and create tag"
    user_options = []

    def initialize_options(self):
        """Init options."""

    def finalize_options(self):
        """Finalize options."""

    def run(self):
        """Command execution."""
        self.run_command('sdist')
        self.run_command('upload')
        os.system('git tag -a {0} -m \'version {0}\''.format(version))
        os.system('git push --tags')


setup(name='dependency_injector',
      version=version,
      description='Python dependency injection framework',
      long_description=description,
      author='ETS Labs',
      author_email='<EMAIL>',
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      url='https://github.com/ets-labs/python-dependency-injector',
      bugtrack_url='https://github.com/ets-labs/python-dependency-injector' +
                   '/issues',
      download_url='https://pypi.python.org/pypi/dependency_injector',
      license='BSD New',
      packages=['dependency_injector',
                'dependency_injector.providers'],
      platforms=['any'],
      zip_safe=True,
      install_requires=requirements,
      cmdclass={
          'publish': PublishCommand,
      },
      keywords=[
          'DI',
          'Dependency injection',
          'IoC',
          'Inversion of Control',
      ],
      classifiers=[<commit_msg>Normalize package names by PEP-503 (https://www.python.org/dev/peps/pep-0503/)<commit_after>"""`Dependency injector` setup script."""

import os
import re

from setuptools import setup
from setuptools import Command


# Getting description:
with open('README.rst') as readme_file:
    description = readme_file.read()

# Getting requirements:
with open('requirements.txt') as version:
    requirements = version.readlines()

# Getting version:
with open('dependency_injector/__init__.py') as init_file:
    version = re.search('VERSION = \'(.*?)\'', init_file.read()).group(1)


class PublishCommand(Command):
    """Setuptools `publish` command."""

    description = "Publish current distribution to PyPi and create tag"
    user_options = []

    def initialize_options(self):
        """Init options."""

    def finalize_options(self):
        """Finalize options."""

    def run(self):
        """Command execution."""
        self.run_command('sdist')
        self.run_command('upload')
        os.system('git tag -a {0} -m \'version {0}\''.format(version))
        os.system('git push --tags')


setup(name='dependency-injector',
      version=version,
      description='Python dependency injection framework',
      long_description=description,
      author='ETS Labs',
      author_email='<EMAIL>',
      maintainer='<NAME>',
      maintainer_email='<EMAIL>',
      url='https://github.com/ets-labs/python-dependency-injector',
      bugtrack_url='https://github.com/ets-labs/python-dependency-injector' +
                   '/issues',
      download_url='https://pypi.python.org/pypi/dependency_injector',
      license='BSD New',
      packages=['dependency_injector',
                'dependency_injector.providers'],
      platforms=['any'],
      zip_safe=True,
      install_requires=requirements,
      cmdclass={
          'publish': PublishCommand,
      },
      keywords=[
          'DI',
          'Dependency injection',
          'IoC',
          'Inversion of Control',
      ],
      classifiers=[
{'fraction_non_alphanumeric': 0.14246300476548784, 'fraction_numerical': 0.0032605969400551793, 'mean_word_length': 2.991991991991992, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 7, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6897283', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1136, 'n_words': 234}