|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 |
|
3 | 3 | import os |
| 4 | +from pathlib import Path |
| 5 | + |
| 6 | +this_directory = Path(__file__).parent |
| 7 | +long_description = (this_directory / 'README.md').read_text() |
| 8 | + |
| 9 | + |
4 | 10 | def package_files(directory): |
5 | 11 | paths = [] |
6 | 12 | for (path, directories, filenames) in os.walk(directory): |
7 | 13 | for filename in filenames: |
8 | 14 | paths.append(os.path.join('..', path, filename)) |
9 | 15 | return paths |
10 | 16 |
|
| 17 | + |
11 | 18 | if __name__ == '__main__': |
12 | 19 | from distutils.core import setup |
| 20 | + |
13 | 21 | extra_files = package_files('CLamPy') |
14 | | - setup(name='CLamPy', |
15 | | - version='1.1', |
16 | | - description='Classical LAMinate theory for the lightweight design of structures and systems in PYthon', |
17 | | - author='E. M. Gioia & E. J. Wehrle', |
18 | | - package_data={'': extra_files}, |
19 | | - license='GNU Lesser General Public License', |
20 | | - packages=['CLamPy']) |
| 22 | + setup( |
| 23 | + name='CLamPy', |
| 24 | + version='1.1', |
| 25 | + description='Classical LAMinate theory for the lightweight design of structures and systems in PYthon', |
| 26 | + author='E. M. Gioia & E. J. Wehrle', |
| 27 | + package_data={'': extra_files}, |
| 28 | + license='GNU Lesser General Public License', |
| 29 | + packages=['CLamPy'], |
| 30 | + long_description=long_description, |
| 31 | + long_description_content_type='text/markdown', |
| 32 | + ) |
0 commit comments