-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
54 lines (50 loc) · 1.61 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
"""
# certego-saas
"""
from pathlib import Path
from setuptools import find_packages, setup
# constants
GITHUB_URL = "https://github.com/certego/certego-saas"
# The directory containing this file
HERE = Path(__file__).parent
REQUIREMENTS = HERE / "requirements"
# The text of the README file
README = (HERE / "README.md").read_text()
# Define requirements
requirements = (REQUIREMENTS / "requirements.txt").read_text().split("\n")
requirements_dev = (REQUIREMENTS / "requirements.dev.txt").read_text().split("\n")
# read version
version_contents = {}
with open((HERE / "certego_saas" / "version.py"), encoding="utf-8") as f:
exec(f.read(), version_contents)
setup(
name="certego_saas",
version=version_contents["VERSION"],
author="Certego S.R.L",
url=GITHUB_URL,
license="MIT",
description="Certego SaaS",
long_description=README,
long_description_content_type="text/markdown",
classifiers=[
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules",
],
include_package_data=True,
packages=find_packages(),
python_requires=">=3.8",
install_requires=requirements,
project_urls={
"Documentation": GITHUB_URL,
"Source": GITHUB_URL,
"Tracker": f"{GITHUB_URL}/issues",
},
keywords="certego django rest framework saas",
extras_require={
"dev": requirements + requirements_dev,
},
)