1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import uuid
from setuptools import setup, find_packages
try:
# For pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# For pip <= 9.0.3
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.requirement) for ir in install_reqs]
setup(
name="pyfg",
version="0.50",
packages=find_packages(),
author="XNET",
author_email="lindblom+pyfg@spotify.com",
description="Python API for fortigate",
url="https://github.com/spotify/pyfg",
include_package_data=True,
install_requires=reqs
)
|