Skip to content
Snippets Groups Projects
Select Git revision
  • f296f9e6b9de414ff65140cfb9cc7c9cda6c2d6d
  • main default protected
  • restricted-sqlite-strategies
  • compare-structured-sql-dumps
  • 235.backup-and-recovery.recovery
  • mypy
  • real-spender
  • github/fork/tp-la/real-spender
  • 260.metric-rejected-zkaps
  • implicit-lease-renewal-problems
  • mach-nix
  • github/fork/tp-la/deep-traverse
  • v0.0
13 results

test_client_resource.py

Blame
  • setup.py 607 B
    import os
    from runpy import run_path
    
    from setuptools import setup
    
    
    def get_version():
        """
        Get the version of the version as determined by
        :py:`_zkapauthorizer._version`.
    
        Note: This only works when run from an tree generated
        by git-archive (such as a tarball from github).
        """
        version_path = os.path.join(
            os.path.dirname(__file__), "src/_zkapauthorizer/_version.py"
        )
        context = run_path(version_path)
        return context["__version__"]
    
    
    setup(
        version=get_version(),
        package_data={
            "": ["backup-recovery.yaml", "testing-signing.key"],
        },
    )