-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
55 lines (44 loc) · 1.96 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
import setuptools
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
# # The following code can be used if you have private dependencies. Basically it requires the user to set an
# # environment variable `GH_PAT` to a Github Personal Access Token (with access to the private repository). If the env
# # var cannot be found, an error is raised. If it can be found, the private package is installed.
# import os
# try:
# gh_pat = os.environ["GH_PAT"]
# except KeyError as e:
# raise RuntimeError("You didn't set the environment variable `GH_PAT`. This is necessary because this package "
# "relies on private package(s), and you need to be authenticated to install these. Please set "
# "`GH_PAT` environment variable to your Personnal Access Token (from Github).") from e
# # Example of specifying private dependencies :
# reqs = [f"<package_name> @ git+https://{gh_pat}@github.com/<user>/<repo>@<tag>#egg=<package_name>"]
reqs = []
extras_require = {
"test": ["pytest~=8.0", "pytest-cov~=5.0"],
"hook": ["pre-commit~=4.0"],
"lint": ["ruff~=0.2"],
"docs": ["mkdocs-material~=9.0", "mkdocstrings[python]~=0.24", "mike~=2.0"],
}
extras_require["all"] = sum(extras_require.values(), [])
extras_require["dev"] = (
extras_require["test"] + extras_require["hook"] + extras_require["lint"] + extras_require["docs"]
)
setuptools.setup(
name="pytere",
version="1.0.0.dev0",
author="Nicolas REMOND",
author_email="[email protected]",
description="A Python Template Repository",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/astariul/pytere",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3.8",
"Operating System :: OS Independent",
],
python_requires=">=3.8",
install_requires=reqs,
extras_require=extras_require,
)