# Path: poet/version_parser.py
# class VersionParser(object):
#     def parse_constraints(self, constraints):
#     def parse_stability(cls, version):
#     def parse_name_version_pairs(self, pairs):


import re
from ..version_parser import VersionParser, Version
# -*- coding: utf-8 -*-




class Package(object):

    def __init__(self, name, version):
        self._name = name

# Path: poet/version_parser.py
# class VersionParser(object):
#     def parse_constraints(self, constraints):
#     def parse_stability(cls, version):
#     def parse_name_version_pairs(self, pairs):


# Path: poet/package/package.py
import re
from ..version_parser import VersionParser, Version

# -*- coding: utf-8 -*-




class Package(object):

    def __init__(self, name, version):
        self._name = name

        self._version = Version.coerce(version) if not isinstance(version, Version) else version