-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
63 lines (54 loc) · 1.9 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
56
57
58
59
60
61
62
63
#!/usr/bin/env python
import os
from importlib.util import module_from_spec, spec_from_file_location
from setuptools import find_packages, setup
spec = spec_from_file_location("pkginfo.version", "src/version.py")
pkginfo = module_from_spec(spec)
spec.loader.exec_module(pkginfo)
with open("README.md") as fd:
README = fd.read()
with open("requirements-dev.txt") as fd:
development_requirements = fd.readlines()
with open("requirements.txt") as fd:
requirements = fd.readlines()
setup(
name=pkginfo.__packagename__,
version=pkginfo.__version__,
description=pkginfo.__description__,
# Meta information
url="https://github.com/probinso/ACOio",
author="Philip Robinson",
author_email="[email protected]",
# package information
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=f">={pkginfo.__pythonbaseversion__}",
classifiers=[
# Language support
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.8",
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 4 - Beta",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
# Pick your license as you wish (should match 'license' above)
"License :: OSI Approved :: MIT License",
# Operating System
"Operating System :: OS Independent",
],
# Dependencies
install_requires=requirements,
extras_require={"dev": development_requirements},
# Description
long_description=README,
long_description_content_type="text/markdown",
entry_points={
"console_scripts": [
f"{key} = {value}" for key, value in pkginfo.__scripts__.items()
]
}, # noqa: E501
)