Skip to content

Commit ad98fb4

Browse files
committed
readme for pypi
1 parent 0571864 commit ad98fb4

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

setup.py

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
11
# -*- coding: utf-8 -*-
22

33
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+
410
def package_files(directory):
511
paths = []
612
for (path, directories, filenames) in os.walk(directory):
713
for filename in filenames:
814
paths.append(os.path.join('..', path, filename))
915
return paths
1016

17+
1118
if __name__ == '__main__':
1219
from distutils.core import setup
20+
1321
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

Comments
 (0)