|
2 | 2 | import versioneer |
3 | 3 | import setuptools |
4 | 4 |
|
5 | | -with open("README.md", "r") as fh: |
6 | | - long_description = fh.read() |
7 | | - |
8 | | -setuptools.setup( |
9 | | - name='netfoundry', |
10 | | - py_modules=['netfoundry'], |
11 | | - version=versioneer.get_version(), |
12 | | - cmdclass=versioneer.get_cmdclass(), |
13 | | - url='https://developer.netfoundry.io/guides/python/', |
14 | | - description='Interface to the NetFoundry network-as-code orchestration Platform', |
15 | | - long_description=long_description, |
16 | | - long_description_content_type="text/markdown", |
17 | | - license='MIT', |
18 | | - author='Kenneth Bingham', |
19 | | - |
20 | | - packages=['netfoundry'], |
21 | | - package_dir={'netfoundry': 'src/netfoundry'}, |
22 | | - package_data={'netfoundry': ['friendly-words/generated/words.json']}, |
23 | | - python_requires='>=3.7', |
24 | | - classifiers=[ |
25 | | - "Programming Language :: Python :: 3", |
26 | | - "Operating System :: OS Independent", |
27 | | - ], |
28 | | - install_requires=[ |
29 | | - 'requests >= 2.27', |
30 | | - 'pyjwt >= 2.3', |
31 | | - 'inflect >= 5.3', |
32 | | - 'milc >= 1.6.6', |
33 | | - 'pyyaml >= 5.4', |
34 | | - 'platformdirs >= 2.4', |
35 | | - 'tabulate >= 0.8', |
36 | | - 'packaging >= 20.9', |
37 | | - 'pygments >= 2.11' |
38 | | - ], |
39 | | - entry_points={ |
40 | | - 'console_scripts': [ |
41 | | - 'nfdemo = netfoundry.demo:main', |
42 | | - 'nfctl = netfoundry.ctl:cli', |
43 | | - ] |
44 | | - } |
45 | | -) |
| 5 | +if __name__ == "__main__": |
| 6 | + setuptools.setup( |
| 7 | + version=versioneer.get_version(), |
| 8 | + cmdclass=versioneer.get_cmdclass(), |
| 9 | + ) |
0 commit comments