-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
52 lines (44 loc) · 1.33 KB
/
setup.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import setuptools
import sys
import codecs
# Read first argument as version, pass rest on to setuptools
VERSION = sys.argv[1]
del sys.argv[1]
with codecs.open("README.md", "r", "utf-8") as fh:
long_description = fh.read()
required_url = []
required = [f"pyzswagcl=={VERSION}"]
with open("requirements.txt", "r") as freq:
for line in freq.read().split():
if "://" in line:
required_url.append(line)
else:
required.append(line)
setuptools.setup(
name="zswag",
version=VERSION,
url="https://github.com/klebert-engineering/zswag",
author="Klebert Engineering",
author_email="[email protected]",
description="OpenAPI service transport layer for zserio.",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={'': 'libs'},
packages=['zswag', 'zswag.test.calc'],
include_package_data=True,
package_data={
"zswag": [
"test/calc/api.yaml",
"test/calc/calculator.zs"
]
},
install_requires=required,
dependency_links=required_url,
python_requires='>=3.8',
license="BSD-3 Clause",
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License"
],
)