-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
66 lines (61 loc) · 2.05 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
64
65
66
"""Setup.py for small_small_hr."""
import os
import sys
from setuptools import find_packages, setup
import small_small_hr as sshr
# read the contents of your README file
with open(
os.path.join(os.path.abspath(os.path.dirname(__file__)), "README.md"),
encoding="utf-8",
) as f:
LONG_DESCRIPTION = f.read()
# convenience command to publish
if sys.argv[-1] == "publish":
if os.system("pip freeze | grep twine"):
print("twine not installed.\nUse `pip install twine`.\nExiting.")
sys.exit()
os.system("rm -rf build/ *.egg-info/")
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/* --skip-existing")
print("You probably want to also tag the version now:")
print(f" git tag -a v{sshr.__version__} -m 'version {sshr.__version__}'")
print(" git push --tags")
sys.exit()
setup(
name="small-small-hr",
version=sshr.__version__,
description="Minimal human resource management app for Django",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license="MIT",
author="Kelvin Jayanoris",
author_email="kelvin@jayanoris.com",
url="https://github.com/moshthepitt/small-small-hr",
packages=find_packages(exclude=["docs", "*.egg-info", "build", "tests.*", "tests"]),
install_requires=[
"Django >= 2.2",
"voluptuous",
"psycopg2-binary",
"sorl-thumbnail",
"django-private-storage",
"django-model-reviews",
"phonenumberslite",
"django-phonenumber-field",
"django-crispy-forms",
"djangorestframework",
"sorl-thumbnail",
"Pillow",
"django-mptt",
],
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
],
include_package_data=True,
)