-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (45 loc) · 1.58 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
import glob
import json
from os.path import dirname
import setuptools
# this updates automatically https://python-semantic-release.readthedocs.io/en/latest/index.html
__version__ = "0.62.0"
def __markers(config: dict):
return f"; {config['markers']}" if "markers" in config else ""
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("Pipfile.lock", "r", encoding="utf-8") as lock:
json_lock = json.load(lock)
requires = [
f"{name}{config['version']}{__markers(config)}"
for name, config in json_lock["default"].items()
if "version" in config
]
translations = [(dirname(x), [x]) for x in glob.glob("locales/*/LC_MESSAGES/*.mo")]
setuptools.setup(
name="hexagon",
version=__version__,
author="Joaco Campero",
author_email="[email protected]",
description="Build your Team's CLI",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/lt-mayonesa/hexagon",
project_urls={"Bug Tracker": "https://github.com/lt-mayonesa/hexagon/issues"},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
packages=setuptools.find_packages(
exclude=["tests", "tests.*", "tests_e2e", "tests_e2e.*"]
),
include_package_data=True,
install_requires=requires,
python_requires=">=3.9",
entry_points="""
[console_scripts]
hexagon=hexagon.__main__:main
""",
data_files=translations,
)