|
7 | 7 | :Organizations: eXascale Infolab <http://exascale.info/>, Lumais <http://www.lumais.com/> |
8 | 8 | :Date: 2018-05 |
9 | 9 | """ |
| 10 | +from glob import glob # Wildcards for files |
10 | 11 | from setuptools import setup |
11 | 12 |
|
| 13 | +views = glob('views/*') |
| 14 | +# print('>>> Views size:', str(len(views)), ', items:', views) |
| 15 | +# images = glob('images/*') |
| 16 | + |
12 | 17 | setup( |
13 | 18 | name='pyexpool', # This is the name of your PyPI-package. |
14 | 19 | # version='2.2.0', # Update the version number for new releases |
|
32 | 37 | ' and star the project if you like it! For any further assistance you can drop me' |
33 | 38 | ' a email or write [me on Linkedin](https://linkedin.com/in/artemvl).' |
34 | 39 | '\n\n' |
35 | | - '''BibTeX: |
| 40 | + """BibTeX: |
36 | 41 | ```bibtex |
37 | 42 | @misc{pyexpool, |
38 | 43 | author = {Artem Lutov and Philippe Cudré-Mauroux}, |
39 | | - title = {{PyExPool: A Lightweight Execution Pool with Constraint-aware Load-Balancer.}}, |
40 | | - year = {2017}, |
| 44 | + title = {{PyExPool-v.3: A Lightweight Execution Pool with Constraint-aware Load-Balancer.}}, |
| 45 | + year = {2018}, |
41 | 46 | url = {https://github.com/eXascaleInfolab/PyExPool} |
42 | 47 | } |
43 | | -```''' |
| 48 | +```""" |
44 | 49 | ), |
45 | 50 | long_description_content_type='text/markdown', |
46 | 51 | url='https://github.com/eXascaleInfolab/PyExPool', |
|
109 | 114 | # project page. What does your project relate to? |
110 | 115 | # |
111 | 116 | # Note that this is a string of words separated by whitespace, not a list. |
112 | | - keywords='execution-pool load-balancer execution-constraints NUMA concurrent multi-process benchmarking', # Optional |
| 117 | + keywords=('execution-pool load-balancer task-queue multi-process benchmarking-framework' |
| 118 | + ' execution-constraints NUMA concurrent parallel-computing cache-control monitoring-server'), # Optional |
113 | 119 |
|
114 | 120 | # You can just specify package directories manually here if your project is |
115 | 121 | # simple. Or you can use find_packages(). |
|
121 | 127 | # py_modules=["my_module"], |
122 | 128 | # packages=find_packages(exclude=['contrib', 'docs', 'tests']), # Required |
123 | 129 | # packages=['pyexpool'], |
| 130 | + # packages=setuptools.find_packages(), |
124 | 131 | # packages=['__init__'], |
125 | 132 | py_modules=['mpepool', 'mpewui'], |
126 | 133 |
|
|
132 | 139 | # https://packaging.python.org/en/latest/requirements.html |
133 | 140 | install_requires=['psutil>=5', 'bottle' |
134 | 141 | # For Python2 |
135 | | - , 'future', 'enum34>=1'], # Optional |
| 142 | + , 'future;python_version<"3"', 'enum34>=1;python_version<"3.4"'], # Optional |
136 | 143 |
|
137 | 144 | # List additional groups of dependencies here (e.g. development |
138 | 145 | # dependencies). Users will be able to install these using the "extras" |
|
144 | 151 | # projects. |
145 | 152 | extras_require={ # Optional |
146 | 153 | #'dev': ['check-manifest'], |
147 | | - 'test': ['mock>=2'], # Only for Python 2 |
| 154 | + 'test': ['mock>=2;python_version<"3"'], # Only for Python 2 |
148 | 155 | }, |
149 | 156 |
|
150 | 157 | #package_dir={'pyexpool': '.'}, |
|
157 | 164 | # |
158 | 165 | # Include bottle template views and docs |
159 | 166 | package_data={ # Optional |
160 | | - # 'sample': ['package_data.dat'], |
161 | | - # 'pyexpool': ['README.md', 'images/*'], |
162 | | - # Note: images are relatively heavy |
163 | | - # '': ['README.md', 'views/*', 'images/*'], # ! Include specified files from the current directory |
164 | | - '': ['*.md', 'views/*'] # ! Include specified files from the current directory |
| 167 | + # Note: images are relatively heavy, wildcards/regexp are not supported out of the box |
| 168 | + # '': ['views/restapi.htm'], # Add README.md to the root and views list to the 'views' |
| 169 | + '': ['README.md'], # Add README.md to the root and views list to the 'views' |
| 170 | + 'views': views, # Include views (bottle WebUI html templates) |
| 171 | + # 'views': ['webui.tpl'], # Include views (bottle WebUI html templates) |
| 172 | + # 'images': images, # Include images to the 'images' |
165 | 173 | }, |
166 | 174 | # include_package_data=True, # Deprecated |
167 | 175 |
|
|
171 | 179 | # |
172 | 180 | # In this case, 'data_file' will be installed into '<sys.prefix>/my_data' |
173 | 181 | # data_files specifies a sequence of (directory, files) pairs in the following way |
174 | | - # data_files=[('', ['README.md']), |
175 | | - # ('images', ["images/*.png"]), |
| 182 | + # data_files=[ |
| 183 | + # # ('', ['README.md']), |
| 184 | + # # ('images', glob("images/*.png")), |
| 185 | + # ('views2', views), |
176 | 186 | # ], # Optional |
177 | 187 |
|
178 | 188 | # To provide executable scripts, use entry points in preference to the |
|
0 commit comments