-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
executable file
·65 lines (48 loc) · 1.78 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
54
55
56
57
58
59
60
61
62
63
64
from pathlib import Path
from setuptools import setup
def load_module_dict(filename: str) -> dict:
import importlib.util as ilu
filename = Path(__file__).parent / filename
spec = ilu.spec_from_file_location('', filename)
module = ilu.module_from_spec(spec)
spec.loader.exec_module(module)
return module.__dict__
name = "vien"
constants = load_module_dict(f'{name}/_constants.py')
readme = (Path(__file__).parent / 'README.md').read_text(encoding="utf-8")
readme = "# " + readme.partition("\n#")[-1]
setup(
name=name,
version=constants['__version__'],
author="Artëm IG",
author_email="ortemeo@gmail.com",
url='https://github.com/rtmigo/vien_py',
packages=['vien'],
python_requires='>=3.7',
install_requires=[],
description="Command-line tool for managing Python virtual environments",
long_description=readme,
long_description_content_type='text/markdown',
license=constants['__license__'],
entry_points={
'console_scripts': [
'vien = vien:main_entry_point',
]},
keywords="virtual-environment venv virtualenv python command-line shell "
"terminal bash run create delete execute".split(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
'License :: OSI Approved :: BSD License',
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Environment :: Console",
"Typing :: Typed",
"Topic :: Software Development :: Build Tools",
"Operating System :: POSIX",
# "Operating System :: Microsoft :: Windows"
],
test_suite="test_unit.suite"
)