-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
executable file
·34 lines (30 loc) · 875 Bytes
/
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
#!/usr/bin/env python
import re
from distutils.core import setup
from pathlib import Path
from setuptools import find_packages
ROOT = Path(__file__).parent
content = (ROOT / 'src/pywbs/__init__.py').read_text('utf-8')
readme = (ROOT / 'README.md').read_text('utf-8')
_references = {
k: re.search(f'^{k.upper()}\s+=\s+"(.*)"\s*', content, re.MULTILINE).group(1)
for k in [
'version', 'name', 'author', 'author_email', 'description', 'license', 'url'
]
}
setup(
**_references,
keywords=['date', 'util'],
entry_points={
},
package_dir={'': 'src'},
packages=find_packages('src'),
zip_safe=False,
install_requires=[],
classifiers=[
'Development Status :: 3 - Alpha',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python :: 3.6'
]
)