-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
53 lines (46 loc) · 1.39 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
"""
Yaspi setup.py
Build/upload commands:
coverage run -m pytest --capture=tee-sys yaspi_test
python3 setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
"""
from pathlib import Path
import setuptools
with open("README.md", "r") as f:
long_description = f.read()
# Ensure that extra data (example scripts and recipe templates) are included
package_dir = "yaspi"
extra_package_patterns = ["misc/*.py", "templates/**/*.sh"]
extra_package_files = []
for pattern in extra_package_patterns:
paths = Path(package_dir).glob(pattern)
rel_paths = [str(x.relative_to(package_dir)) for x in paths]
extra_package_files.extend(rel_paths)
setuptools.setup(
name="yaspi",
version="0.0.8",
entry_points={
"console_scripts": [
"yaspi=yaspi.yaspi:main",
],
},
author="Samuel Albanie",
description="Yet Another Slurm Python Interface",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/albanie/yaspi",
packages=["yaspi"],
package_dir={"yaspi": package_dir},
package_data={"yaspi": extra_package_files},
install_requires=[
"watchlogs",
"beartype>=0.7.1"
],
python_requires=">=3.7",
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: MIT License",
'Operating System :: POSIX :: Linux',
],
)