• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OpenDataServices / flatten-tool / 20252425020

16 Dec 2025 12:38AM UTC coverage: 95.832%. Remained the same
20252425020

Pull #482

github

duncandewhurst
setup.py: Fix build error
Pull Request #482: setup.py: Fix build error

0 of 1 new or added line in 1 file covered. (0.0%)

3449 of 3599 relevant lines covered (95.83%)

9.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/setup.py
1
from setuptools import setup
×
2
from setuptools.command.develop import develop
×
3
from setuptools.command.install import install
×
4

5

6
def run_compile_catalog(setuptools_command):
×
7
    from babel.messages.frontend import compile_catalog
×
8

9
    compiler = compile_catalog(setuptools_command.distribution)
×
10
    option_dict = setuptools_command.distribution.get_option_dict("compile_catalog")
×
11
    compiler.domain = [option_dict["domain"][1]]
×
12
    compiler.directory = option_dict["directory"][1]
×
NEW
13
    compiler.use_fuzzy = option_dict["use-fuzzy"][1]
×
14
    compiler.run()
×
15

16

17
# From https://stackoverflow.com/questions/40051076/compile-translation-files-when-calling-setup-py-install
18
class InstallWithCompile(install):
×
19
    def run(self):
×
20
        run_compile_catalog(self)
×
21
        super().run()
×
22

23

24
class DevelopWithCompile(develop):
×
25
    def run(self):
×
26
        run_compile_catalog(self)
×
27
        super().run()
×
28

29

30
install_requires = [
×
31
    "jsonref",
32
    "schema",
33
    "openpyxl>=2.6,!=3.0.2",
34
    "pytz",
35
    "xmltodict",
36
    "lxml",
37
    "odfpy",
38
    "backports-datetime-fromisoformat;platform_python_implementation!='PyPy'",
39
    "zodb",
40
    "zc.zlibstorage",
41
    "ijson",
42
]
43

44
setup(
×
45
    name="flattentool",
46
    version="0.27.0",
47
    author="Open Data Services",
48
    author_email="code@opendataservices.coop",
49
    packages=["flattentool"],
50
    scripts=["flatten-tool"],
51
    url="https://github.com/OpenDataServices/flatten-tool",
52
    license="MIT",
53
    description="Tools for generating CSV and other flat versions of the structured data",
54
    long_description="",
55
    long_description_content_type="text/plain",
56
    install_requires=install_requires,
57
    extras_require={"HTTP": ["requests"], "geo": ["shapely", "geojson"]},
58
    cmdclass={
59
        "install": InstallWithCompile,
60
        "develop": DevelopWithCompile,
61
    },
62
    package_data={"flattentool": ["locale/*/*/*.mo", "locale/*/*/*.po"]},
63
    setup_requires=["babel"],
64
    python_requires=">=3.9.0",
65
)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc