cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
setup.py
Go to the documentation of this file.
1 # /*******************************************************************************
2 # * Copyright 2016 -- 2022 IBM Corporation
3 # *
4 # * Licensed under the Apache License, Version 2.0 (the "License");
5 # * you may not use this file except in compliance with the License.
6 # * You may obtain a copy of the License at
7 # *
8 # * http://www.apache.org/licenses/LICENSE-2.0
9 # *
10 # * Unless required by applicable law or agreed to in writing, software
11 # * distributed under the License is distributed on an "AS IS" BASIS,
12 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # * See the License for the specific language governing permissions and
14 # * limitations under the License.
15 # *******************************************************************************/
16 
17 # * cloudFPGA
18 # * Copyright IBM Research, All Rights Reserved
19 # * =============================================
20 # * Created: Jan. 2022
21 # * Authors: FAB, WEI, NGL, DID
22 # *
23 # * Description:
24 # * The setup file used for buidling cfsp PyPi package.
25 # *
26 # * License:
27 # * Apache Version 2.0
28 
29 
30 import setuptools, os
31 from shutil import copyfile
32 
33 with open("README_pypi.md", "r", encoding="utf-8") as fh:
34  long_description = fh.read()
35 fh.close()
36 
37 
38 version_path = os.path.dirname(os.path.abspath(__file__))+"/cFSPlib/version.txt"
39 with open(version_path,"r") as fh:
40  for line in fh:
41  __version__ = line.rstrip("\n")
42 fh.close()
43 
44 
45 setuptools.setup(
46  name="cfsp",
47  version=__version__,
48  author="Dionysios Diamantopoulos",
49  author_email="did@zurich.ibm.com",
50  description="The cloudFPGA Support Package",
51  long_description=long_description,
52  long_description_content_type="text/markdown",
53  url="https://github.com/cloudFPGA/cfsp",
54  project_urls={
55  "Bug Tracker": "https://github.com/cloudFPGA/cfsp/issues",
56  },
57  packages=setuptools.find_packages(),
58  setup_requires=['wheel'],
59  install_requires=[
60  "certifi",
61  "charset-normalizer",
62  "docopt",
63  "idna",
64  "prompt-toolkit",
65  "Pygments",
66  "PyInquirer",
67  "regex",
68  "requests",
69  "six",
70  "tqdm",
71  "urllib3",
72  "wcwidth",
73  ],
74  package_data={'':['cFSPlib']},
75  include_package_data=True,
76  scripts=['cfsp'],
77  classifiers=[
78  "Intended Audience :: Developers",
79  "License :: OSI Approved :: Apache Software License",
80  "Programming Language :: Python :: 3",
81  "Topic :: Software Development :: Libraries :: Python Modules",
82  ],
83  python_requires='>=3.6',
84 )