Skip to content

Commit 213f621

Browse files
committed
finish migrating the build to setup.cfg
1 parent 550ff3f commit 213f621

File tree

3 files changed

+20
-43
lines changed

3 files changed

+20
-43
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# pyproject.toml
22
[build-system]
3-
requires = ["setuptools>=61", "wheel>=37", "versioneer>=0.22"]
3+
requires = [
4+
"setuptools >= 61",
5+
"wheel >= 0.37",
6+
"versioneer >= 0.22"
7+
]
48

setup.cfg

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[metadata]
22
name = netfoundry
3-
url = https://developer.netfoundry.io/guides/python/
3+
project_urls =
4+
Documentation = https://developer.netfoundry.io/guides/python/
5+
Source = https://github.com/netfoundry/python-netfoundry/
6+
Tracker = https://github.com/netfoundry/python-netfoundry/issues
7+
48
description = Interface to the NetFoundry network-as-code orchestration platform
59
long_description = file: README.md
610
long_description_content_type = text/markdown
@@ -28,6 +32,11 @@ install_requires =
2832
pyyaml >= 5.4
2933
requests >= 2.27
3034
tabulate >= 0.8
35+
setup_requires =
36+
setuptools_scm
37+
38+
[bdist_wheel]
39+
universal = 1
3140

3241
[options.package_data]
3342
netfoundry = friendly-words/generated/words.json

setup.py

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,8 @@
22
import versioneer
33
import setuptools
44

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-
author_email='[email protected]',
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

Comments
 (0)