-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
42 lines (39 loc) · 1.21 KB
/
setup.py
File metadata and controls
42 lines (39 loc) · 1.21 KB
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
###########
from setuptools import setup, find_packages
from os import path as os_path
## INFOS ##
name = "brs_utils"
descr = "Basic utilities"
url = f"https://github.com/brsynth/{name}"
authors = "Joan Hérisson"
corr_author = "joan.herisson@univ-evry.fr"
###########
here = os_path.dirname(os_path.realpath(__file__))
version_file = os_path.join(here, name, "_version.py")
version_ns = {}
with open(version_file, encoding="utf-8") as vf:
exec(vf.read(), version_ns)
__version__ = version_ns["__version__"]
description = open(os_path.join(here, "README.md"), encoding="utf-8").read()
setup(
name=name,
version=__version__,
author=authors,
author_email=corr_author,
description=descr,
long_description=description,
long_description_content_type="text/markdown",
url=url,
packages=find_packages(exclude=""),
# packages = [src_dir],
# package_dir = {package: package},
include_package_data=True,
test_suite="pytest",
license="MIT",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.7",
)