from distutils.core import setup
from pip.req import parse_requirements

install_reqs = parse_requirements("./requirements.txt")
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name='url-matchers',
    version='0.0.1',
    modules=['url_matchers'],
    install_requires=reqs,
    author="Alex Good",
    author_email="alex@makerlabs.co.uk",
    url="https://github.com/alexjg/url-matchers",
)

from distutils.core import setup
from os import path
from pip.req import parse_requirements

requirements_location = path.join(path.dirname(__file__), "requirements.txt")
install_reqs = parse_requirements(requirements_location)
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name='url-matchers',
    version='0.0.1',
    modules=['url_matchers'],
    install_requires=reqs,
    author="Alex Good",
    author_email="alex@makerlabs.co.uk",
    url="https://github.com/alexjg/url-matchers",
)

Use absolute path for requirements file
Use absolute path for requirements file

  from distutils.core import setup
+ from os import path
  from pip.req import parse_requirements
  
+ requirements_location = path.join(path.dirname(__file__), "requirements.txt")
- install_reqs = parse_requirements("./requirements.txt")
+ install_reqs = parse_requirements(requirements_location)
  reqs = [str(ir.req) for ir in install_reqs]
  
  setup(
      name='url-matchers',
      version='0.0.1',
      modules=['url_matchers'],
      install_requires=reqs,
      author="Alex Good",
      author_email="alex@makerlabs.co.uk",
      url="https://github.com/alexjg/url-matchers",
  )
  
Use absolute path for requirements file
## Code Before:
from distutils.core import setup
from pip.req import parse_requirements

install_reqs = parse_requirements("./requirements.txt")
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name='url-matchers',
    version='0.0.1',
    modules=['url_matchers'],
    install_requires=reqs,
    author="Alex Good",
    author_email="alex@makerlabs.co.uk",
    url="https://github.com/alexjg/url-matchers",
)

## Instruction:
Use absolute path for requirements file
## Code After:
from distutils.core import setup
from os import path
from pip.req import parse_requirements

requirements_location = path.join(path.dirname(__file__), "requirements.txt")
install_reqs = parse_requirements(requirements_location)
reqs = [str(ir.req) for ir in install_reqs]

setup(
    name='url-matchers',
    version='0.0.1',
    modules=['url_matchers'],
    install_requires=reqs,
    author="Alex Good",
    author_email="alex@makerlabs.co.uk",
    url="https://github.com/alexjg/url-matchers",
)
