-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (45 loc) · 1.37 KB
/
setup.py
File metadata and controls
52 lines (45 loc) · 1.37 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
43
44
45
46
47
48
49
50
51
52
# pylint: disable=missing-module-docstring
# pylint: disable=missing-function-docstring
from pathlib import Path
from setuptools import setup
def get_version() -> str:
init_f = Path(__file__).parent / "youconfigme" / "__init__.py"
with open(init_f) as f:
for line in f:
if "__version__" in line:
return line.split("=")[-1].strip().strip('"')
raise ValueError("Version not found")
def read_readme() -> str:
readme_f = Path(__file__).parent / "README.md"
with open(readme_f) as f:
return f.read()
setup(
name="youconfigme",
version=get_version(),
description="YouConfigMe helps you manage config in a pythonic way",
long_description=read_readme(),
long_description_content_type="text/markdown",
url="https://github.com/crossnox/YouConfigMe",
author="CrossNox",
install_requires=["toml"],
extras_require={
"test": ["pytest", "pytest-mypy-testing", "pytest-cov"],
"dev": [
"pre-commit",
"mypy",
"flake8",
"isort",
"black",
"pylint",
"bump",
"nox",
"types-toml",
"types-setuptools",
],
},
packages=["youconfigme"],
package_data={
"youconfigme": ["py.typed", "*.pyi"],
},
classifiers=["Programming Language :: Python :: 3"],
)