-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (53 loc) · 1.78 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import shutil
import sys
from io import open
from setuptools import find_packages, setup
if sys.argv[-1] == "publish":
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
shutil.rmtree("dist")
shutil.rmtree("build")
shutil.rmtree("django_names.egg-info")
sys.exit()
here = os.path.abspath(os.path.dirname(__file__))
install_requirements = ["Django>=1.11", "nameparser>=1.0.4"]
about = {}
with open(os.path.join(here, "names/__init__.py"), "r", encoding="utf-8") as f:
exec(f.read(), about)
with open("README.md", "r", encoding="utf-8") as f:
readme = f.read()
setup(
name=about["__package_name__"],
author=about["__author__"],
author_email=about["__author_email__"],
description=about["__description__"],
include_package_data=True,
install_requires=install_requirements,
license=about["__license__"],
long_description=readme,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["tests*"]),
python_requires=">=3.6",
url=about["__url__"],
version=about["__version__"],
zip_safe=False,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 1.11",
"Framework :: Django :: 2.0",
"Framework :: Django :: 2.1",
"Framework :: Django :: 2.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
)