Skip to content
Snippets Groups Projects
Select Git revision
  • bcc15ccce6c79531651a83e5f52c901d8f073760
  • MCCS-163 default
  • main
  • sar-277-update-docs-with-examples-for-lrc
  • st-946-automate
  • sar_302-log-fix
  • sar-287_subarray_commands_to_lrc
  • sar_302-POC_await_sub_device_state
  • sat_302_fix_pipelines
  • sar-286_lrc_one_subarry_command
  • sar-286_lrc_improvements
  • sar-288-async-controller
  • sar-276-combine-tango-queue
  • sar-255_remove_nexus_reference
  • sar-275-add-LRC
  • sar-273-add-lrc-attributes
  • sar-272
  • sp-1106-marvin-1230525148-ska-tango-base
  • sp-1106-marvin-813091765-ska-tango-base
  • sar-255/Publish-package-to-CAR
  • mccs-661-device-under-test-fixture
  • mccs-659-pep257-docstring-linting
  • 0.11.3
  • 0.11.2
  • 0.11.1
  • 0.11.0
  • 0.10.1
  • 0.10.0
  • 0.9.1
  • 0.9.0
  • 0.8.1
  • 0.8.0
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.6
  • 0.6.5
  • 0.6.4
  • 0.6.3
  • 0.6.2
  • 0.6.1
  • 0.6.0
42 results

setup.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    setup.py 2.01 KiB
    #!/usr/bin/env python
    
    import os
    import sys
    
    import setuptools
    
    setup_dir = os.path.dirname(os.path.abspath(__file__))
    release_filename = os.path.join(setup_dir, "src", "ska", "base", "release.py")
    exec(open(release_filename).read())
    
    # prevent unnecessary installation of pytest-runner
    needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv)
    pytest_runner = ["pytest-runner"] if needs_pytest else []
    
    setuptools.setup(
        name=name,
        description=description,
        version=version,
        author=author,
        author_email=author_email,
        license=license,
        packages=setuptools.find_namespace_packages(where="src", include=["ska.*"]),
        package_dir={"": "src"},
        include_package_data=True,
        url="https://www.skatelescope.org/",
        classifiers=[
            "Development Status :: 3 - Alpha",
            "Intended Audience :: Developers",
            "License :: Other/Proprietary License",
            "Operating System :: OS Independent",
            "Programming Language :: Python",
            "Topic :: Software Development :: Libraries :: Python Modules",
            "Topic :: Scientific/Engineering :: Astronomy",
        ],
        platforms=["OS Independent"],
        setup_requires=[] + pytest_runner,
        install_requires=["future", "transitions", "ska_logging >= 0.3.0"],
        tests_require=["pytest", "coverage", "pytest-json-report", "pytest-forked"],
        entry_points={
            "console_scripts": [
                "SKAAlarmHandler=ska.base.alarm_handler_device:main",
                "SKABaseDevice=ska.base.base_device:main",
                "SKACapability=ska.base.capability_device:main",
                "SKAExampleDevice=ska.base.example_device:main",
                "SKALogger=ska.base.logger_device:main",
                "SKAMaster=ska.base.master_device:main",
                "SKAObsDevice=ska.base.obs_device:main",
                "SKASubarray=ska.base.subarray_device:main",
                "SKATelState=ska.base.tel_state_device:main",
                "CspSubelementMaster=ska.base.csp_subelement_master:main",
            ]
        },
        keywords="lmc base classes ska",
        zip_safe=False,
    )