-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
70 lines (54 loc) · 1.97 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
67
68
69
70
import os
from setuptools import Command, find_packages, setup
from django_anonymous import __version__
def readme():
with open("README.md") as f:
return f.read()
class PublishCommand(Command):
description = "Publish to PyPI"
user_options = []
def run(self):
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
def initialize_options(self):
pass
def finalize_options(self):
pass
class CreateTagCommand(Command):
description = "Create release tag"
user_options = []
def run(self):
os.system(f"git tag -a {__version__} -m 'v{__version__}'")
os.system("git push --tags")
def initialize_options(self):
pass
def finalize_options(self):
pass
setup(
name="django-anonymous",
version=__version__,
packages=find_packages(include=["django_anonymous", "django_anonymous.*"]),
python_requires=">=3.6",
install_requires=["Faker", "tqdm"],
cmdclass={"publish": PublishCommand, "tag": CreateTagCommand},
# metadata for upload to PyPI
description="Simple Djanngo module to anonymize production data for safe usage on none production environments", # noqa E501
long_description=readme(),
long_description_content_type="text/markdown",
keywords=["Django", "anonymous", "anonymize"],
author="Maikel Martens",
author_email="[email protected]",
url="https://github.com/fourdigits/django-anonymous",
download_url=f"https://github.com/fourdigits/django-anonymous/releases/tag/{__version__}", # noqa E501
license="GPL3",
platforms=["any"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Framework :: Django",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
],
)