-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathsetup.py
More file actions
69 lines (64 loc) · 2.06 KB
/
setup.py
File metadata and controls
69 lines (64 loc) · 2.06 KB
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
from setuptools import setup, find_packages
from setuptools.command.build import build as _build
from setuptools.command.sdist import sdist as _sdist
from babel.messages.frontend import compile_catalog
import subprocess
import os
class build(_build):
def run(self):
self.run_command('compile_catalog')
super().run()
class sdist(_sdist):
def run(self):
# Compile babel messages before creating source distribution
self.run_command('compile_catalog')
super().run()
class CompileCatalog(compile_catalog):
def run(self):
# Ensure the locale directory exists
if not os.path.exists('zxcvbn/locale'):
return
super().run()
with open('README.rst') as file:
long_description = file.read()
setup(
name='zxcvbn',
version='4.5.0',
packages=find_packages(),
include_package_data=True,
package_data={
'zxcvbn': ['locale/*/LC_MESSAGES/*.mo'],
},
url='https://github.com/dwolfhub/zxcvbn-python',
download_url='https://github.com/dwolfhub/zxcvbn-python/tarball/v4.5.0',
license='MIT',
author='Daniel Wolf',
author_email='danielrwolf5@gmail.com',
long_description=long_description,
keywords=['zxcvbn', 'password', 'security'],
entry_points={
'console_scripts': [
'zxcvbn = zxcvbn.__main__:cli'
]
},
project_urls = {
'Changelog': 'https://github.com/dwolfhub/zxcvbn-python/blob/master/CHANGELOG.md'
},
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Security',
'Topic :: Software Development :: Libraries :: Python Modules',
],
cmdclass={
'build': build,
'sdist': sdist,
'compile_catalog': CompileCatalog,
},
)