-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
55 lines (47 loc) · 1.59 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
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""
import codecs
import glob
import os
import setuptools
def read(*parts: str) -> str:
"""Read a file in this repository."""
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, *parts), "r") as file_:
return file_.read()
if __name__ == "__main__":
setuptools.setup(
name="metagit",
url="https://github.com/dmtucker/metagit",
description="A Git Project Manager",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="David Tucker",
author_email="david@tucker.name",
license="LGPLv2+",
package_dir={"": "src"},
packages=setuptools.find_packages("src"),
py_modules=[
os.path.splitext(os.path.basename(path))[0]
for path in glob.glob("src/*.py")
],
include_package_data=True,
python_requires=">= 3.6",
install_requires=[
"attrs >= 20.3",
"click >= 7.1",
"gitpython >= 3.1",
"setuptools >= 49.6",
],
entry_points={"console_scripts": ["metagit = metagit.__main__:main"]},
classifiers=[
"License :: OSI Approved :: "
"GNU Lesser General Public License v2 or later (LGPLv2+)",
"Intended Audience :: End Users/Desktop",
"Programming Language :: Python :: 3.6",
"Development Status :: 5 - Production/Stable",
],
)